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
33daadfd
Commit
33daadfd
authored
Oct 25, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5e94f224
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
24 deletions
+61
-24
common.js
src/assets/js/common.js
+9
-1
Map2.vue
src/components/mars3d/Map2.vue
+1
-0
index.vue
src/views/carManagement/carTrajectory/index.vue
+51
-23
No files found.
src/assets/js/common.js
View file @
33daadfd
...
...
@@ -2225,7 +2225,7 @@ var HttpReq = function(){
params
:
param
,
})
},
//获取地图车辆轨迹——获取轨迹列表
//获取地图车辆轨迹——获取
停车时间以及地点
轨迹列表
mineAlarmHistoryCountQuery
:
function
(
param
){
return
request
({
url
:
'
/api/mineAlarmHistory/Count
'
,
...
...
@@ -2233,6 +2233,14 @@ var HttpReq = function(){
params
:
param
,
})
},
//获取地图车辆轨迹——获取轨迹播放时间列表
apiMineAlarmHistoryTongJiQuery
:
function
(
param
){
return
request
({
url
:
'
/api/mineAlarmHistory/TongJi
'
,
method
:
'
get
'
,
params
:
param
,
})
},
//获取地图车辆轨迹——获取所有实时坐标
getAllNewTimeCarTrajectoryQuery
:
function
(
param
){
return
request
({
...
...
src/components/mars3d/Map2.vue
View file @
33daadfd
...
...
@@ -94,6 +94,7 @@ export default {
that
.
deviceId
=
equipmentName
;
that
.
carNumber
=
number
;
that
.
carPlaySpeed
=
speed
;
console
.
log
(
that
.
carPlaySpeed
);
that
.
stopPointData
=
stopPointData
;
that
.
leadTime
=
leadTimeShow
;
//获取历史轨迹
...
...
src/views/carManagement/carTrajectory/index.vue
View file @
33daadfd
...
...
@@ -17,9 +17,7 @@
</el-form-item>
<el-form-item
label=
"*车牌号"
style=
"display: inline-block;"
>
<el-select
v-model=
"query.number"
placeholder=
"请选择车牌号"
>
<el-option
v-for=
"(obj,index) in carInformationData"
:label=
"obj.number"
:value=
"obj.number"
:key=
"index"
></el-option>
</el-select>
<el-cascader
v-model=
"carInforValue"
:options=
"carInformationData"
@
change=
"handleChange"
></el-cascader>
</el-form-item>
<el-button
type=
"success"
icon=
"el-icon-search"
@
click=
"toSearch"
style=
"display: inline-block;"
>
搜索
</el-button>
...
...
@@ -58,8 +56,8 @@
<div
class=
"trajectoryTableView"
>
<div
style=
"font-size:20px;font-weight: 600;"
>
播放时间列表
</div>
<el-table
:data=
"playtimeTableData"
border
height=
"58.5vh"
>
<el-table-column
prop=
"
dat
e"
label=
"启动时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
na
me"
label=
"停车时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
bTim
e"
label=
"启动时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
eTi
me"
label=
"停车时间"
align=
"center"
></el-table-column>
</el-table>
</div>
<div
class=
"tishiTextStyle"
v-if=
"tishiTextShow"
>
请选择车辆查看轨迹
</div>
...
...
@@ -84,6 +82,7 @@ export default {
return
{
//地图图片
configUrl
:
basePathUrl
+
'
config/config.json
'
,
carInforValue
:[],
query
:{
number
:
''
,
bTime
:
''
,
...
...
@@ -91,7 +90,7 @@ export default {
},
carInformationData
:[],
shuaxinTimer
:
null
,
playSpeedNum
:
5
,
playSpeedNum
:
1
,
tishiTextShow
:
true
,
//停车时间以及地点数据
trajectoryTableData
:[],
...
...
@@ -191,11 +190,11 @@ export default {
}
})
//获取右侧播放时间列表
// HttpReq.truckDispatching.mineAlarmHistoryCount
Query({number:this.query.number,bTime:this.query.bTime,eTime:this.query.eTime}).then((res1) => {
//
if(res1.code == 200){
//
}
//
})
HttpReq
.
truckDispatching
.
apiMineAlarmHistoryTongJi
Query
({
number
:
this
.
query
.
number
,
bTime
:
this
.
query
.
bTime
,
eTime
:
this
.
query
.
eTime
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
this
.
playtimeTableData
=
res1
.
data
;
}
})
}
else
{
this
.
$notify
({
title
:
'
暂无该车辆轨迹信息!
'
,
...
...
@@ -208,13 +207,12 @@ export default {
},
// 重置搜索
clearLimit
(){
this
.
query
=
{
number
:
''
,
bTime
:
''
,
eTime
:
''
,
};
this
.
playSpeedNum
=
5
;
this
.
query
=
{
number
:
''
,
bTime
:
''
,
eTime
:
''
};
this
.
carInforValue
=
[];
this
.
playSpeedNum
=
1
;
this
.
trajectoryTableData
=
[];
this
.
playtimeTableData
=
[];
this
.
trajectoryTimePoint
=
''
;
this
.
loadData
();
this
.
tishiTextShow
=
true
;
this
.
shuaxinTimer
=
new
Date
().
getTime
();
...
...
@@ -224,20 +222,42 @@ export default {
//获取数据
loadData
()
{
this
.
$nextTick
(()
=>
{
//获取车辆信息
HttpReq
.
truckDispatching
.
carInformationQuery
({
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){;
this
.
carInformationData
=
res
.
data
.
content
;
//获取车队
let
arr1
=
[];
HttpReq
.
truckDispatching
.
carFleetQuery
({
size
:
9999
}).
then
((
res1
)
=>
{
if
(
res1
.
code
==
200
){
//获取车辆信息
HttpReq
.
truckDispatching
.
carInformationQuery
({
size
:
9999
}).
then
((
res2
)
=>
{
if
(
res2
.
code
==
200
){
res1
.
data
.
content
.
forEach
((
item1
,
index1
)
=>
{
let
obj1
=
{};
obj1
.
value
=
item1
.
name
;
obj1
.
label
=
item1
.
name
;
obj1
.
children
=
[];
res2
.
data
.
content
.
forEach
((
item2
,
index2
)
=>
{
if
(
item1
.
name
==
item2
.
road
){
let
obj2
=
{};
obj2
.
value
=
item2
.
number
;
obj2
.
label
=
item2
.
number
;
obj1
.
children
.
push
(
obj2
);
}
})
arr1
.
push
(
obj1
);
})
this
.
carInformationData
=
arr1
;
}
})
}
})
})
},
//改变倍速
changeSpeed
(
num
){
let
that
=
this
;
let
numSpeed1
=
5
/
parseFloat
(
num
);
this
.
playSpeedNum
=
parseFloat
(
num
Speed1
);
let
numSpeed1
=
parseFloat
(
num
);
this
.
playSpeedNum
=
parseFloat
(
num
);
if
(
this
.
query
.
number
==
''
||
this
.
query
.
bTime
==
''
||
this
.
query
.
eTime
==
''
){
return
;
}
else
{
...
...
@@ -274,6 +294,14 @@ export default {
})
}
},
//选择车辆级联器
handleChange
(){
if
(
this
.
carInforValue
.
length
==
2
){
this
.
query
.
number
=
this
.
carInforValue
[
1
];
}
else
{
this
.
query
.
number
=
''
;
}
},
// 地图构造完成回调
onMapload
(
map
)
{
// 以下为演示代码
...
...
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