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
ddebd0db
Commit
ddebd0db
authored
Sep 12, 2025
by
wangkangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.rokedata.com/dws/dwsproject
parents
5502b037
f73f9799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
qdry_project/static/src/view/oee_time_sequence_table.html
+10
-3
No files found.
qdry_project/static/src/view/oee_time_sequence_table.html
View file @
ddebd0db
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
idle_rate_loading
:
false
,
// 加载效果
idle_rate_loading
:
false
,
// 加载效果
chart_loading
:
false
,
chart_loading
:
false
,
deviceList
:
[],
// 设备列表
deviceList
:
[],
// 设备列表
selectedDevice
:
null
,
// 选中的设备
selectedDevice
:
""
,
// 选中的设备,默认为空字符串而不是null
yAxisValues
:
[
"1440"
,
"1152"
,
"864"
,
"576"
,
"288"
,
"0"
],
// Y轴刻度值(分钟)
yAxisValues
:
[
"1440"
,
"1152"
,
"864"
,
"576"
,
"288"
,
"0"
],
// Y轴刻度值(分钟)
pickingOrderList
:
[],
// 拣选单列表
pickingOrderList
:
[],
// 拣选单列表
dateList
:
[],
// 日期列表
dateList
:
[],
// 日期列表
...
@@ -224,6 +224,10 @@
...
@@ -224,6 +224,10 @@
}
}
});
});
});
});
// 设备列表加载完成后,默认选择第一个设备
if
(
this
.
deviceList
.
length
>
0
)
{
this
.
selectedDevice
=
this
.
deviceList
[
0
].
code
;
}
this
.
get_plan_time
();
this
.
get_plan_time
();
console
.
log
(
"获取到所有已绑定设备数据:"
,
this
.
deviceList
.
length
,
"条"
);
console
.
log
(
"获取到所有已绑定设备数据:"
,
this
.
deviceList
.
length
,
"条"
);
}
else
{
}
else
{
...
@@ -297,9 +301,11 @@
...
@@ -297,9 +301,11 @@
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
result
.
code
==
0
)
{
if
(
res
.
data
.
result
.
code
==
0
)
{
this
.
plan_time_list
=
res
.
data
.
result
.
data
;
this
.
plan_time_list
=
res
.
data
.
result
.
data
;
//
只有在选择了设备时才调用单设备空闲率接口
//
获取单设备空闲率接口数据
if
(
this
.
selectedDevice
)
{
if
(
this
.
selectedDevice
)
{
this
.
get_series_utilization_rate
();
this
.
get_series_utilization_rate
();
// 同时获取日均运行时间数据
this
.
get_daily_running_time
();
}
}
// 初始化多设备图表
// 初始化多设备图表
if
(
this
.
multiUtilizationChart
)
{
if
(
this
.
multiUtilizationChart
)
{
...
@@ -546,7 +552,8 @@
...
@@ -546,7 +552,8 @@
// 新增:获取多设备空闲率数据(Top 5)
// 新增:获取多设备空闲率数据(Top 5)
get_series_utilization_rate_top_5
()
{
get_series_utilization_rate_top_5
()
{
// 构造设备列表参数
// 构造设备列表参数
const
device_code_list
=
this
.
deviceList
.
map
((
device
)
=>
({
const
allowedEqpts
=
[
"激光切割机EE0032261"
,
"激光切割机EQ0032221"
,
"自动带锯EQ0032082"
,
"数控中走丝线切割机床EQ0032256"
,
"数控相贯线切割设备EQ0032227"
];
const
device_code_list
=
this
.
deviceList
.
filter
(
device
=>
allowedEqpts
.
includes
(
device
.
name
)).
map
((
device
)
=>
({
device_name
:
device
.
name
,
device_name
:
device
.
name
,
device_code
:
device
.
code
,
device_code
:
device
.
code
,
}));
}));
...
...
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