Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
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
耿迪迪
zhmes-agecal
Commits
6edb52a3
Commit
6edb52a3
authored
Dec 03, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 托盘状态调整
parent
e52fc160
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
13 deletions
+41
-13
TrayBinding.vue
zhmes-agecal-web/src/views/screen/components/TrayBinding.vue
+35
-7
TrayInformation.vue
...gecal-web/src/views/screen/components/TrayInformation.vue
+6
-6
No files found.
zhmes-agecal-web/src/views/screen/components/TrayBinding.vue
View file @
6edb52a3
...
...
@@ -18,8 +18,12 @@
<!-- 添加托盘状态 -->
<div
class=
"tray-status"
>
<div
class=
"status-label"
>
托盘状态:
</div>
<el-tag
:type=
"trayStatusTagType"
size=
"medium"
>
{{
trayStatusText
}}
<el-tag
:type=
"trayStatusTagType"
size=
"medium"
class=
"status-tag-bold"
>
<span
class=
"status-text"
>
{{
trayStatusText
}}
</span>
</el-tag>
</div>
</div>
...
...
@@ -242,11 +246,11 @@ export default {
// 托盘状态标签类型
trayStatusTagType
()
{
const
map
=
{
'0'
:
'
success'
,
// 空闲 - 绿
色
'1'
:
'
primary'
,
// 运行中 - 黄
色
'2'
:
'
danger'
,
// 老化完成 - 红色
'3'
:
'
warning'
,
// 标定完成
'4'
:
'
info'
// 标定完成
'0'
:
'
info'
,
// 空闲 - 灰
色
'1'
:
'
success'
,
// 运行 - 绿
色
'2'
:
'
warning'
,
// 老化完成 - 橙色(较浅)
'3'
:
'
danger'
,
// 标检完成 - 红色(更紧急)
'4'
:
'
primary'
,
// 已绑定 - 蓝色
};
return
map
[
this
.
trayStatus
]
||
'info'
;
},
...
...
@@ -1130,4 +1134,28 @@ body {
transform
:
translateY
(
-5px
);
box-shadow
:
0
8px
20px
rgba
(
157
,
78
,
221
,
0.5
);
}
/* 托盘状态区域 */
.tray-status
{
display
:
flex
;
align-items
:
center
;
gap
:
10px
;
}
.status-label
{
font-size
:
1.1rem
;
color
:
#64c8ff
;
font-weight
:
bold
;
}
/* 状态标签样式优化 */
.status-tag-bold
{
font-weight
:
700
!important
;
/* 加粗 */
letter-spacing
:
0.5px
;
/* 字间距 */
}
.status-text
{
font-size
:
14px
;
/* 适当调大字体 */
text-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0.2
);
/* 文字阴影增强可读性 */
padding
:
0
2px
;
/* 添加内边距 */
}
</
style
>
zhmes-agecal-web/src/views/screen/components/TrayInformation.vue
View file @
6edb52a3
...
...
@@ -174,14 +174,14 @@ export default {
return
'clickable-row'
;
},
// 状态标签类型
// 状态标签类型
statusTagType
(
status
)
{
const
statusMap
=
{
'0'
:
'
success'
,
'
2'
:
'warning'
,
'
3'
:
'warning'
,
'
1'
:
'primary'
,
'4'
:
'
info'
,
'0'
:
'
info'
,
// 空闲 - 灰色
'
1'
:
'success'
,
// 运行 - 绿色
'
2'
:
'warning'
,
// 老化完成 - 橙色(较浅)
'
3'
:
'danger'
,
// 标检完成 - 红色(更紧急)
'4'
:
'
primary'
,
// 已绑定 - 蓝色
};
return
statusMap
[
status
]
||
'info'
;
},
...
...
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