Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caicaicai
卡车调度系统
Commits
c92bdf1f
Commit
c92bdf1f
authored
Nov 07, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3476eb01
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
36 deletions
+85
-36
DPcomputer7.vue
...s/MLargeScreen/components/smallComponents/DPcomputer7.vue
+32
-32
DPcomputer8.vue
...s/MLargeScreen/components/smallComponents/DPcomputer8.vue
+53
-4
No files found.
src/views/MLargeScreen/components/smallComponents/DPcomputer7.vue
View file @
c92bdf1f
This diff is collapsed.
Click to expand it.
src/views/MLargeScreen/components/smallComponents/DPcomputer8.vue
View file @
c92bdf1f
...
...
@@ -42,11 +42,11 @@ export default {
//矿石开采效率
exploitationEfficiencyData
:{
rate1
:[
0.5
],
dayYield1
:
5
0
,
dayMil1
:
3
0
,
dayYield1
:
0
,
dayMil1
:
0
,
rate2
:[
0.5
],
dayWorkTime2
:
8
,
dayYield2
:
5
0
,
dayWorkTime2
:
0
,
dayYield2
:
0
,
},
}
},
...
...
@@ -56,11 +56,43 @@ export default {
methods
:{
loadData
(){
//矿石开采效率
HttpReq
.
truckDispatching
.
apiManmadesCheDayQueryDay
({
createTime
:
this
.
dayCurrentTimeFn
(),
size
:
9999
,
page
:
0
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
let
text1
=
0
;
let
text2
=
0
;
let
text3
=
0
;
res
.
data
.
forEach
((
item
,
index
)
=>
{
text1
=
text1
+
(
item
.
weight
?
parseFloat
(
item
.
weight
)
:
0
);
text2
=
text2
+
(
item
.
mil
?
parseFloat
(
item
.
mil
)
:
0
);
text3
=
text3
+
(
item
.
time
?
parseFloat
(
item
.
time
)
:
0
);
});
this
.
exploitationEfficiencyData
.
dayYield1
=
text1
;
this
.
exploitationEfficiencyData
.
dayMil1
=
text2
.
toFixed
(
3
);
this
.
exploitationEfficiencyData
.
dayWorkTime2
=
text3
;
this
.
exploitationEfficiencyData
.
dayYield2
=
text1
;
}
})
this
.
initLiquidEchart1
();
this
.
initLiquidEchart2
();
this
.
DPcomputer8BoxTimer
=
setInterval
(()
=>
{
//矿石开采效率
HttpReq
.
truckDispatching
.
apiManmadesCheDayQueryDay
({
createTime
:
this
.
dayCurrentTimeFn
(),
size
:
9999
,
page
:
0
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
let
text1
=
0
;
let
text2
=
0
;
let
text3
=
0
;
res
.
data
.
forEach
((
item
,
index
)
=>
{
text1
=
text1
+
(
item
.
weight
?
parseFloat
(
item
.
weight
)
:
0
);
text2
=
text2
+
(
item
.
mil
?
parseFloat
(
item
.
mil
)
:
0
);
text3
=
text3
+
(
item
.
time
?
parseFloat
(
item
.
time
)
:
0
);
});
this
.
exploitationEfficiencyData
.
dayYield1
=
text1
;
this
.
exploitationEfficiencyData
.
dayMil1
=
text2
.
toFixed
(
3
);
this
.
exploitationEfficiencyData
.
dayWorkTime2
=
text3
;
this
.
exploitationEfficiencyData
.
dayYield2
=
text1
;
}
})
this
.
initLiquidEchart1
();
this
.
initLiquidEchart2
();
},
10000
)
...
...
@@ -176,6 +208,23 @@ export default {
});
},
50
)
},
//获取当前时间
dayCurrentTimeFn
(){
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
//年 ,从 Date 对象以四位数字返回年份
var
month
=
date
.
getMonth
()
+
1
;
//月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"
0
"
+
month
;
}
//修改日期格式
if
(
day
>=
0
&&
day
<=
9
)
{
day
=
"
0
"
+
day
;
}
let
currentFormatDate
=
year
+
"
-
"
+
month
+
"
-
"
+
day
;
return
currentFormatDate
},
},
beforeDestroy
(){
if
(
this
.
DPcomputer8BoxTimer
)
{
...
...
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