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
57b5c5f8
Commit
57b5c5f8
authored
Nov 15, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用打印信息以及无用方法
parent
9a74bf10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
68 deletions
+2
-68
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+1
-1
index.vue
src/views/MLargeScreen/index.vue
+1
-67
No files found.
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
57b5c5f8
...
...
@@ -280,7 +280,7 @@ export default {
},
//WebSocket数据接收
websocketonmessage
(
e
){
console
.
log
(
'
websocketonmessage
'
,
e
);
//
console.log('websocketonmessage',e);
let
that
=
this
;
if
(
e
==
undefined
){
// let str1 = localStorage.getItem(this.userName1 + 'voiceData');
...
...
src/views/MLargeScreen/index.vue
View file @
57b5c5f8
...
...
@@ -137,7 +137,6 @@ export default {
personalName
:
''
,
zongTimer1
:
null
,
zongTimer2
:
null
,
zongTimer3
:
null
,
currentTime
:
''
,
selectFunction
:
0
,
carnumber
:
''
,
...
...
@@ -179,11 +178,6 @@ export default {
this
.
zongTimer1
=
setInterval
(()
=>
{
this
.
setNowTimes
();
},
1000
)
// this.zongTimer3 = setInterval(() => {
// if(this.equipmentName){
// this.getCarLoaction();
// }
// }, 2000)
this
.
zongTimer2
=
setInterval
(()
=>
{
if
(
this
.
carnumber
==
''
){
return
...
...
@@ -305,61 +299,6 @@ export default {
that
.
batteryEnegy
=
parseInt
(
battery
.
level
*
100
);
});
},
//获取该车位置并上传到后端
getCarLoaction
(){
let
that
=
this
;
if
(
navigator
.
geolocation
)
{
navigator
.
geolocation
.
getCurrentPosition
(
//locationSuccess 获取成功的话
function
(
position
)
{
let
LoaObj1
=
{};
let
LoaObj1xy
=
{};
//判断该车是否在行驶状态
let
drivingDistance
=
that
.
getDistanceIndex
(
that
.
navigatorXY
.
y
,
that
.
navigatorXY
.
x
,
position
.
coords
.
latitude
,
position
.
coords
.
longitude
);
//console.log(drivingDistance);
if
(
drivingDistance
<=
1
){
that
.
leftBtnDisable
=
true
;
}
else
{
that
.
leftBtnDisable
=
false
;
}
if
(
drivingDistance
>
1000
&&
drivingDistance
<
10000
){
LoaObj1xy
.
x
=
that
.
navigatorXY
.
x
;
LoaObj1xy
.
y
=
that
.
navigatorXY
.
y
;
LoaObj1
.
gndRate
=
''
;
LoaObj1
.
location
=
LoaObj1xy
;
LoaObj1
.
name
=
that
.
equipmentName
;
LoaObj1
.
time
=
new
Date
().
getTime
();
let
zuizhong1
=
{};
zuizhong1
.
name
=
that
.
equipmentName
;
zuizhong1
.
jsonObject
=
JSON
.
stringify
(
LoaObj1
);
httpPostForJson
(
gpsPhoneGpsQuery
,
zuizhong1
).
then
((
res1
)
=>
{})
httpPostForJson
(
carRealTimeLocationQuery2
,
JSON
.
stringify
(
LoaObj1
)).
then
((
res2
)
=>
{})
}
else
{
LoaObj1xy
.
x
=
position
.
coords
.
longitude
;
LoaObj1xy
.
y
=
position
.
coords
.
latitude
;
that
.
navigatorXY
.
x
=
position
.
coords
.
longitude
;
that
.
navigatorXY
.
y
=
position
.
coords
.
latitude
;
LoaObj1
.
gndRate
=
''
;
LoaObj1
.
location
=
LoaObj1xy
;
LoaObj1
.
name
=
that
.
equipmentName
;
LoaObj1
.
time
=
new
Date
().
getTime
();
let
zuizhong1
=
{};
zuizhong1
.
name
=
that
.
equipmentName
;
zuizhong1
.
jsonObject
=
JSON
.
stringify
(
LoaObj1
);
httpPostForJson
(
gpsPhoneGpsQuery
,
zuizhong1
).
then
((
res1
)
=>
{})
httpPostForJson
(
carRealTimeLocationQuery2
,
JSON
.
stringify
(
LoaObj1
)).
then
((
res2
)
=>
{})
}
},
//locationError 获取失败的话
function
(
error
)
{
var
errorType
=
[
'
您拒绝共享位置信息
'
,
'
获取不到位置信息
'
,
'
获取位置信息超时
'
];
console
.
log
(
errorType
[
error
.
code
-
1
]);
},{
enableHighAccuracy
:
true
,
}
);
}
},
//获取该车位置并上传到后端
getCarLoaction1
(){
let
that
=
this
;
...
...
@@ -371,8 +310,7 @@ export default {
let
LoaObj1xy
=
{};
//判断该车是否在行驶状态
let
drivingDistance
=
that
.
getDistanceIndex
(
that
.
navigatorXY
.
y
,
that
.
navigatorXY
.
x
,
position
.
coords
.
latitude
,
position
.
coords
.
longitude
);
console
.
log
(
drivingDistance
);
if
(
drivingDistance
<=
50
||
drivingDistance
>=
10000
){
if
(
drivingDistance
<=
30
||
drivingDistance
>=
10000
){
that
.
leftBtnDisable
=
true
;
}
else
{
that
.
leftBtnDisable
=
false
;
...
...
@@ -736,10 +674,6 @@ export default {
clearInterval
(
this
.
zongTimer2
);
this
.
zongTimer2
=
null
;
}
if
(
this
.
zongTimer3
)
{
clearInterval
(
this
.
zongTimer3
);
this
.
zongTimer3
=
null
;
}
}
}
</
script
>
...
...
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