Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
872601a9
Commit
872601a9
authored
Oct 21, 2024
by
lyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中小企业页面设备管理驾驶舱
parent
cd62456a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
6 deletions
+35
-6
HPBI003.xml
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
+1
-1
HPBI003.jsp
src/main/webapp/HP/BI/HPBI003.jsp
+33
-4
left-manage-device.vue
...n/webapp/HP/BI/components/hipi/004/left-manage-device.vue
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
View file @
872601a9
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
a.DEVICE_CODE as "deviceCode",
a.DEVICE_CODE as "deviceCode",
a.DEVICE_NAME as "deviceName",
a.DEVICE_NAME as "deviceName",
a.DEVICE_MODEL as "deviceModel",
a.DEVICE_MODEL as "deviceModel",
c
ase when c.LOG_VALUE = 3 || c.LOG_VALUE = 5 || c.LOG_VALUE = 6 then '关机' else '开机' end
as status
c
.LOG_VALUE
as status
from ${hpjxSchema}.t_hpsb003 a
from ${hpjxSchema}.t_hpsb003 a
join ${hpjxSchema}.t_hpsb002 c on a.DEVICE_CODE = c.EQUIPMENT_CODE
join ${hpjxSchema}.t_hpsb002 c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
where
...
...
src/main/webapp/HP/BI/HPBI003.jsp
View file @
872601a9
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
:key=
"index"
:key=
"index"
style=
"display: flex;margin-right: 1vw"
>
style=
"display: flex;margin-right: 1vw"
>
<div
class=
"group-splicing-font"
>
{{splicingList[index]}}
</div>
<div
class=
"group-splicing-font"
>
{{splicingList[index]}}
</div>
<div
class=
"group-splicing-data"
>
{{querySplicingObject[item]}}
</div>
<div
class=
"group-splicing-data"
:class=
"getDataColorClass(index)"
>
{{querySplicingObject[item]}}T
</div>
</div>
</div>
</div>
</div>
<div
class=
"production-trend-chart"
>
<div
class=
"production-trend-chart"
>
...
@@ -264,7 +264,7 @@
...
@@ -264,7 +264,7 @@
queryXMinfoList
:[],
queryXMinfoList
:[],
dataList
:[
'项目名称'
,
'计划完成时间'
,
'计划产量'
,
'实际产量'
,
'生产进度'
,
'发货进度'
],
dataList
:[
'项目名称'
,
'计划完成时间'
,
'计划产量'
,
'实际产量'
,
'生产进度'
,
'发货进度'
],
testList
:[
'兴禹2# 厂房'
,
'2024-10-16 14:22'
,
'7387.89'
,
'7387.89'
,
'95.2%'
,
'55.2%'
]
testList
:[]
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -491,7 +491,20 @@
...
@@ -491,7 +491,20 @@
);
);
},
},
getDataColorClass
(
index
)
{
// 根据 index 返回不同的类名,这些类名在 CSS 中定义了不同的颜色
switch
(
index
)
{
case
0
:
return
'color-0'
;
case
1
:
return
'color-1'
;
case
2
:
return
'color-2'
;
// 添加更多 case 以支持更多颜色
default
:
return
'default-color'
;
// 默认颜色类名
}
},
},
},
computed
:{
computed
:{
barOption
()
{
barOption
()
{
...
@@ -586,10 +599,14 @@
...
@@ -586,10 +599,14 @@
font-family
:
Microsoft
YaHei
;
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
1.2vw
;
font-size
:
1.2vw
;
color
:
#0391FF
;
/*color: #0391FF;*/
line-height
:
25px
;
line-height
:
25px
;
margin-left
:
1vw
;
margin-left
:
1vw
;
}
}
.group-splicing-data
:nth-of-type
(
1
)
{
color
:
#0391FF
;
}
/*#0391FF #00EBFF #05CC26*/
.el-input__inner
{
.el-input__inner
{
width
:
10vw
;
width
:
10vw
;
height
:
4vh
;
height
:
4vh
;
...
@@ -741,6 +758,18 @@
...
@@ -741,6 +758,18 @@
align-items
:
center
;
align-items
:
center
;
color
:
#fff
;
color
:
#fff
;
}
}
.color-0
{
color
:
#0391FF
;
}
.color-1
{
color
:
#00EBFF
;
}
.color-2
{
color
:
#05CC26
;
}
.default-color
{
color
:
#000000
;
/* 或其他默认颜色 */
}
</style>
</style>
</body>
</body>
</html>
</html>
src/main/webapp/HP/BI/components/hipi/004/left-manage-device.vue
View file @
872601a9
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</div>
</div>
<div
style=
"width: 79%;margin-left: 3.2vw;height: 28vh;margin-top: 2vh"
>
<div
style=
"width: 79%;margin-left: 3.2vw;height: 28vh;margin-top: 2vh"
>
<div
class=
"content-device-img img"
>
<div
class=
"content-device-img img"
>
<div
class=
"title-content-device img"
>
成
库
库 1283
</div>
<div
class=
"title-content-device img"
>
成
品
库 1283
</div>
</div>
</div>
<img
src=
"../../hpjx/common/img/architectureDiagram.png"
style=
"width: 100%;height: 100%"
alt
/>
<img
src=
"../../hpjx/common/img/architectureDiagram.png"
style=
"width: 100%;height: 100%"
alt
/>
</div>
</div>
...
...
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