Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
86f7f9de
Commit
86f7f9de
authored
Feb 28, 2022
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备类型
parent
17e2926a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
TDetectorUserVO.java
...ain/java/com/zehong/system/domain/vo/TDetectorUserVO.java
+6
-0
TDetectorUserServiceImpl.java
.../zehong/system/service/impl/TDetectorUserServiceImpl.java
+1
-0
DeviceA.vue
gassafetyprogress-web/src/components/bigWindow/DeviceA.vue
+2
-2
User.vue
gassafetyprogress-web/src/components/bigWindow/User.vue
+2
-2
No files found.
gassafetyprogress-system/src/main/java/com/zehong/system/domain/vo/TDetectorUserVO.java
View file @
86f7f9de
...
...
@@ -3,6 +3,7 @@ package com.zehong.system.domain.vo;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* 探测器用户对象 t_detector_user
...
...
@@ -30,6 +31,11 @@ public class TDetectorUserVO
/** 用户类型(1居民用户,2商业用户,3工业用户) */
private
String
userType
;
private
List
<
Object
>
detectorCountList
;
/** 设备类型 */
private
String
detectorType
;
/** 探测器总数 */
private
Integer
detectorCount
;
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TDetectorUserServiceImpl.java
View file @
86f7f9de
...
...
@@ -85,6 +85,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
userVO
.
setCancelAlarmNum
(
cancelAlarmNum
);
userVO
.
setProcessingAlarmNum
(
Math
.
abs
(
historyAlarmNum
-
cancelAlarmNum
));
userVO
.
setIconType
(
"6"
);
userVO
.
setDetectorType
(
"气体探测器"
);
list
.
add
(
userVO
);
}
...
...
gassafetyprogress-web/src/components/bigWindow/DeviceA.vue
View file @
86f7f9de
...
...
@@ -62,7 +62,7 @@
<div
class=
"last"
>
报警中
</div>
</div>
<div
class=
"tbody flex"
>
<div
class=
"first zzz"
>
{{
"流量计
与压力表
"
}}
</div>
<div
class=
"first zzz"
>
{{
"流量计"
}}
</div>
<div
class=
""
>
{{
deviceData
.
pressureFlows
.
length
}}
</div>
<div
v-unValue
class=
""
>
{{
(
Math
.
random
()
*
deviceData
.
pressureFlows
.
length
)
>>
1
}}
...
...
@@ -248,4 +248,4 @@ export default {
justify
-
content
:
space
-
between
;
}
}
<
/style>
\ No newline at end of file
<
/style
>
gassafetyprogress-web/src/components/bigWindow/User.vue
View file @
86f7f9de
...
...
@@ -46,7 +46,7 @@
<div
class=
"last"
>
报警中
</div>
</div>
<div
class=
"tbody flex"
>
<div
v-unValue
class=
"first zzz"
>
{{
}}
</div>
<div
v-unValue
class=
"first zzz"
>
{{
deviceData
.
detectorType
}}
</div>
<div
class=
""
>
{{
deviceData
.
detectorCount
}}
</div>
<div
v-unValue
class=
""
>
{{
deviceData
.
onLineNum
}}
...
...
@@ -227,4 +227,4 @@ export default {
justify-content
:
space-between
;
}
}
</
style
>
\ No newline at end of file
</
style
>
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