Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f2519909
authored
May 12, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉mock
1 parent
ca49ee07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
src/pages/monitor/historyLocation.vue
src/pages/monitor/resident.vue
src/pages/monitor/historyLocation.vue
View file @
f251990
...
...
@@ -239,26 +239,6 @@
this
.
params
=
params
this
.
getSortParams
()
EventBus
.
$emit
(
'uiMap.historyLocation.destroy'
);
let
res
=
mock
.
getResidentByRealTime
if
(
res
.
returnCode
==
0
)
{
const
data
=
res
.
data
if
(
data
.
length
)
{
data
.
forEach
((
item
,
idx
)
=>
{
item
.
idx
=
idx
})
this
.
resultList
=
data
EventBus
.
$emit
(
'uiMap.historyLocation.draw'
,
data
)
this
.
resultBoxHidden
=
false
}
else
{
this
.
$message
({
type
:
'info'
,
message
:
'暂无数据'
})
}
this
.
isSearching
=
false
}
GET_HISTORY_LOCATION
({...
this
.
params
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
const
data
=
res
.
data
;
...
...
src/pages/monitor/resident.vue
View file @
f251990
...
...
@@ -152,26 +152,6 @@
// times: this.form.timerange,
}
this
.
params
=
params
let
res
=
mock
.
getResidentByRealTime
if
(
res
.
returnCode
==
0
){
const
data
=
res
.
data
;
if
(
data
.
length
){
data
.
forEach
((
item
,
idx
)
=>
{
item
.
idx
=
idx
;
});
this
.
resultList
=
data
;
EventBus
.
$emit
(
'uiMap.resident.draw'
,
data
);
this
.
resultBoxHidden
=
false
;
}
else
{
this
.
$message
({
type
:
'info'
,
message
:
'暂无数据'
});
EventBus
.
$emit
(
'uiMap.resident.destroy'
,
data
);
}
this
.
isSearching
=
false
;
}
GET_RESIDENT_LOCATION
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
const
data
=
res
.
data
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment