Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
K
knowledgeServiceAdmin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
quanlili
knowledgeServiceAdmin
Commits
ba12d482
提交
ba12d482
authored
10月 30, 2019
作者:
quanlili
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'qll' into dev
上级
3b52c70d
6cd30f51
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
18 行增加
和
15 行删除
+18
-15
detail.vue
src/views/draw/metadata/detail.vue
+18
-15
没有找到文件。
src/views/draw/metadata/detail.vue
浏览文件 @
ba12d482
...
...
@@ -592,30 +592,18 @@ export default {
this
.
entityForm
.
resourceId
=
this
.
$route
.
query
.
id
;
this
.
getDetail
();
this
.
getPerson
();
//this.handleMap();
},
methods
:
{
//window.open(`${this.domain}${requestPath.file}?fileName=${val}&isOnLine=true`)
handleMap
({
BMap
,
map
}){
//var myGeo = new BMap.Geocoder();
// 将地址解析结果显示在地图上,并调整地图视野
//myGeo.getPoint("昆明市", function(point){
//console.log(point,'ppppppp')
//if (point) {
// map.centerAndZoom(point, 16);
// map.addOverlay(new BMap.Marker(point));
//}
//});
//console.log(BMap, map)
let
_this
=
this
;
let
myMap
=
map
;
// var map = new BMap.Map('myMap');
map
.
addEventListener
(
"click"
,
function
(
e
){
map
.
addEventListener
(
"click"
,
function
(
e
){
//添加地图点击事件
let
target
=
e
;
_this
.
remove
(
target
)
//this.positionForm.longitude=target.point.lng;
//this.positionForm.latitude=target.point.lat;
console
.
log
(
e
,
"测试一下"
)
});
},
getDetail
(){
...
...
@@ -792,8 +780,23 @@ export default {
}
else
if
(
this
.
backForm
.
state
==
3
){
if
(
res
.
data
.
data
){
this
.
positionForm
=
res
.
data
.
data
;
if
(
!
this
.
positionForm
.
longitude
){
this
.
city
=
"北京"
;
//地图的显示中心
if
(
!
this
.
positionForm
.
longitude
){
//没有爬到数据时;
let
_this
=
this
;
var
myGeo
=
new
BMap
.
Geocoder
();
//根据keyword将地址解析结果显示在地图上,并调整地图视野
myGeo
.
getPoint
(
this
.
backForm
.
keyword
,
function
(
point
){
if
(
point
)
{
_this
.
positionForm
.
longitude
=
point
.
lng
;
_this
.
positionForm
.
latitude
=
point
.
lat
;
// 根据坐标得到地址描述
myGeo
.
getLocation
(
new
BMap
.
Point
(
point
.
lng
,
point
.
lat
),
function
(
result
){
if
(
result
){
_this
.
positionForm
.
detailedaddress
=
result
.
address
;
}
});
_this
.
city
=
_this
.
backForm
.
keyword
;
//地图的显示中心
}
});
}
}
else
{
this
.
city
=
"北京"
;
//地图的显示中心
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论