Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
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
刘照晖
DC-TOM
Commits
2efabdd5
Commit
2efabdd5
authored
Aug 12, 2025
by
Cai Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(*): 修改除尘器监控单位及描述
parent
fec6e04b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
5 deletions
+87
-5
index.vue
src/layout/index.vue
+1
-1
index.vue
src/views/dustMonitoring/index.vue
+86
-4
No files found.
src/layout/index.vue
View file @
2efabdd5
...
...
@@ -10,7 +10,7 @@
@
toggleClick=
"toggleSideBar"
:is-active=
"sidebar"
/>
<h3>
DC-TOM
管理平台
</h3>
<h3>
E-Core / DC-TOM
管理平台
</h3>
<div
class=
"go-tom"
@
click=
"goTom"
v-if=
"!currentDomain.includes('screen.bmetech.com')"
>
EcoTOM 三流合一
</div>
<div
class=
"right-block"
>
<el-dropdown
class=
"right-menu-item"
trigger=
"click"
>
...
...
src/views/dustMonitoring/index.vue
View file @
2efabdd5
...
...
@@ -605,11 +605,15 @@ onMounted(() => {
window
.
addEventListener
(
"resize"
,
resizeFun
);
refeshFun
();
getAllMouseEvent
();
// 启动实时监测
startRealTimeMonitoring
();
});
onUnmounted
(()
=>
{
window
.
removeEventListener
(
"resize"
,
resizeFun
);
cancelAllMouseEvent
();
chartRemoveEvent
();
// 停止实时监测
stopRealTimeMonitoring
();
});
watch
(
()
=>
form
.
dusterNo
,
...
...
@@ -619,6 +623,8 @@ watch(
getEnergy
();
getDustDetail
();
getAlarmInfo
();
// 重新启动实时监测
startRealTimeMonitoring
();
}
);
watch
(
...
...
@@ -629,6 +635,8 @@ watch(
getEnergy
();
getDustDetail
();
getAlarmInfo
();
// 重新启动实时监测
startRealTimeMonitoring
();
}
);
const
dusterName
=
computed
(()
=>
{
...
...
@@ -662,6 +670,24 @@ const refeshFun = () => {
refeshFun
()
},
1000
*
60
*
30
);
}
// 实时监测数据变化 - 每秒轮询 getDustDetail
let
realTimeTimer
=
null
;
const
startRealTimeMonitoring
=
()
=>
{
if
(
realTimeTimer
)
{
clearInterval
(
realTimeTimer
);
}
realTimeTimer
=
setInterval
(()
=>
{
getDustDetail
();
},
10000
);
}
const
stopRealTimeMonitoring
=
()
=>
{
if
(
realTimeTimer
)
{
clearInterval
(
realTimeTimer
);
realTimeTimer
=
null
;
}
}
const
dustBox
=
ref
(
null
);
// 获取鼠标所有事件
const
getAllMouseEvent
=
()
=>
{
...
...
@@ -846,7 +872,7 @@ $borderColor: #3a3f45;
transition
:
transform
0
.3s
ease-in-out
;
&
:hover
{
transform
:
scale
(
1
.2
);
box-shadow
:
0
0
1
0px
0
rgba
(
255
,
255
,
255
,
0
.5
);
box-shadow
:
0
0
0px
0
rgba
(
255
,
255
,
255
,
0
.5
);
}
}
.
point
:
:
after
{
...
...
@@ -855,17 +881,73 @@ $borderColor: #3a3f45;
padding-bottom
:
100%
;
/* 9/16 * 100% = 56.25% */
}
.status-normal
{
background-color
:
#67c23a
;
// 绿色
background-color
:
rgb
(
103
,
194
,
58
);
// 绿色
animation
:
pulse-glow1
2s
ease-in-out
infinite
;
}
.status-warning
{
background-color
:
#e6a23c
;
// 橙色
background-color
:
rgb
(
230
,
162
,
60
);
// 橙色
animation
:
pulse-glow2
2s
ease-in-out
infinite
;
}
.status-error
{
background-color
:
#f56c6c
;
// 红色
background-color
:
rgb
(
245
,
108
,
108
);
// 红色
animation
:
pulse-glow3
2s
ease-in-out
infinite
;
}
@keyframes
pulse-glow1
{
0
%
{
box-shadow
:
0
0
0px
rgba
(
103
,
194
,
58
,
0
.3
)
,
0
0
10px
rgba
(
103
,
194
,
58
,
0
.2
)
,
0
0
20px
rgba
(
103
,
194
,
58
,
0
.1
);
}
50
%
{
box-shadow
:
0
0
20px
rgba
(
103
,
194
,
58
,
0
.8
)
,
0
0
10px
rgba
(
103
,
194
,
58
,
0
.6
)
,
0
0
20px
rgba
(
103
,
194
,
58
,
0
.4
);
}
100
%
{
box-shadow
:
0
0
0px
rgba
(
103
,
194
,
58
,
0
.3
)
,
0
0
10px
rgba
(
103
,
194
,
58
,
0
.2
)
,
0
0
20px
rgba
(
103
,
194
,
58
,
0
.1
);
}
}
@keyframes
pulse-glow2
{
0
%
{
box-shadow
:
0
0
0px
rgba
(
230
,
162
,
60
,
0
.3
)
,
0
0
10px
rgba
(
230
,
162
,
60
,
0
.2
)
,
0
0
20px
rgba
(
230
,
162
,
60
,
0
.1
);
}
50
%
{
box-shadow
:
0
0
0px
rgba
(
230
,
162
,
60
,
0
.8
)
,
0
0
10px
rgba
(
230
,
162
,
60
,
0
.6
)
,
0
0
20px
rgba
(
230
,
162
,
60
,
0
.4
);
}
100
%
{
box-shadow
:
0
0
0px
rgba
(
230
,
162
,
60
,
0
.3
)
,
0
0
10px
rgba
(
230
,
162
,
60
,
0
.2
)
,
0
0
20px
rgba
(
230
,
162
,
60
,
0
.1
);
}
}
@keyframes
pulse-glow3
{
0
%
{
box-shadow
:
0
0
0px
rgba
(
245
,
108
,
108
,
0
.3
)
,
0
0
10px
rgba
(
245
,
108
,
108
,
0
.2
)
,
0
0
20px
rgba
(
245
,
108
,
108
,
0
.1
);
}
50
%
{
box-shadow
:
0
0
0px
rgba
(
245
,
108
,
108
,
0
.8
)
,
0
0
10px
rgba
(
245
,
108
,
108
,
0
.6
)
,
0
0
20px
rgba
(
245
,
108
,
108
,
0
.4
);
}
100
%
{
box-shadow
:
0
0
0px
rgba
(
245
,
108
,
108
,
0
.3
)
,
0
0
10px
rgba
(
245
,
108
,
108
,
0
.2
)
,
0
0
20px
rgba
(
245
,
108
,
108
,
0
.1
);
}
}
}
.other-info
{
padding
:
20px
;
border-top
:
1px
solid
$borderColor
;
...
...
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