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
4f13f8cb
Commit
4f13f8cb
authored
Sep 07, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a168d6fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+2
-2
index.vue
src/views/MLargeScreen/index.vue
+6
-4
No files found.
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
4f13f8cb
...
...
@@ -346,7 +346,7 @@ export default {
This
.
reclog
((
isUserNotAllow
?
"
UserNotAllow,
"
:
""
)
+
"
打开失败:
"
+
msg
,
1
);
This
.
$notify
({
title
:
'
录音权限未打开,请手动开启!
'
,
type
:
'
success
'
,
type
:
'
warning
'
,
duration
:
5000
});
});
...
...
@@ -356,7 +356,7 @@ export default {
This
.
reclog
(
"
打开失败:权限请求被忽略,用户主动点击的弹窗
"
,
1
);
This
.
$notify
({
title
:
'
录音权限未打开,请手动开启!
'
,
type
:
'
success
'
,
type
:
'
warning
'
,
duration
:
5000
});
};
...
...
src/views/MLargeScreen/index.vue
View file @
4f13f8cb
...
...
@@ -139,7 +139,6 @@ export default {
this
.
setNowTimes
();
},
1000
)
this
.
zongTimer3
=
setInterval
(()
=>
{
console
.
log
(
'
equipmentName
'
,
this
.
equipmentName
);
if
(
this
.
equipmentName
){
this
.
getCarLoaction
();
}
...
...
@@ -259,13 +258,11 @@ export default {
//获取该车位置并上传到后端
getCarLoaction
(){
let
that
=
this
;
console
.
log
(
'
进入getCarLoaction()
'
);
if
(
navigator
.
geolocation
)
{
console
.
log
(
'
有navigator.geolocation
'
);
navigator
.
geolocation
.
getCurrentPosition
(
//locationSuccess 获取成功的话
function
(
position
)
{
console
.
log
(
position
.
coords
.
longitude
,
position
.
coords
.
latitude
);
//
console.log(position.coords.longitude,position.coords.latitude);
let
LoaObj1
=
{};
let
LoaObj1xy
=
{};
LoaObj1xy
.
x
=
position
.
coords
.
longitude
;
...
...
@@ -284,6 +281,11 @@ export default {
function
(
error
)
{
var
errorType
=
[
'
您拒绝共享位置信息
'
,
'
获取不到位置信息
'
,
'
获取位置信息超时
'
];
console
.
log
(
errorType
[
error
.
code
-
1
]);
that
.
$notify
({
title
:
errorType
[
error
.
code
-
1
]
+
'
!
'
,
type
:
'
warning
'
,
duration
:
5000
});
}
);
}
...
...
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