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 c361d311
authored
Jan 16, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
326abd11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
src/utils/mapBService.js
src/utils/monitor.js
src/utils/mapBService.js
View file @
c361d31
...
...
@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-12-06 14:10:32
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-01-
06 10:06:40
* @LastEditTime: 2025-01-
16 11:18:23
* @FilePath: \oEshield\src\utils\mapBService.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -373,7 +373,7 @@ MapService.prototype = {
// 基站
baseBtn
&&
(
baseBtn
.
onclick
=
function
(
e
)
{
console
.
log
(
'基站'
)
if
(
info
.
eLocateType
===
'bsLocation'
)
return
;
info
.
eLocateType
=
'bsLocation'
eLocation
=
info
[
info
.
eLocateType
];
...
...
@@ -426,14 +426,14 @@ MapService.prototype = {
// wifi数据
wifiBtn
&&
(
wifiBtn
.
onclick
=
function
(
e
)
{
if
(
info
.
wifiLocation
&&
info
.
wifiLocation
.
elng
)
{
console
.
log
(
info
)
//
console.log(info)
if
(
info
.
eLocateType
===
'wifiLocation'
)
return
;
info
.
eLocateType
=
'wifiLocation'
gpsBtn
&&
gpsBtn
.
classList
.
remove
(
'el-button--primary'
);
wifiBtn
&&
wifiBtn
.
classList
.
add
(
'el-button--primary'
);
baseBtn
&&
baseBtn
.
classList
.
remove
(
'el-button--primary'
);
infoDiv
.
querySelector
(
'[data-transferAddress]'
).
textContent
=
info
.
wifiLocation
.
a
ddress
;
infoDiv
.
querySelector
(
'[data-transferAddress'
).
setAttribute
(
'aria-label'
,
info
.
wifiLocation
.
a
ddress
);
infoDiv
.
querySelector
(
'[data-transferAddress]'
).
textContent
=
info
.
wifiLocation
.
transferA
ddress
;
infoDiv
.
querySelector
(
'[data-transferAddress'
).
setAttribute
(
'aria-label'
,
info
.
wifiLocation
.
transferA
ddress
);
infoDiv
.
querySelector
(
'[data-time]'
).
textContent
=
info
.
wifiLocation
.
dateTime
;
infoDiv
.
querySelector
(
'[data-time'
).
setAttribute
(
'aria-label'
,
info
.
wifiLocation
.
dateTime
);
EventBus
.
$emit
(
'uiMap.monitor.changeELocate'
,
info
)
...
...
src/utils/monitor.js
View file @
c361d31
...
...
@@ -161,6 +161,7 @@ const monitor = {
EventBus
.
$on
(
"uiMap.monitor.drawMaker"
,
this
.
drawMaker
);
},
draw
(
data
,
autoOpenLastInfoWindow
)
{
console
.
log
(
data
)
this
.
data
=
data
;
const
transferObj
=
[]
data
.
forEach
((
item
)
=>
{
...
...
@@ -170,11 +171,13 @@ const monitor = {
if
(
item
.
bsLocation
&&
item
.
bsLocation
.
blat
&&
item
.
bsLocation
.
blng
)
{
transferObj
.
push
(
item
.
bsLocation
)
}
if
(
item
.
wifiLocation
&&
item
.
wifiLocation
.
blat
&&
item
.
bsLocation
.
blng
)
{
transferObj
.
push
(
item
.
wifiLocation
)
}
})
MAPGEO
.
transferAddressByGroup
({
data
:
transferObj
},
()
=>
{
this
.
data
.
forEach
((
item
,
idx
)
=>
{
console
.
log
(
item
)
let
eLocation
=
item
[
item
.
eLocateType
];
if
(
!
eLocation
.
blng
&&
!
eLocation
.
blat
)
return
;
let
isInfoOpen
=
false
;
...
...
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