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
0
Merge Requests
0
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
8814cb68
Commit
8814cb68
authored
Jul 28, 2025
by
延飞 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OEE 时间利用率中日均运行时间统计显示的百分比改为显示分钟
parent
9d819237
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 @
8814cb68
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<div
class=
"status-chart glass-effect"
>
<div
class=
"status-chart glass-effect"
>
<div
class=
"section-title"
>
<div
class=
"section-title"
>
<div
class=
"title-bar"
></div>
<div
class=
"title-bar"
></div>
<span
class=
"title-text"
>
日均运行时间统计
</span>
<span
class=
"title-text"
>
日均运行时间统计
(分钟)
</span>
</div>
</div>
<div
class=
"chart-container"
>
<div
class=
"chart-container"
>
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
<div
class=
"y-axis"
>
<div
class=
"y-axis"
>
<span
v-for=
"(value, index) in yAxisValues"
:key=
"index"
class=
"y-axis-label"
>
<span
v-for=
"(value, index) in yAxisValues"
:key=
"index"
class=
"y-axis-label"
>
[[value]]
[[value]]
<span
class=
"unit"
>
%
</span>
<span
class=
"unit"
>
分钟
</span>
</span>
</span>
</div>
</div>
<!-- 图表主体区域 -->
<!-- 图表主体区域 -->
...
@@ -116,14 +116,14 @@
...
@@ -116,14 +116,14 @@
v-for=
"(segment, stackIndex) in item"
v-for=
"(segment, stackIndex) in item"
:key=
"stackIndex"
:key=
"stackIndex"
:style=
"{
:style=
"{
'height': calculateHeight
(segment.duration_percentage) + '%',
'height': calculateHeight
ByMinutes(convertSecondsToMinutes(segment.duration)) + '%',
'background-color': segment.state,
'background-color': segment.state,
'margin-top': '0px'
'margin-top': '0px'
}"
}"
>
>
<el-tooltip
<el-tooltip
effect=
"dark"
effect=
"dark"
:content=
"c
alculateHeight(segment.duration_percentage) + '%'"
:content=
"c
onvertSecondsToMinutes(segment.duration) + '分钟'"
placement=
"top"
placement=
"top"
>
>
<div
style=
"height: 100%; width: 100%"
></div>
<div
style=
"height: 100%; width: 100%"
></div>
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
chart_loading
:
false
,
chart_loading
:
false
,
deviceList
:
[],
// 设备列表
deviceList
:
[],
// 设备列表
selectedDevice
:
null
,
// 选中的设备
selectedDevice
:
null
,
// 选中的设备
yAxisValues
:
[
"1
00"
,
"80"
,
"60"
,
"40"
,
"20"
,
"0"
],
// Y轴刻度值
yAxisValues
:
[
"1
440"
,
"1152"
,
"864"
,
"576"
,
"288"
,
"0"
],
// Y轴刻度值(分钟)
pickingOrderList
:
[],
// 拣选单列表
pickingOrderList
:
[],
// 拣选单列表
dateList
:
[],
// 日期列表
dateList
:
[],
// 日期列表
start_time
:
""
,
// 开始时间
start_time
:
""
,
// 开始时间
...
@@ -445,12 +445,16 @@
...
@@ -445,12 +445,16 @@
this
.
utilizationChart
.
resize
();
this
.
utilizationChart
.
resize
();
},
300
);
// 延迟300ms初始化
},
300
);
// 延迟300ms初始化
},
},
// 计算高度百分比
// 将秒转换为分钟
calculateHeight
(
hours
)
{
convertSecondsToMinutes
(
seconds
)
{
// 直接使用百分比值
return
Math
.
round
(
seconds
/
60
);
// yAxisValues = ["100", "80", "60", "40", "20", "0"],每个刻度区间是20%
},
// 确保高度在0-100%之间
return
Math
.
min
(
Math
.
max
(
hours
,
0
),
100
);
// 基于分钟数计算高度百分比
calculateHeightByMinutes
(
minutes
)
{
// 将分钟数转换为相对于1440分钟(一天)的百分比
const
percentage
=
(
minutes
/
1440
)
*
100
;
return
Math
.
min
(
Math
.
max
(
percentage
,
0
),
100
);
},
},
// 获取最后指定天数的日期
// 获取最后指定天数的日期
getLastAssignDays
(
num
=
10
)
{
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