Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yangpu
Project
Project
Details
Activity
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
郭铭瑶
yangpu
Commits
08e1d5e5
Commit
08e1d5e5
authored
Dec 08, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
半小时获取网格数据
parent
67e42f72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.vue
src/views/main.vue
+7
-0
No files found.
src/views/main.vue
View file @
08e1d5e5
...
...
@@ -61,6 +61,7 @@ export default {
data
()
{
return
{
timer
:
null
,
timer2
:
null
,
complete
:
false
,
fullView
:
false
,
videoModal
:
false
,
...
...
@@ -160,7 +161,9 @@ export default {
},
beforeDestroy
()
{
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer2
)
this
.
timer
=
null
this
.
timer2
=
null
},
methods
:
{
...
mapActions
([
...
...
@@ -173,6 +176,7 @@ export default {
'getDoneList'
,
'getCheckSum'
,
'getPatrolList'
,
'getGridSum'
,
]),
mapComplete
()
{
this
.
init
()
...
...
@@ -188,6 +192,9 @@ export default {
this
.
getHandleList
()
this
.
getDoneList
()
},
1000
*
60
*
1
)
this
.
timer2
=
setInterval
(()
=>
{
this
.
getGridSum
()
},
1000
*
60
*
30
)
},
init
()
{
const
{
name
,
id
}
=
this
.
currentStreetInfo
...
...
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