Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
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 719103d4
authored
Apr 16, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.6.0版本需求
1 parent
4d2a0d6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
src/amap/mapService.js
src/views/work/edit.vue
src/amap/mapService.js
View file @
719103d
...
@@ -61,15 +61,30 @@ MapService.prototype = {
...
@@ -61,15 +61,30 @@ MapService.prototype = {
if
(
info
.
type
==
2
)
{
if
(
info
.
type
==
2
)
{
msg
=
'定位'
msg
=
'定位'
}
}
let
_html
=
`<h3 class="map-infowindow-title">
${
info
.
name
}
/
${
info
.
standNo
}
</h3>
<div class="map-infowindow-ct">
<p><i class="icon icon-info_device"></i> 设备号: <span class="des">
${
info
.
sn
}
(
${
info
.
source
==
1
?
'有线'
:
'无线'
}
)</span></p>`
// 是否包含断电、光感报警
if
(
info
.
alarmTypeSet
&&
info
.
alarmTypeSet
.
length
>
0
)
{
let
tg
=
''
;
let
cHmtl
=
''
let
typeList
=
{
1
:
'断电'
,
99
:
'光感'
}
info
.
alarmTypeSet
.
forEach
((
alarmType
)
=>
{
tg
+=
`<a class="btn_danger">
${
typeList
[
alarmType
]}
</a>`
});
cHmtl
=
'<p><i class="icon icon-info_device_alarm"></i><span>报警状态:</span>'
+
tg
+
'</p>'
;
_html
+=
cHmtl
}
return
`<h3 class="map-infowindow-title">
${
info
.
name
}
/
${
info
.
standNo
}
</h3>
_html
+=
`<p><i class="icon icon-info_time"></i>
${
msg
}
时间: <span class="des"data-time>
${
info
.
time
}
</span></p>
<div class="map-infowindow-ct">
<p style="display:
${
info
.
bsLng
?
'flex'
:
'none'
}
"><i class="icon icon-info_type"></i>定位类型: <a class="locate-btn active" id="locateTypeGps">GPS</a><a class="locate-btn" id="locateTypeBase">基站</a></p>
<p><i class="icon icon-info_device"></i> 设备号: <span class="des">
${
info
.
sn
}
(
${
info
.
source
==
1
?
'有线'
:
'无线'
}
)</span></p>
<p class="long_p"><i class="icon icon-info_location"></i><span>
${
msg
}
地址:</span><span class="des" data-transferAddress>
${
info
.
address
}
</span></p>
<p><i class="icon icon-info_device_alarm"></i><span>报警状态:</span><a class="btn_danger">光感</a><a class="btn_danger">断电</a> </p>
</div>`
;
<p><i class="icon icon-info_time"></i>
${
msg
}
时间: <span class="des"data-time>
${
info
.
time
}
</span></p>
return
_html
<p style="display:
${
info
.
bsLng
?
'flex'
:
'none'
}
"><i class="icon icon-info_type"></i>定位类型: <a class="locate-btn active" id="locateTypeGps">GPS</a><a class="locate-btn" id="locateTypeBase">基站</a></p>
<p class="long_p"><i class="icon icon-info_location"></i><span>
${
msg
}
地址:</span><span class="des" data-transferAddress>
${
info
.
address
}
</span></p>
</div>`
},
},
// 位置点弹框
// 位置点弹框
...
@@ -140,7 +155,7 @@ MapService.prototype = {
...
@@ -140,7 +155,7 @@ MapService.prototype = {
},
},
// 打开激活位置点弹框
// 打开激活位置点弹框
openActiveInfoWindow
(
map
,
makers
,
infoWindow
)
{
openActiveInfoWindow
(
map
,
makers
,
infoWindow
)
{
const
MAP
=
map
const
MAP
=
map
const
lnglat
=
makers
.
getPosition
()
const
lnglat
=
makers
.
getPosition
()
infoWindow
.
open
(
MAP
,
lnglat
)
infoWindow
.
open
(
MAP
,
lnglat
)
...
...
src/views/work/edit.vue
View file @
719103d
...
@@ -812,6 +812,8 @@ export default {
...
@@ -812,6 +812,8 @@ export default {
// 定位类型
// 定位类型
oParams
.
type
=
2
;
oParams
.
type
=
2
;
oParams
.
alarmTypeSet
=
row
.
alarmTypeSet
||
[];
return
oParams
;
return
oParams
;
},
},
...
...
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