Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
MeteorologicalBureau
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2c03f58c
authored
Mar 23, 2020
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
cfcb5fd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
map/index.html
+2
-1
map/js/api.js
+21
-0
No files found.
map/index.html
View file @
2c03f58c
...
...
@@ -47,6 +47,7 @@
<script
src=
"https://cache.amap.com/lbs/static/es5.min.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"
></script>
<script
src=
"./js/api.js"
></script>
<script
src=
"https://webapi.amap.com/maps?v=1.4.15&key=ee7327615de4d673c4e455a772da45fd&plugin=Map3D,AMap.DistrictSearch,ElasticMarker,AMap.MarkerClusterer"
></script>
<script
src=
"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"
></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script> -->
...
...
@@ -135,7 +136,7 @@
oldi1
=
i1
,
oldi2
=
i2
}
if
(
i1
==
1
&&
i2
==
2
)
{
//北斗
addPoiByApi
(
`http://123.56.149.208:8091/external/get/early/warn/
setE
ipment/two?code=
${
urlParams
.
adcode
}
&clientStyle=3`
,
'setEquipmentPoint'
,
'Single'
)
addPoiByApi
(
`http://123.56.149.208:8091/external/get/early/warn/
equ
ipment/two?code=
${
urlParams
.
adcode
}
&clientStyle=3`
,
'setEquipmentPoint'
,
'Single'
)
oldi1
=
i1
,
oldi2
=
i2
}
...
...
map/js/api.js
0 → 100644
View file @
2c03f58c
(
function
(
e
)
{
let
BASE_API
=
'http://123.56.149.208:8091'
// 获取设备信息
function
getCityDevice
(
code
,
clientStyle
=
0
)
{
return
$
.
get
(
'/external/get/early/warn/equipment/two'
,
{
code
,
clientStyle
})
}
// 获取联系人信息员
function
getWarnPeopleInfo
()
{
return
$
.
get
(
'/external/get/early/warn/people/two/info/'
+
code
)
}
// 获取联系人 应急责任人
function
getWarnPeoplePrincipal
()
{
return
$
.
get
(
'/external/get/early/warn/people/two/principal/'
+
code
)
}
e
.
$API
=
{
getCityDevice
,
getWarnPeopleInfo
,
getWarnPeoplePrincipal
}
})(
this
)
\ No newline at end of file
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