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
6142c3e9
Commit
6142c3e9
authored
Oct 28, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0690f55a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
530 additions
and
11 deletions
+530
-11
DPcomputer10.vue
.../MLargeScreen/components/smallComponents/DPcomputer10.vue
+122
-0
DPcomputer11.vue
.../MLargeScreen/components/smallComponents/DPcomputer11.vue
+387
-6
DPcomputer12.vue
.../MLargeScreen/components/smallComponents/DPcomputer12.vue
+21
-5
No files found.
src/views/MLargeScreen/components/smallComponents/DPcomputer10.vue
View file @
6142c3e9
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
<
script
>
<
script
>
import
{
Tools
,
HttpReq
,
CAMap
}
from
'
@/assets/js/common.js
'
;
import
{
Tools
,
HttpReq
,
CAMap
}
from
'
@/assets/js/common.js
'
;
import
*
as
echarts
from
'
echarts
'
;
import
"
echarts-gl
"
;
import
{
getPie3D
}
from
"
../../../components/echarts/bingtu3d
"
;
export
default
{
export
default
{
...
@@ -95,6 +98,125 @@ export default {
...
@@ -95,6 +98,125 @@ export default {
},
},
methods
:{
methods
:{
loadData
(){
loadData
(){
//获取车辆运行状况
HttpReq
.
truckDispatching
.
carInformationQuery
({
size
:
9999
}).
then
((
res
)
=>
{
let
kache1
=
[];
let
kachezaixian
=
[];
let
kachelixian
=
[];
let
dianchan1
=
[];
let
dianchanzaixian
=
[];
let
dianchanlixian
=
[];
let
qitache1
=
[];
let
qitachezaixian
=
[];
let
qitachelixian
=
[];
if
(
res
.
code
==
200
){
res
.
data
.
content
.
forEach
((
item
)
=>
{
if
(
item
.
carclass
==
'
卡车
'
){
kache1
.
push
(
item
);
}
else
if
(
item
.
carclass
==
'
铲车
'
){
dianchan1
.
push
(
item
);
}
else
{
qitache1
.
push
(
item
);
}
})
this
.
carWorkingStateData
.
optionData
[
0
].
value
=
kache1
.
length
;
this
.
carWorkingStateData
.
optionData
[
1
].
value
=
dianchan1
.
length
;
kache1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
kachezaixian
.
push
(
item
);
}
else
{
kachelixian
.
push
(
item
);
}
})
dianchan1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
dianchanzaixian
.
push
(
item
);
}
else
{
dianchanlixian
.
push
(
item
);
}
})
qitache1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
qitachezaixian
.
push
(
item
);
}
else
{
qitachelixian
.
push
(
item
);
}
})
this
.
carWorkingStateData
.
kacheonline
=
kachezaixian
.
length
;
this
.
carWorkingStateData
.
chancheonline
=
dianchanzaixian
.
length
;
this
.
carWorkingStateData
.
qitacheonline
=
qitachezaixian
.
length
;
this
.
carWorkingStateData
.
kacheoffline
=
kachelixian
.
length
;
this
.
carWorkingStateData
.
chancheoffline
=
dianchanlixian
.
length
;
this
.
carWorkingStateData
.
qitacheoffline
=
qitachelixian
.
length
;
this
.
draw3d
();
this
.
$nextTick
(()
=>
{
let
parent
=
document
.
getElementById
(
"
chart-panel
"
);
// 获取父元素
let
canvas
=
parent
.
getElementsByTagName
(
"
canvas
"
);
// 获取父元素下面的所有canvas元素
canvas
[
1
].
style
.
transform
=
"
rotateX(30deg)
"
;
});
}
})
this
.
DPcomputer10BoxTimer
=
setInterval
(()
=>
{
//获取车辆运行状况
HttpReq
.
truckDispatching
.
carInformationQuery
({
size
:
9999
}).
then
((
res
)
=>
{
let
kache1
=
[];
let
kachezaixian
=
[];
let
kachelixian
=
[];
let
dianchan1
=
[];
let
dianchanzaixian
=
[];
let
dianchanlixian
=
[];
let
qitache1
=
[];
let
qitachezaixian
=
[];
let
qitachelixian
=
[];
if
(
res
.
code
==
200
){
res
.
data
.
content
.
forEach
((
item
)
=>
{
if
(
item
.
carclass
==
'
卡车
'
){
kache1
.
push
(
item
);
}
else
if
(
item
.
carclass
==
'
铲车
'
){
dianchan1
.
push
(
item
);
}
else
{
qitache1
.
push
(
item
);
}
})
this
.
carWorkingStateData
.
optionData
[
0
].
value
=
kache1
.
length
;
this
.
carWorkingStateData
.
optionData
[
1
].
value
=
dianchan1
.
length
;
kache1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
kachezaixian
.
push
(
item
);
}
else
{
kachelixian
.
push
(
item
);
}
})
dianchan1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
dianchanzaixian
.
push
(
item
);
}
else
{
dianchanlixian
.
push
(
item
);
}
})
qitache1
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
1
){
qitachezaixian
.
push
(
item
);
}
else
{
qitachelixian
.
push
(
item
);
}
})
this
.
carWorkingStateData
.
kacheonline
=
kachezaixian
.
length
;
this
.
carWorkingStateData
.
chancheonline
=
dianchanzaixian
.
length
;
this
.
carWorkingStateData
.
qitacheonline
=
qitachezaixian
.
length
;
this
.
carWorkingStateData
.
kacheoffline
=
kachelixian
.
length
;
this
.
carWorkingStateData
.
chancheoffline
=
dianchanlixian
.
length
;
this
.
carWorkingStateData
.
qitacheoffline
=
qitachelixian
.
length
;
this
.
draw3d
();
this
.
$nextTick
(()
=>
{
let
parent
=
document
.
getElementById
(
"
chart-panel
"
);
// 获取父元素
let
canvas
=
parent
.
getElementsByTagName
(
"
canvas
"
);
// 获取父元素下面的所有canvas元素
canvas
[
1
].
style
.
transform
=
"
rotateX(30deg)
"
;
});
}
})
},
10000
)
},
},
//车辆运行状况
//车辆运行状况
...
...
src/views/MLargeScreen/components/smallComponents/DPcomputer11.vue
View file @
6142c3e9
This diff is collapsed.
Click to expand it.
src/views/MLargeScreen/components/smallComponents/DPcomputer12.vue
View file @
6142c3e9
<
template
>
<
template
>
<div>
<div
class=
"DPcomputer12Box"
>
<!-- 铲车排行榜-->
</div>
</div>
</
template
>
</
template
>
...
@@ -11,15 +12,23 @@ import { Tools, HttpReq, CAMap} from '@/assets/js/common.js';
...
@@ -11,15 +12,23 @@ import { Tools, HttpReq, CAMap} from '@/assets/js/common.js';
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
DPcomputer12BoxTimer
:
null
,
}
}
},
},
mounted
(){},
mounted
(){
this
.
loadData
();
},
methods
:{
methods
:{
loadData
(){
},
},
},
beforeDestroy
(){
beforeDestroy
(){
if
(
this
.
DPcomputer12BoxTimer
)
{
clearInterval
(
this
.
DPcomputer12BoxTimer
);
this
.
DPcomputer12BoxTimer
=
null
;
}
}
}
}
}
</
script
>
</
script
>
...
@@ -29,5 +38,12 @@ export default {
...
@@ -29,5 +38,12 @@ export default {
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
}
}
.DPcomputer12Box
{
width
:
20vw
;
height
:
32vh
;
background-color
:
rgba
(
32
,
42
,
67
,
0.95
);
padding
:
5px
7px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
</
style
>
</
style
>
\ No newline at end of file
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