Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
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
SQL_Mou
NewTruckTerminalSyetem
Commits
b384a68c
Commit
b384a68c
authored
Nov 21, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
907e6c72
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
5 deletions
+63
-5
xiechedian1.png
src/assets/images/truckTuPian/xiechedian1.png
+0
-0
zhuangchedian1.png
src/assets/images/truckTuPian/zhuangchedian1.png
+0
-0
Map.vue
src/components/mars3d/Map.vue
+21
-2
index.vue
src/views/MLargeScreen/index.vue
+41
-2
vue.config.js
vue.config.js
+1
-1
No files found.
src/assets/images/truckTuPian/xiechedian1.png
0 → 100644
View file @
b384a68c
7.6 KB
src/assets/images/truckTuPian/zhuangchedian1.png
0 → 100644
View file @
b384a68c
2.91 KB
src/components/mars3d/Map.vue
View file @
b384a68c
...
...
@@ -23,8 +23,13 @@ Vue.prototype.mars3d = mars3d
Vue
.
prototype
.
Cesium
=
mars3d
.
Cesium
var
map
;
//画导航线
var
graphicLayerZ
;
var
graphicZ
;
//路障展示
var
graphicLayerR
;
var
graphicR
;
export
default
{
name
:
'
mars3dViewer
'
,
...
...
@@ -44,6 +49,8 @@ export default {
realjd
:
140.71212
,
realwd
:
52.158
,
carnumber
:
''
,
//装车点卸车点数据
mapControlPointData
:[],
}
},
...
...
@@ -106,7 +113,15 @@ export default {
})
})
this
.
allCarInforData
=
arr11
;
this
.
getCoordinate
();
//获取所有关键控制点信息
httpGet
(
apiCpointQuery
,{
size
:
9999
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
mapControlPointData
=
res
.
data
.
content
;
this
.
getCoordinate
();
}
})
}
});
}
...
...
@@ -271,7 +286,7 @@ export default {
},
2500
)
},
//
装车箭头线 graphicLayer.removeGraphic(graphic);
//装车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic3
(
boo
,
points
)
{
graphicLayerZ
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayerZ
);
...
...
@@ -291,6 +306,10 @@ export default {
}
else
{
graphicLayerZ
.
removeGraphic
(
graphicZ
);
}
},
//路障展示
roadblockShowFn
(
arr
){
},
// 在图层绑定Popup弹窗
bindLayerPopup
(
graphicLayer
,
number
)
{
...
...
src/views/MLargeScreen/index.vue
View file @
b384a68c
...
...
@@ -169,6 +169,8 @@ export default {
indexSituationPic1
:
indexSituationPic1
,
//语音组件显示
audioTishiViewShow
:
false
,
//路障申报数量
roadblockNum
:
0
,
}
},
mounted
(){
...
...
@@ -219,6 +221,10 @@ export default {
}
}
});
//获取路障信息failureDeclarationAdd
httpGet
(
failureDeclarationAdd
,{
fault
:
'
路障申报
'
,
createTime
:
this
.
currentTime
()}).
then
((
res
)
=>
{
console
.
log
(
res
);
})
},
8000
)
...
...
@@ -235,7 +241,7 @@ export default {
this
.
carnumber
=
res
.
data
.
content
[
0
].
car
;
this
.
personalName
=
res
.
data
.
content
[
0
].
name
;
//展示二维地图
this
.
$refs
.
mars3dViewerMapMethod
.
getCarInforFn
(
this
.
carnumber
);
//
this.$refs.mars3dViewerMapMethod.getCarInforFn(this.carnumber);
//开启接受订单
this
.
$refs
.
startOrderReceivingMethod
.
loadData
(
this
.
carnumber
);
//开启语音接收
...
...
@@ -664,7 +670,40 @@ export default {
//删除语音
indexListeningDelFn
(
index
){
this
.
$refs
.
voiceApplicationMethod
.
selectDeleteSituation
(
index
);
}
},
//获取当前时间
currentTime
(){
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
//年 ,从 Date 对象以四位数字返回年份
var
month
=
date
.
getMonth
()
+
1
;
//月 ,从 Date 对象返回月份 (0 ~ 11) ,date.getMonth()比实际月份少 1 个月
var
day
=
date
.
getDate
();
//日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var
hours
=
date
.
getHours
();
//小时 ,返回 Date 对象的小时 (0 ~ 23)
var
minutes
=
date
.
getMinutes
();
//分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var
seconds
=
date
.
getSeconds
();
//秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"
0
"
+
month
;
}
//修改日期格式
if
(
day
>=
0
&&
day
<=
9
)
{
day
=
"
0
"
+
day
;
}
//修改小时格式
if
(
hours
>=
0
&&
hours
<=
9
)
{
hours
=
"
0
"
+
hours
;
}
//修改分钟格式
if
(
minutes
>=
0
&&
minutes
<=
9
)
{
minutes
=
"
0
"
+
minutes
;
}
//修改秒格式
if
(
seconds
>=
0
&&
seconds
<=
9
)
{
seconds
=
"
0
"
+
seconds
;
}
//获取当前系统时间 格式(yyyy-mm-dd hh:mm:ss)
let
currentFormatDate
=
year
+
"
-
"
+
month
+
"
-
"
+
day
;
return
currentFormatDate
;
},
},
beforeDestroy
(){
this
.
$refs
.
voiceApplicationMethod
.
xintiaoCloseFn
();
...
...
vue.config.js
View file @
b384a68c
...
...
@@ -49,7 +49,7 @@ module.exports = {
// },
},
https
:
true
,
//
https: true,
},
configureWebpack
:
{
plugins
:
[
...
...
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