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
670c64b5
Commit
670c64b5
authored
Aug 22, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c2486c94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
302 additions
and
8 deletions
+302
-8
common.js
src/assets/js/common.js
+48
-0
index.vue
src/views/MLargeScreen/components/dataScreening/index.vue
+254
-8
No files found.
src/assets/js/common.js
View file @
670c64b5
...
...
@@ -1989,6 +1989,54 @@ var HttpReq = function(){
params
:
param
,
})
},
//大屏——数据总览——中间下方图表
apiPlanTime1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Plan/time
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——数据总览——运载数据
apiPlanZDay1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Plan/ZDay
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——数据总览——装载数据
apiPlanZMonth1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Plan/ZMonth
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——车辆管理——卡车铲车排行榜day
apiManmadesDay1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Manmades/Day
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——车辆管理——卡车铲车排行榜week
apiManmadesZhou1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Manmades/Zhou
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——车辆管理——卡车铲车排行榜month
apiManmadesMou1Query
:
function
(
param
){
return
request
({
url
:
'
/api/Manmades/Mou
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//大屏——智能调度——近期通知列表
recentNoticeQuery
:
function
(
param
){
return
request
({
...
...
src/views/MLargeScreen/components/dataScreening/index.vue
View file @
670c64b5
...
...
@@ -252,28 +252,28 @@
<div>
<div>
<div
style=
"color:#FFFFFF;font-size:14px;"
>
今日装载量
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
outputMineData
.
day
.
dayPlan
}}
吨
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
loadCenterData
.
dayAllLoad1
}}
吨
</div>
</div>
<img
src=
"../../../../assets/images/cutGraph/renwujihua1.png"
>
</div>
<div>
<div>
<div
style=
"color:#FFFFFF;font-size:14px;"
>
今日平均装载量
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
outputMineData
.
day
.
output
}}
吨/小时
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
loadCenterData
.
dayAverageLoad1
}}
吨/小时
</div>
</div>
<img
src=
"../../../../assets/images/cutGraph/mubiaoguanli1.png"
>
</div>
<div>
<div>
<div
style=
"color:#FFFFFF;font-size:14px;"
>
今日总工时
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
outputMineData
.
day
.
rat
e
}}
H
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
loadCenterData
.
dayAllTim
e
}}
H
</div>
</div>
<img
src=
"../../../../assets/images/cutGraph/wancheng1.png"
>
</div>
<div>
<div>
<div
style=
"color:#FFFFFF;font-size:14px;"
>
今日装载车数
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
outputMineData
.
month
.
dayPlan
}}
辆
</div>
<div
style=
"color:#00E9FD;font-size:16px;font-weight:600;"
>
{{
loadCenterData
.
dayLoadCarNum
}}
辆
</div>
</div>
<img
src=
"../../../../assets/images/cutGraph/jihuarenwu2.png"
>
</div>
...
...
@@ -465,7 +465,7 @@ export default {
centerViewData
:{
moduleText
:
'
centerModule1
'
,
xAxisData
:[
'
7:00
'
,
'
8:00
'
,
'
9:00
'
,
'
10:00
'
,
'
11:00
'
,
'
12:00
'
,
'
13:00
'
,
'
14:00
'
,
'
15:00
'
,
'
16:00
'
,
'
17:00
'
,
'
18:00
'
,
'
19:00
'
],
seriesData
:[
10
,
52
,
200
,
334
,
390
,
330
,
220
,
10
,
52
,
200
,
334
,
390
,
33
0
],
seriesData
:[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
},
//天气数据
weatherData
:{
...
...
@@ -688,7 +688,34 @@ export default {
}
})
//中间echarts图表
this
.
centerEcharts
();
HttpReq
.
truckDispatching
.
apiPlanTime1Query
().
then
((
res
)
=>
{
let
arr3
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
];
res
.
forEach
((
item
,
index
)
=>
{
arr3
.
splice
(
parseInt
(
item
.
hour
)
-
7
,
1
,
parseFloat
(
item
.
finish
));
})
this
.
centerViewData
.
seriesData
=
arr3
;
this
.
centerEcharts
();
})
//中间echarts运载数据
HttpReq
.
truckDispatching
.
apiPlanZDay1Query
().
then
((
res
)
=>
{
if
(
res
.
length
!=
0
){
this
.
carryCenterData
.
dayAllCarry1
=
res
[
0
].
finish
;
this
.
carryCenterData
.
dayAverageCarry1
=
parseFloat
(
res
[
0
].
pfin
).
toFixed
(
2
);
this
.
carryCenterData
.
dayAllMil1
=
0
;
this
.
carryCenterData
.
dayAllCarNum
=
res
[
0
].
num
;
this
.
carryCenterData
.
singleAverageTime
=
parseFloat
(
res
[
0
].
time
).
toFixed
(
2
);
this
.
carryCenterData
.
singleAverageMil
=
0
;
}
})
//中间echarts装载数据
HttpReq
.
truckDispatching
.
apiPlanZMonth1Query
().
then
((
res
)
=>
{
if
(
res
.
length
!=
0
){
this
.
loadCenterData
.
dayAllLoad1
=
res
[
0
].
finish
;
this
.
loadCenterData
.
dayAverageLoad1
=
parseFloat
(
res
[
0
].
pfin
).
toFixed
(
2
);
this
.
loadCenterData
.
dayAllTime
=
res
[
0
].
time
;
this
.
loadCenterData
.
dayLoadCarNum
=
res
[
0
].
num
;
}
})
//获取天气
HttpReq
.
truckDispatching
.
getWeatherInforQuery
({
cityName
:
'
济南
'
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
...
...
@@ -727,8 +754,228 @@ export default {
//定时刷新数据
this
.
dataScreeningTimer
=
setInterval
(()
=>
{
//获取采区当前日产量
HttpReq
.
truckDispatching
.
caiquAreaQueryDay
().
then
((
res
)
=>
{
let
undueArray
=
{};
if
(
res
.
length
==
0
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
0
;
undueArray
.
plan
=
0
;
}
else
{
if
(
res
[
0
].
eff
==
''
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
if
(
res
[
0
].
eff
>=
1
){
undueArray
.
eff
=
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
{
undueArray
.
eff
=
parseFloat
(
res
[
0
].
eff
)
*
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
}
this
.
outputMineData
.
day
=
undueArray
;
})
//获取采区当前月产量
HttpReq
.
truckDispatching
.
caiquAreaQueryMonth
().
then
((
res
)
=>
{
let
undueArray
=
{};
if
(
res
.
length
==
0
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
0
;
undueArray
.
plan
=
0
;
}
else
{
if
(
res
[
0
].
eff
==
''
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
if
(
res
[
0
].
eff
>=
1
){
undueArray
.
eff
=
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
{
undueArray
.
eff
=
parseFloat
(
res
[
0
].
eff
)
*
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
}
this
.
outputMineData
.
month
=
undueArray
;
})
//获取采区当前年产量
HttpReq
.
truckDispatching
.
caiquAreaQueryYear
().
then
((
res
)
=>
{
let
undueArray
=
{};
if
(
res
.
length
==
0
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
0
;
undueArray
.
plan
=
0
;
}
else
{
if
(
res
[
0
].
eff
==
''
){
undueArray
.
eff
=
0
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
if
(
res
[
0
].
eff
>=
1
){
undueArray
.
eff
=
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
else
{
undueArray
.
eff
=
parseFloat
(
res
[
0
].
eff
)
*
100
;
undueArray
.
finish
=
res
[
0
].
finish
;
undueArray
.
plan
=
res
[
0
].
plan
;
}
}
this
.
outputMineData
.
year
=
undueArray
;
})
//获取司机信息
HttpReq
.
truckDispatching
.
screenDriverInformationQuery
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
//司机信息处理
let
workerTemporary
=
[];
let
restTemporary
=
[];
res
.
data
.
content
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
workerTemporary
.
push
(
item
);
}
else
{
restTemporary
.
push
(
item
);
}
});
this
.
driverData
.
totalNumber
=
res
.
data
.
totalElements
;
this
.
driverData
.
driverTableData
=
workerTemporary
;
this
.
driverData
.
workersNumber
=
workerTemporary
.
length
;
this
.
driverData
.
restNumber
=
restTemporary
.
length
;
}
})
//获取卡车排行榜
let
truckQuery1
=
{};
truckQuery1
.
size
=
5
;
truckQuery1
.
sort
=
this
.
truckRankListData
.
selectFieldText
+
'
,desc
'
;
truckQuery1
.
carclass
=
this
.
truckRankListData
.
carclass
;
this
.
$nextTick
(()
=>
{
if
(
this
.
truckRankListData
.
selectTimeText
==
'
day
'
){
HttpReq
.
truckDispatching
.
kaChanRankListDayQuery
(
truckQuery1
).
then
((
res
)
=>
{
let
arr1
=
[];
let
arr2
=
[];
res
.
forEach
((
item
,
index
)
=>
{
arr1
.
push
(
item
.
driver
);
arr2
.
push
(
item
[
this
.
truckRankListData
.
selectFieldText
]);
})
this
.
truckRankListData
.
driverName
=
arr1
.
reverse
();
this
.
truckRankListData
.
driverSeriesData
=
arr2
.
reverse
();
this
.
truckChangeEcharts
();
})
}
else
if
(
this
.
truckRankListData
.
selectTimeText
==
'
week
'
){
HttpReq
.
truckDispatching
.
kaChanRankListZhouQuery
(
truckQuery1
).
then
((
res
)
=>
{
let
arr1
=
[];
let
arr2
=
[];
res
.
forEach
((
item
,
index
)
=>
{
arr1
.
push
(
item
.
driver
);
arr2
.
push
(
item
[
this
.
truckRankListData
.
selectFieldText
]);
})
this
.
truckRankListData
.
driverName
=
arr1
.
reverse
();
this
.
truckRankListData
.
driverSeriesData
=
arr2
.
reverse
();
this
.
truckChangeEcharts
();
})
}
else
if
(
this
.
truckRankListData
.
selectTimeText
==
'
month
'
){
HttpReq
.
truckDispatching
.
kaChanRankListMouQuery
(
truckQuery1
).
then
((
res
)
=>
{
let
arr1
=
[];
let
arr2
=
[];
res
.
forEach
((
item
,
index
)
=>
{
arr1
.
push
(
item
.
driver
);
arr2
.
push
(
item
[
this
.
truckRankListData
.
selectFieldText
]);
})
this
.
truckRankListData
.
driverName
=
arr1
.
reverse
();
this
.
truckRankListData
.
driverSeriesData
=
arr2
.
reverse
();
this
.
truckChangeEcharts
();
})
}
})
//获取铲车排行榜
let
forkLiftQuery1
=
{};
forkLiftQuery1
.
size
=
5
;
forkLiftQuery1
.
sort
=
this
.
forkLiftRankListData
.
selectFieldText
+
'
,desc
'
;
forkLiftQuery1
.
carclass
=
this
.
forkLiftRankListData
.
carclass
;
this
.
$nextTick
(()
=>
{
if
(
this
.
forkLiftRankListData
.
selectTimeText
==
'
day
'
){
HttpReq
.
truckDispatching
.
kaChanRankListDayQuery
(
forkLiftQuery1
).
then
((
res
)
=>
{
this
.
forkLiftRankListData
.
listData
=
res
;
})
}
else
if
(
this
.
forkLiftRankListData
.
selectTimeText
==
'
week
'
){
HttpReq
.
truckDispatching
.
kaChanRankListZhouQuery
(
forkLiftQuery1
).
then
((
res
)
=>
{
this
.
forkLiftRankListData
.
listData
=
res
;
})
}
else
if
(
this
.
forkLiftRankListData
.
selectTimeText
==
'
month
'
){
HttpReq
.
truckDispatching
.
kaChanRankListMouQuery
(
forkLiftQuery1
).
then
((
res
)
=>
{
this
.
forkLiftRankListData
.
listData
=
res
;
})
}
})
//中间echarts图表
HttpReq
.
truckDispatching
.
apiPlanTime1Query
().
then
((
res
)
=>
{
let
arr3
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
];
res
.
forEach
((
item
,
index
)
=>
{
arr3
.
splice
(
parseInt
(
item
.
hour
)
-
7
,
1
,
parseFloat
(
item
.
finish
));
})
this
.
centerViewData
.
seriesData
=
arr3
;
this
.
centerEcharts
();
})
//中间echarts运载数据
HttpReq
.
truckDispatching
.
apiPlanZDay1Query
().
then
((
res
)
=>
{
if
(
res
.
length
!=
0
){
this
.
carryCenterData
.
dayAllCarry1
=
res
[
0
].
finish
;
this
.
carryCenterData
.
dayAverageCarry1
=
parseFloat
(
res
[
0
].
pfin
).
toFixed
(
2
);
this
.
carryCenterData
.
dayAllMil1
=
0
;
this
.
carryCenterData
.
dayAllCarNum
=
res
[
0
].
num
;
this
.
carryCenterData
.
singleAverageTime
=
parseFloat
(
res
[
0
].
time
).
toFixed
(
2
);
this
.
carryCenterData
.
singleAverageMil
=
0
;
}
})
//中间echarts装载数据
HttpReq
.
truckDispatching
.
apiPlanZMonth1Query
().
then
((
res
)
=>
{
if
(
res
.
length
!=
0
){
this
.
loadCenterData
.
dayAllLoad1
=
res
[
0
].
finish
;
this
.
loadCenterData
.
dayAverageLoad1
=
parseFloat
(
res
[
0
].
pfin
).
toFixed
(
2
);
this
.
loadCenterData
.
dayAllTime
=
res
[
0
].
time
;
this
.
loadCenterData
.
dayLoadCarNum
=
res
[
0
].
num
;
}
})
//获取天气
HttpReq
.
truckDispatching
.
getWeatherInforQuery
({
cityName
:
'
济南
'
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
let
data1
=
JSON
.
parse
(
res
.
msg
).
data
.
forecast
;
this
.
weatherData
.
forecastData
=
data1
;
this
.
weatherData
.
today
=
data1
[
0
];
}
})
//车辆工时
HttpReq
.
truckDispatching
.
carWorkInforQuery
({
riqi
:
this
.
currentTime
.
day
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
totalElements
==
0
){
this
.
carWorkTimeData
.
listData
=
[
{
cartype
:
'
卡车
'
,
gongshi
:
0
,
xianzhi
:
0
},
{
cartype
:
'
铲车
'
,
gongshi
:
0
,
xianzhi
:
0
},
{
cartype
:
'
其他车辆
'
,
gongshi
:
0
,
xianzhi
:
0
},
];
}
else
{
this
.
carWorkTimeData
.
listData
=
res
.
data
.
content
;
}
}
})
//矿石开采效率
this
.
initLiquidEchart1
();
this
.
initLiquidEchart2
();
//实时报警
HttpReq
.
truckDispatching
.
callPoliceQuery
({
status
:
1
,
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
HttpReq
.
truckDispatching
.
carFaultQuery
({
status
:
1
,
size
:
9999
,
sort
:
'
createTime,desc
'
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
this
.
realAlarmStyleData
.
listData
=
res
.
data
.
content
.
concat
(
res1
.
data
.
content
);
}
})
}
})
},
10000
)
})
}
else
{
if
(
this
.
dataScreeningTimer
)
{
...
...
@@ -841,7 +1088,6 @@ export default {
},
//卡车排行榜Echarts
truckChangeEcharts
(){
console
.
log
(
this
.
truckRankListData
);
echarts
.
init
(
document
.
getElementById
(
'
dataScrView_leftView_content_views3_1
'
)).
dispose
();
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'
dataScrView_leftView_content_views3_1
'
));
var
option
=
{
...
...
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