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
eb1cbab7
Commit
eb1cbab7
authored
May 28, 2025
by
蔡伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/layout-style' into 'dev'
Feat/layout style See merge request
!18
parents
d11833c6
0474d56b
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
529 additions
and
349 deletions
+529
-349
bagMonitor.js
src/request/api/bagMonitor.js
+24
-0
chart.js
src/utils/chart.js
+5
-1
map-svg.vue
src/views/dashboard/components/map-svg.vue
+1
-0
bag-monitoring.vue
src/views/dustMonitoring/bag-monitoring.vue
+461
-337
healthyProgress.vue
src/views/dustMonitoring/components/healthyProgress.vue
+1
-1
warn.vue
src/views/dustMonitoring/components/warn.vue
+7
-4
index.vue
src/views/dustMonitoring/index.vue
+13
-2
valveSettingDialog.vue
src/views/dustOverview/components/valveSettingDialog.vue
+2
-2
index.vue
src/views/dustOverview/index.vue
+15
-2
No files found.
src/request/api/bagMonitor.js
0 → 100644
View file @
eb1cbab7
import
request
from
"../index.js"
;
export
function
getMonitorRealtime
(
params
)
{
return
request
({
url
:
"/api/duster/monitor/chamber"
,
method
:
"get"
,
params
,
});
}
export
function
getMonitorToday
(
params
)
{
return
request
({
url
:
"/api/duster/monitor/curve"
,
method
:
"get"
,
params
,
});
}
export
function
getMonitorList
(
params
)
{
return
request
({
url
:
"/api/duster/monitor/list"
,
method
:
"get"
,
params
,
});
}
src/utils/chart.js
View file @
eb1cbab7
...
...
@@ -132,6 +132,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
top
:
"3%"
,
containLabel
:
true
,
},
// x轴的文字去除年月日
xAxis
:
{
type
:
"category"
,
boundaryGap
:
false
,
...
...
@@ -145,6 +146,9 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
fontSize
:
12
,
interval
:
"auto"
,
rotate
:
0
,
formatter
:
function
(
value
)
{
return
value
.
split
(
' '
)[
1
];
}
},
axisTick
:
{
show
:
false
,
...
...
@@ -154,7 +158,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
yAxis
:
{
type
:
"value"
,
min
:
0
,
max
:
600
,
//
max: 600,
interval
:
200
,
axisLabel
:
{
color
:
"rgba(0,0,0,0.6)"
,
...
...
src/views/dashboard/components/map-svg.vue
View file @
eb1cbab7
...
...
@@ -46,6 +46,7 @@
<span
class=
"label"
>
描述:
</span>
<div
class=
"value"
>
<span
class=
"value-item"
v-for=
"(item, index) in spot.description"
:key=
"index"
>
{{
item
}}
</span>
<span
class=
"value-item"
v-if=
"spot.description.length === 0"
>
暂无
</span>
</div>
</div>
...
...
src/views/dustMonitoring/bag-monitoring.vue
View file @
eb1cbab7
This diff is collapsed.
Click to expand it.
src/views/dustMonitoring/components/healthyProgress.vue
View file @
eb1cbab7
...
...
@@ -9,7 +9,7 @@
class=
"healthy-progress-bar h-full transition-all duration-500 ease-out bg-gradient-to-r from-secondary to-green-400 diagonal-pattern diagonal-pattern-animation"
></div>
<div
class=
"justify-between items-center mb-2 healthy-text-position"
>
<span
class=
"font-semibold"
>
健康度
</span>
<span
class=
"font-semibold"
>
健康度
:
</span>
<span
id=
"square-progress-value"
class=
"text-lg font-bold"
>
45%
</span>
</div>
</div>
...
...
src/views/dustMonitoring/components/warn.vue
View file @
eb1cbab7
<
template
>
<div
class=
"title layout1"
>
<span
class=
"warn-title"
>
{{
title
}}
:
</span>
<
span
class=
"jump-icon"
>
>>
</span
>
<span
class=
"warn-title"
>
告警
:
</span>
<
!--
<span
class=
"jump-icon"
>
>>
</span>
--
>
</div>
<div
class=
"content"
>
<div
class=
"item"
v-for=
"item in listInfo"
:key=
"item"
>
...
...
@@ -45,12 +45,15 @@ const props = defineProps({
width
:
100%
;
display
:
flex
;
align-items
:
center
;
margin-bottom
:
10
px
;
margin-bottom
:
5
px
;
padding
:
4px
0px
4px
2px
;
box-shadow
:
rgba
(
53
,
58
,
62
,
0
.08
)
0px
1px
10px
0px
,
rgba
(
53
,
58
,
62
,
0
.08
)
0px
2px
4px
0px
;
box-shadow
:
rgba
(
53
,
58
,
62
,
0
.04
)
0px
1px
10px
0px
,
rgba
(
53
,
58
,
62
,
0
.04
)
0px
2px
4px
0px
;
font-size
:
14px
;
color
:
#333
;
img
{
width
:
20px
;
height
:
auto
;
margin-right
:
10px
;
}
}
}
...
...
src/views/dustMonitoring/index.vue
View file @
eb1cbab7
...
...
@@ -75,6 +75,7 @@
:class=
"item.healthStatus == 1 ? 'health' : 'warn'"
v-for=
"item in detailObj.compartHealthList[0]"
:key=
"item"
@
click=
"handleStatusDotClick()"
></div>
</div>
<div
class=
"part"
>
...
...
@@ -119,6 +120,7 @@
</
template
>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
watch
,
computed
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
*
as
echarts
from
"echarts"
;
import
{
getDataFun
}
from
"@/request/method.js"
;
import
{
useUsersStore
}
from
"@/pinia/user.js"
;
...
...
@@ -150,6 +152,7 @@ const option = {
},
],
};
const
router
=
useRouter
();
const
chartInstance
=
reactive
({});
const
chartData
=
reactive
([{},
{},
{}]);
const
initChart
=
(
instance
,
option
,
domEl
)
=>
{
...
...
@@ -548,6 +551,14 @@ const dusterName = computed(() => {
return
dusterList
.
value
.
find
((
item
)
=>
item
.
dusterNo
==
form
.
dusterNo
)
?.
dusterName
;
});
const
handleStatusDotClick
=
()
=>
{
router
.
push
({
path
:
"/bag-monitor"
,
query
:
{
dusterNo
:
form
.
dusterNo
,
}
});
};
</
script
>
<
style
lang=
"scss"
scoped
>
$borderColor
:
#bbbdc3
91
;
...
...
@@ -592,7 +603,7 @@ $borderColor: #bbbdc391;
.part1
{
width
:
100%
;
height
:
6
vh
;
height
:
5
vh
;
border-radius
:
6px
;
border
:
1px
solid
rgba
(
13
,
15
,
18
,
0
.1
);
box-shadow
:
0px
3px
6px
0px
rgba
(
13
,
15
,
18
,
0
.1
);
...
...
@@ -607,7 +618,7 @@ $borderColor: #bbbdc391;
.part2
{
margin-top
:
10px
;
width
:
100%
;
height
:
calc
(
5
7
vh
-
10px
);
height
:
calc
(
5
8
vh
-
10px
);
border-radius
:
6px
;
border
:
1px
solid
rgba
(
13
,
15
,
18
,
0
.1
);
box-shadow
:
0px
3px
6px
0px
rgba
(
13
,
15
,
18
,
0
.1
);
...
...
src/views/dustOverview/components/valveSettingDialog.vue
View file @
eb1cbab7
...
...
@@ -345,7 +345,7 @@ const handleConfirm = () => {
}
.valve-cell
{
width
:
41px
;
min-
width
:
41px
;
background
:
white
;
padding
:
4px
8px
;
border-radius
:
4px
;
...
...
@@ -368,7 +368,7 @@ const handleConfirm = () => {
.cell-value
{
display
:
flex
;
justify-content
:
center
;
align-items
:
end
;
align-items
:
baseline
;
font-size
:
16px
;
color
:
#606266
;
span
{
...
...
src/views/dustOverview/index.vue
View file @
eb1cbab7
...
...
@@ -102,14 +102,15 @@
<
template
#
compartHealthList=
"{ row }"
>
<div
class=
"status-matrix"
v-if=
"row.compartHealthList.length > 0"
>
<div
v-for=
"(
r
ow, rowIndex) in row.compartHealthList"
v-for=
"(
childR
ow, rowIndex) in row.compartHealthList"
:key=
"rowIndex"
class=
"matrix-row"
>
<div
v-for=
"(status, colIndex) in
r
ow"
v-for=
"(status, colIndex) in
childR
ow"
:key=
"colIndex"
class=
"status-dot"
@
click=
"handleStatusDotClick(row, colIndex)"
:class=
"
{
'status-normal': status.healthStatus === 1,
'status-warning': status.healthStatus === 2,
...
...
@@ -175,6 +176,7 @@ import {
postAddCompartAllocation
,
postAddValveInfo
,
}
from
"@/request/api/dustOverview"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
CommonTable
from
"@/components/commonTable/index.vue"
;
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
...
...
@@ -182,6 +184,8 @@ import RoomSettingDialog from "./components/roomSettingDialog.vue";
import
ValveSettingDialog
from
"./components/valveSettingDialog.vue"
;
import
AddDustCollectorDialog
from
"./components/addDustCollectorDialog.vue"
;
const
router
=
useRouter
();
const
formInline
=
ref
({
deviceName
:
""
,
region
:
"all"
,
...
...
@@ -357,6 +361,15 @@ const handleValveNumClick = (row) => {
}
};
const
handleStatusDotClick
=
(
row
,
colIndex
)
=>
{
router
.
push
({
path
:
"/bag-monitor"
,
query
:
{
dusterNo
:
row
.
deviceNo
,
}
});
};
// 确认电磁阀设置
const
handleValveSettingConfirm
=
(
updatedStatusData
)
=>
{
const
list
=
updatedStatusData
.
map
((
item
)
=>
{
...
...
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