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
23e89ebd
Commit
23e89ebd
authored
Jul 08, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fefbae00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
11 deletions
+64
-11
common.js
src/assets/js/common.js
+8
-0
index.vue
...iews/MLargeScreen/components/intelligentSchedul/index.vue
+56
-11
No files found.
src/assets/js/common.js
View file @
23e89ebd
...
...
@@ -2173,6 +2173,14 @@ var HttpReq = function(){
params
:
param
})
},
//大屏智能调度——采区车铲比
getLargeScreenchechanbi1
:
function
(
param
){
return
request
({
url
:
'
/api/Dispatch/areaCarShovel
'
,
method
:
'
get
'
,
params
:
param
})
},
...
...
src/views/MLargeScreen/components/intelligentSchedul/index.vue
View file @
23e89ebd
...
...
@@ -219,10 +219,10 @@ export default {
dispatchBtnTitle1
:
'
人工调度
'
,
//车辆区域分布Echarts
carsAreaDistributionData
:{
name
:[
'
矿区一
'
,
'
矿区二
'
,
'
矿区三
'
],
kache
:[
320
,
302
,
301
],
chanche
:[
320
,
302
,
301
],
qitache
:[
320
,
302
,
301
],
name
:[],
kache
:[],
chanche
:[],
qitache
:[],
},
//各装点车铲比Echarts
carsProportionData
:[
...
...
@@ -309,11 +309,32 @@ export default {
})
//车辆区域分布Echarts
HttpReq
.
truckDispatching
.
getLargeScreenfenbu1
({
size
:
9999
}).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
200
){
let
name
=
[];
let
kache
=
[];
let
chanche
=
[];
let
qitache
=
[];
res
.
data
.
forEach
((
item
,
index
)
=>
{
name
.
push
(
item
.
name
);
kache
.
push
(
item
.
truck
);
chanche
.
push
(
item
.
shovel
);
qitache
.
push
(
item
.
other
);
})
this
.
carsAreaDistributionData
.
name
=
name
;
this
.
carsAreaDistributionData
.
kache
=
kache
;
this
.
carsAreaDistributionData
.
chanche
=
chanche
;
this
.
carsAreaDistributionData
.
qitache
=
qitache
;
this
.
carsAreaDistributionEcharts
();
}
})
//各装点车铲比Echarts
HttpReq
.
truckDispatching
.
getLargeScreenchechanbi1
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
carsProportionData
=
res
.
data
;
this
.
carsProportionEcharts
();
}
})
this
.
carsAreaDistributionEcharts
();
this
.
carsProportionEcharts
();
//定时器
this
.
intelligentSchedulTimer
=
setInterval
(()
=>
{
//车队信息
...
...
@@ -362,9 +383,33 @@ export default {
this
.
dispatchFinishNum
=
res
[
0
].
round
;
}
})
//车辆区域分布Echarts
HttpReq
.
truckDispatching
.
getLargeScreenfenbu1
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
let
name
=
[];
let
kache
=
[];
let
chanche
=
[];
let
qitache
=
[];
res
.
data
.
forEach
((
item
,
index
)
=>
{
name
.
push
(
item
.
name
);
kache
.
push
(
item
.
truck
);
chanche
.
push
(
item
.
shovel
);
qitache
.
push
(
item
.
other
);
})
this
.
carsAreaDistributionData
.
name
=
name
;
this
.
carsAreaDistributionData
.
kache
=
kache
;
this
.
carsAreaDistributionData
.
chanche
=
chanche
;
this
.
carsAreaDistributionData
.
qitache
=
qitache
;
this
.
carsAreaDistributionEcharts
();
}
})
//各装点车铲比Echarts
HttpReq
.
truckDispatching
.
getLargeScreenchechanbi1
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
carsProportionData
=
res
.
data
;
this
.
carsProportionEcharts
();
}
})
},
10000
)
})
...
...
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