Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
423b7adb
Commit
423b7adb
authored
Jan 24, 2026
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加报警类型
parent
abf09031
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
TDetectorInfoController.java
...ong/web/controller/supervise/TDetectorInfoController.java
+4
-0
TDeviceInfoMapper.xml
...em/src/main/resources/mapper/system/TDeviceInfoMapper.xml
+5
-1
rightBar.vue
zh-baseversion-web/src/components/bigWindow/rightBar.vue
+1
-1
index.vue
...b/src/views/operationMonitor/detectorReportData/index.vue
+2
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervise/TDetectorInfoController.java
View file @
423b7adb
...
...
@@ -138,6 +138,10 @@ public class TDetectorInfoController extends BaseController
alarm
.
setDetectorType
(
"工业探测器"
);
}
else
if
(
"3"
.
equals
(
alarm
.
getDetectorType
())){
alarm
.
setDetectorType
(
"可燃气体探测器"
);
}
else
if
(
"4"
.
equals
(
alarm
.
getDetectorType
())){
alarm
.
setDetectorType
(
"激光家报"
);
}
else
if
(
"5"
.
equals
(
alarm
.
getDetectorType
())){
alarm
.
setDetectorType
(
"地下井探测器"
);
}
}
...
...
zh-baseversion-system/src/main/resources/mapper/system/TDeviceInfoMapper.xml
View file @
423b7adb
...
...
@@ -109,7 +109,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.email AS email,
CASE a.detector_type
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,
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
...
...
zh-baseversion-web/src/components/bigWindow/rightBar.vue
View file @
423b7adb
...
...
@@ -393,7 +393,7 @@ export default {
data
()
{
return
{
open
:
fals
e
,
open
:
tru
e
,
isopen
:
true
,
allNum
:
{},
diviceNum
:
{
...
...
zh-baseversion-web/src/views/operationMonitor/detectorReportData/index.vue
View file @
423b7adb
...
...
@@ -47,6 +47,8 @@
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.detectorType == '1'"
>
家用探测器
</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
>
</el-table-column>
<el-table-column
label=
"预警信息"
align=
"center"
prop=
"statusName"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment