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
709e01cc
Commit
709e01cc
authored
Apr 20, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
903ab1c6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
250 deletions
+98
-250
Map2.vue
src/components/mars3d/Map2.vue
+77
-212
index.vue
src/views/carManagement/carTrajectory/index.vue
+21
-38
No files found.
src/components/mars3d/Map2.vue
View file @
709e01cc
This diff is collapsed.
Click to expand it.
src/views/carManagement/carTrajectory/index.vue
View file @
709e01cc
...
@@ -8,51 +8,32 @@
...
@@ -8,51 +8,32 @@
<div
style=
"font-size:18px;font-weight:bold;margin-bottom:10px;"
>
车辆历史轨迹查询
</div>
<div
style=
"font-size:18px;font-weight:bold;margin-bottom:10px;"
>
车辆历史轨迹查询
</div>
<!--
<el-form-item
label=
"开始时间"
style=
"display: inline-block;"
>
<el-date-picker
v-model=
"query.startTime"
type=
"datetime"
placeholder=
"选择开始时间"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"结束时间"
style=
"display: inline-block;"
>
<el-date-picker
v-model=
"query.endTime"
type=
"datetime"
placeholder=
"选择结束时间"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"选择矿区"
style=
"display: inline-block;"
>
<el-select
v-model=
"query.road"
placeholder=
"请选择矿区"
>
<el-option
v-for=
"(obj,index) in areaInformationData"
:label=
"obj.name"
:value=
"obj.name"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
-->
<el-form-item
label=
"车辆牌号"
style=
"display: inline-block;"
>
<el-form-item
label=
"车辆牌号"
style=
"display: inline-block;"
>
<el-select
v-model=
"query.number"
placeholder=
"请选择车辆牌号"
>
<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-option
v-for=
"(obj,index) in carInformationData"
:label=
"obj.number"
:value=
"obj.number"
:key=
"index"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间"
style=
"display: inline-block;"
>
<el-date-picker
v-model=
"query.bTime"
type=
"datetime"
placeholder=
"选择开始时间"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"结束时间"
style=
"display: inline-block;"
>
<el-date-picker
v-model=
"query.eTime"
type=
"datetime"
placeholder=
"选择结束时间"
></el-date-picker>
</el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"toSearch"
style=
"display: inline-block;"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"toSearch"
style=
"display: inline-block;"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"clearLimit"
style=
"display: inline-block;"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"clearLimit"
style=
"display: inline-block;"
>
重置
</el-button>
<br>
<br>
<!--
<el-form-item
label=
"测量距离"
style=
"display: inline-block;"
>
<el-button
type=
"primary"
plain
style=
"font-size:15px;"
>
开测距
</el-button>
<el-button
type=
"primary"
plain
style=
"font-size:15px;"
>
关测距
</el-button>
</el-form-item>
<el-form-item
label=
"轨迹时间点"
style=
"display: inline-block;"
>
<el-select
v-model=
"query.pointOfTime"
placeholder=
"请选择轨迹时间点"
>
<el-option
label=
"点1"
value=
"点1"
></el-option>
<el-option
label=
"点2"
value=
"点2"
></el-option>
<el-option
label=
"点3"
value=
"点3"
></el-option>
</el-select>
</el-form-item>
<el-button
style=
"font-size:15px;"
>
暂停
</el-button>
<el-button
style=
"font-size:15px;"
>
继续
</el-button>
<el-button
style=
"font-size:15px;"
>
统计轨迹
</el-button>
-->
<el-form-item
label=
"观看倍速"
style=
"display: inline-block;"
>
<el-form-item
label=
"观看倍速"
style=
"display: inline-block;"
>
<el-select
v-model=
"query.playSpeed"
placeholder=
"请选择观看倍速"
@
change=
"changeSpeed()"
>
<el-select
v-model=
"query.playSpeed"
placeholder=
"请选择观看倍速"
@
change=
"changeSpeed()"
>
<el-option
label=
"1倍"
value=
"1"
></el-option>
<el-option
label=
"1倍"
value=
"1"
></el-option>
<el-option
label=
"4倍"
value=
"4"
></el-option>
<el-option
label=
"4倍"
value=
"4"
></el-option>
<el-option
label=
"8倍"
value=
"8"
></el-option>
<el-option
label=
"8倍"
value=
"8"
></el-option>
<el-option
label=
"16倍"
value=
"16"
></el-option>
<el-option
label=
"16倍"
value=
"16"
></el-option>
<el-option
label=
"32倍"
value=
"32"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!--
<el-button
type=
"primary"
plain
style=
"font-size:15px;"
>
显示所有轨迹
</el-button>
-->
</el-form>
</el-form>
<div
id=
"centerDiv"
class=
"mapcontainer2"
>
<div
id=
"centerDiv"
class=
"mapcontainer2"
>
...
@@ -81,30 +62,30 @@ export default {
...
@@ -81,30 +62,30 @@ export default {
configUrl
:
basePathUrl
+
'
config/config.json
'
,
configUrl
:
basePathUrl
+
'
config/config.json
'
,
query
:{
query
:{
number
:
''
,
number
:
''
,
start
Time
:
''
,
b
Time
:
''
,
e
nd
Time
:
''
,
eTime
:
''
,
playSpeed
:
'
1
'
,
playSpeed
:
'
1
'
,
},
},
carInformationData
:[],
carInformationData
:[],
areaInformationData
:[],
areaInformationData
:[],
shuaxinTimer
:
null
,
shuaxinTimer
:
null
,
playSpeedNum
:
120
,
playSpeedNum
:
5
,
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
loadData
();
this
.
loadData
();
this
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
''
,
''
,
5
,
''
,
''
);
})
})
},
},
methods
:
{
methods
:
{
// 点击搜索
// 点击搜索
toSearch
()
{
toSearch
()
{
let
that
=
this
;
let
that
=
this
;
//console.log(this.query.number);
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
this
.
query
.
number
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
this
.
query
.
number
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
this
.
shuaxinTimer
=
new
Date
().
getTime
();
this
.
shuaxinTimer
=
new
Date
().
getTime
();
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
res
.
data
.
content
[
0
].
equipmentName
,
res
.
data
.
content
[
0
].
number
,
that
.
playSpeedNum
);
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
res
.
data
.
content
[
0
].
equipmentName
,
res
.
data
.
content
[
0
].
number
,
that
.
playSpeedNum
,
that
.
query
.
bTime
,
that
.
query
.
eTime
);
}
}
})
})
},
},
...
@@ -113,13 +94,14 @@ export default {
...
@@ -113,13 +94,14 @@ export default {
let
that
=
this
;
let
that
=
this
;
this
.
query
=
{
this
.
query
=
{
number
:
''
,
number
:
''
,
start
Time
:
''
,
b
Time
:
''
,
e
nd
Time
:
''
,
eTime
:
''
,
playSpeed
:
'
1
'
,
playSpeed
:
'
1
'
,
};
};
this
.
playSpeedNum
=
5
;
this
.
loadData
();
this
.
loadData
();
this
.
shuaxinTimer
=
new
Date
().
getTime
();
this
.
shuaxinTimer
=
new
Date
().
getTime
();
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
''
,
''
,
120
);
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
''
,
''
,
5
,
''
,
''
);
},
},
//获取数据
//获取数据
loadData
()
{
loadData
()
{
...
@@ -143,15 +125,15 @@ export default {
...
@@ -143,15 +125,15 @@ export default {
//改变倍速
//改变倍速
changeSpeed
(){
changeSpeed
(){
let
that
=
this
;
let
that
=
this
;
let
numSpeed1
=
120
/
parseIn
t
(
this
.
query
.
playSpeed
);
let
numSpeed1
=
5
/
parseFloa
t
(
this
.
query
.
playSpeed
);
this
.
playSpeedNum
=
parse
In
t
(
numSpeed1
);
this
.
playSpeedNum
=
parse
Floa
t
(
numSpeed1
);
if
(
this
.
query
.
number
==
''
){
if
(
this
.
query
.
number
==
''
){
return
;
return
;
}
else
{
}
else
{
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
this
.
query
.
number
}).
then
((
res
)
=>
{
HttpReq
.
truckDispatching
.
carInformationQuery
({
number
:
this
.
query
.
number
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
this
.
shuaxinTimer
=
new
Date
().
getTime
();
this
.
shuaxinTimer
=
new
Date
().
getTime
();
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
res
.
data
.
content
[
0
].
equipmentName
,
res
.
data
.
content
[
0
].
number
,
parse
Int
(
numSpeed1
)
);
that
.
$refs
.
mars3dViewerMapMethod
.
getCoordinate
(
res
.
data
.
content
[
0
].
equipmentName
,
res
.
data
.
content
[
0
].
number
,
parse
Float
(
numSpeed1
),
that
.
query
.
bTime
,
that
.
query
.
eTime
);
}
}
})
})
}
}
...
@@ -200,6 +182,7 @@ export default {
...
@@ -200,6 +182,7 @@ export default {
.device-manage
{
.device-manage
{
.mapcontainer2
{
.mapcontainer2
{
border
:
1px
blue
solid
;
width
:
80vw
;
width
:
80vw
;
height
:
65
.5vh
;
height
:
65
.5vh
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
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