|
|
@ -43,6 +43,7 @@ |
|
|
<div class="item-show" |
|
|
<div class="item-show" |
|
|
v-else> |
|
|
v-else> |
|
|
{{ fmData[item.keyName] || "--" }} |
|
|
{{ fmData[item.keyName] || "--" }} |
|
|
|
|
|
<span v-if="item.attach">{{item.attach}}</span> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -205,7 +206,11 @@ |
|
|
<template v-else-if="item.type == 'address'"> |
|
|
<template v-else-if="item.type == 'address'"> |
|
|
|
|
|
|
|
|
<div class="address-item"> |
|
|
<div class="address-item"> |
|
|
|
|
|
<<<<<<< HEAD |
|
|
<!-- <el-input class="address-item-input" |
|
|
<!-- <el-input class="address-item-input" |
|
|
|
|
|
======= |
|
|
|
|
|
<el-input class="address-item-input" |
|
|
|
|
|
>>>>>>> dev-九小场所1026 |
|
|
:placeholder="item.placeholder || '请输入所在地址'" |
|
|
:placeholder="item.placeholder || '请输入所在地址'" |
|
|
v-model="fmData[item.keyName]" |
|
|
v-model="fmData[item.keyName]" |
|
|
:maxlength="item.maxlength || ''" |
|
|
:maxlength="item.maxlength || ''" |
|
|
@ -216,6 +221,7 @@ |
|
|
type="default" |
|
|
type="default" |
|
|
size="small" |
|
|
size="small" |
|
|
ref="mapSearch" |
|
|
ref="mapSearch" |
|
|
|
|
|
<<<<<<< HEAD |
|
|
@click="handleSearchMap(item)">查询</el-button> --> |
|
|
@click="handleSearchMap(item)">查询</el-button> --> |
|
|
<el-select v-model="searchValue" |
|
|
<el-select v-model="searchValue" |
|
|
filterable |
|
|
filterable |
|
|
@ -233,6 +239,10 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<div id="app_base" |
|
|
<div id="app_base" |
|
|
|
|
|
======= |
|
|
|
|
|
@click="handleSearchMap(item)">查询</el-button> |
|
|
|
|
|
<div id="app" |
|
|
|
|
|
>>>>>>> dev-九小场所1026 |
|
|
class="div_map"></div> |
|
|
class="div_map"></div> |
|
|
<div style="margin-top: 10px" |
|
|
<div style="margin-top: 10px" |
|
|
v-show="false"> |
|
|
v-show="false"> |
|
|
@ -639,6 +649,7 @@ export default { |
|
|
map.setMarker(latitude, longitude); |
|
|
map.setMarker(latitude, longitude); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async handleSearchMap (item) { |
|
|
async handleSearchMap (item) { |
|
|
@ -656,6 +667,56 @@ export default { |
|
|
|
|
|
|
|
|
async handleMoveCenter (item, e) { |
|
|
async handleMoveCenter (item, e) { |
|
|
console.log("handleMoveCenter", e); |
|
|
console.log("handleMoveCenter", e); |
|
|
|
|
|
======= |
|
|
|
|
|
setMarker (lat, lng) { |
|
|
|
|
|
markers.setGeometries([]); |
|
|
|
|
|
markers.add([ |
|
|
|
|
|
{ |
|
|
|
|
|
id: "4", |
|
|
|
|
|
styleId: "marker", |
|
|
|
|
|
position: new TMap.LatLng(lat, lng), |
|
|
|
|
|
properties: { |
|
|
|
|
|
title: "marker4", |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
]); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleSearchMap (item) { |
|
|
|
|
|
infoWindowList.forEach((infoWindow) => { |
|
|
|
|
|
infoWindow.close(); |
|
|
|
|
|
}); |
|
|
|
|
|
infoWindowList.length = 0; |
|
|
|
|
|
markers.setGeometries([]); |
|
|
|
|
|
// 在地图显示范围内以给定的关键字搜索地点 |
|
|
|
|
|
search |
|
|
|
|
|
.searchNearby({ |
|
|
|
|
|
keyword: this.fmData[item.keyName], |
|
|
|
|
|
radius: 1000, |
|
|
|
|
|
autoExtend: true, |
|
|
|
|
|
center: map.getCenter(), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((result) => { |
|
|
|
|
|
let { data } = result; |
|
|
|
|
|
if (Array.isArray(data) && data.length > 0) { |
|
|
|
|
|
const { |
|
|
|
|
|
location: { lat, lng }, |
|
|
|
|
|
} = data[0]; |
|
|
|
|
|
map.setCenter(new TMap.LatLng(lat, lng)); |
|
|
|
|
|
this.setMarker(lat, lng); |
|
|
|
|
|
// item.supValues[0] = lng; |
|
|
|
|
|
// item.supValues[1] = lat; |
|
|
|
|
|
this.fmData[item.supKeys[0]] = lng; |
|
|
|
|
|
this.fmData[item.supKeys[1]] = lat; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error("未检索到相关位置坐标"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleMoveCenter (item, e) { |
|
|
|
|
|
console.log(e); |
|
|
|
|
|
>>>>>>> dev-九小场所1026 |
|
|
//修改地图中心点 |
|
|
//修改地图中心点 |
|
|
const { lat, lng } = map.getCenter(); |
|
|
const { lat, lng } = map.getCenter(); |
|
|
|
|
|
|
|
|
@ -671,6 +732,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
<<<<<<< HEAD |
|
|
async remoteMethod (query) { |
|
|
async remoteMethod (query) { |
|
|
|
|
|
|
|
|
if (query !== '') { |
|
|
if (query !== '') { |
|
|
@ -719,6 +781,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
======= |
|
|
|
|
|
>>>>>>> dev-九小场所1026 |
|
|
async getInfo () { |
|
|
async getInfo () { |
|
|
let url = this.infoUrl; |
|
|
let url = this.infoUrl; |
|
|
if (!url) return; |
|
|
if (!url) return; |
|
|
|