Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lbs-gpsbd-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
yangkaiyi
lbs-gpsbd-web
Commits
7ad178a5
Commit
7ad178a5
authored
Apr 30, 2021
by
yangkaiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动定位到围栏区
parent
503396f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Geofence.vue
src/views/map/components/tools/Geofence.vue
+5
-1
actions.js
src/vuex/actions.js
+3
-0
No files found.
src/views/map/components/tools/Geofence.vue
View file @
7ad178a5
<
template
>
<!-- 围栏悬浮层 -->
<section
class=
"lbs-bg-transparent lbs-bg-transparent2"
>
<el-card
class=
"box-card lbs-bg-transparent"
...
...
@@ -114,6 +115,7 @@
"
></el-button
></el-tooltip>
<!-- 删除围栏 -->
<el-tooltip
class=
"item"
effect=
"dark"
...
...
@@ -353,7 +355,9 @@ export default {
},
},
},
mounted
()
{},
mounted
()
{
this
.
$store
.
dispatch
(
"getGeofences"
);
},
components
:
{
Binds
:
Binds
,
DistrictGeo
:
DistrictGeo
,
...
...
src/vuex/actions.js
View file @
7ad178a5
...
...
@@ -332,6 +332,9 @@ export default {
getGeofences
({
commit
})
{
getGeofences
().
then
((
res
)
=>
{
commit
(
types
.
USER_GET_GEOFENCES
,
res
);
if
(
res
.
length
)
{
commit
(
types
.
USER_SET_SELECT_GEOFENCE
,
res
[
1
]);
}
});
},
hideGeofences
({
commit
})
{
...
...
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