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
af397888
Commit
af397888
authored
Dec 08, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
半小时获取网格数据
parent
a25dbc6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
api.js
src/server/api.js
+2
-2
main.vue
src/views/main.vue
+7
-0
No files found.
src/server/api.js
View file @
af397888
...
...
@@ -2,8 +2,8 @@ let BASE_URL = ''
let
DATA_URL
=
''
switch
(
process
.
env
.
NODE_ENV
)
{
case
'production'
:
BASE_URL
=
'http://10.89.4.164:18080/api'
//
BASE_URL = 'http://yangpu.hm.omniview.pro/api'
//
BASE_URL = 'http://10.89.4.164:18080/api'
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
DATA_URL
=
'http://10.89.1.208:10005'
break
default
:
...
...
src/views/main.vue
View file @
af397888
...
...
@@ -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