Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
abdbdfb9
Commit
abdbdfb9
authored
Jul 28, 2025
by
wangkangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.rokedata.com/dws/dwsproject
parents
05b3dd4b
8814cb68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
qdry_project/static/src/view/oee_time_sequence_table.html
+15
-11
No files found.
qdry_project/static/src/view/oee_time_sequence_table.html
View file @
abdbdfb9
...
...
@@ -65,7 +65,7 @@
<div
class=
"status-chart glass-effect"
>
<div
class=
"section-title"
>
<div
class=
"title-bar"
></div>
<span
class=
"title-text"
>
日均运行时间统计
</span>
<span
class=
"title-text"
>
日均运行时间统计
(分钟)
</span>
</div>
<div
class=
"chart-container"
>
...
...
@@ -92,7 +92,7 @@
<div
class=
"y-axis"
>
<span
v-for=
"(value, index) in yAxisValues"
:key=
"index"
class=
"y-axis-label"
>
[[value]]
<span
class=
"unit"
>
%
</span>
<span
class=
"unit"
>
分钟
</span>
</span>
</div>
<!-- 图表主体区域 -->
...
...
@@ -116,14 +116,14 @@
v-for=
"(segment, stackIndex) in item"
:key=
"stackIndex"
:style=
"{
'height': calculateHeight
(segment.duration_percentage) + '%',
'height': calculateHeight
ByMinutes(convertSecondsToMinutes(segment.duration)) + '%',
'background-color': segment.state,
'margin-top': '0px'
}"
>
<el-tooltip
effect=
"dark"
:content=
"c
alculateHeight(segment.duration_percentage) + '%'"
:content=
"c
onvertSecondsToMinutes(segment.duration) + '分钟'"
placement=
"top"
>
<div
style=
"height: 100%; width: 100%"
></div>
...
...
@@ -160,7 +160,7 @@
chart_loading
:
false
,
deviceList
:
[],
// 设备列表
selectedDevice
:
null
,
// 选中的设备
yAxisValues
:
[
"1
00"
,
"80"
,
"60"
,
"40"
,
"20"
,
"0"
],
// Y轴刻度值
yAxisValues
:
[
"1
440"
,
"1152"
,
"864"
,
"576"
,
"288"
,
"0"
],
// Y轴刻度值(分钟)
pickingOrderList
:
[],
// 拣选单列表
dateList
:
[],
// 日期列表
start_time
:
""
,
// 开始时间
...
...
@@ -445,12 +445,16 @@
this
.
utilizationChart
.
resize
();
},
300
);
// 延迟300ms初始化
},
// 计算高度百分比
calculateHeight
(
hours
)
{
// 直接使用百分比值
// yAxisValues = ["100", "80", "60", "40", "20", "0"],每个刻度区间是20%
// 确保高度在0-100%之间
return
Math
.
min
(
Math
.
max
(
hours
,
0
),
100
);
// 将秒转换为分钟
convertSecondsToMinutes
(
seconds
)
{
return
Math
.
round
(
seconds
/
60
);
},
// 基于分钟数计算高度百分比
calculateHeightByMinutes
(
minutes
)
{
// 将分钟数转换为相对于1440分钟(一天)的百分比
const
percentage
=
(
minutes
/
1440
)
*
100
;
return
Math
.
min
(
Math
.
max
(
percentage
,
0
),
100
);
},
// 获取最后指定天数的日期
getLastAssignDays
(
num
=
10
)
{
...
...
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