字典添加名称筛选
This commit is contained in:
@@ -17,6 +17,12 @@
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<a-form-item label="测点名称:">
|
||||
<a-input v-model:value="where.placeName" placeholder="请输入测点名称" allow-clear/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<a-space>
|
||||
@@ -93,7 +99,8 @@
|
||||
</a-form-item>
|
||||
<a-form-item label="修正位置" name="correctLocation">
|
||||
<a-input-search @search="showRoadMap(form)"
|
||||
:value="`[${form.correctLng},${form.correctLat}]`" placeholder="`[${form.placeLng},${form.placeLat}]`" allow-clear>
|
||||
:value="`[${form.correctLng},${form.correctLat}]`"
|
||||
placeholder="`[${form.placeLng},${form.placeLat}]`" allow-clear>
|
||||
<template #enterButton>
|
||||
<a-button>选择位置</a-button>
|
||||
</template>
|
||||
@@ -285,7 +292,7 @@ export default {
|
||||
});
|
||||
},
|
||||
showRoadMap(form) {
|
||||
const {placeLng,placeLat,correctLng,correctLat} = form
|
||||
const {placeLng, placeLat, correctLng, correctLat} = form
|
||||
this.visibleRoadMap = true
|
||||
this.roadMapTitle = "选择修正后的道路坐标"
|
||||
this.$nextTick(() => {
|
||||
@@ -296,7 +303,7 @@ export default {
|
||||
map.addControl(new BBMap.NavigationControl()); //初始化地图控件
|
||||
map.addControl(new BBMap.ScaleControl());
|
||||
map.addControl(new BBMap.OverviewMapControl());
|
||||
var point = new BBMap.Point(correctLng?correctLng:placeLng?placeLng:108.33,correctLat?correctLat:placeLat?placeLat:22.84);
|
||||
var point = new BBMap.Point(correctLng ? correctLng : placeLng ? placeLng : 108.33, correctLat ? correctLat : placeLat ? placeLat : 22.84);
|
||||
// var point = new BBMap.Point(form.placeLng ? form.placeLng : 108.33, form.placeLat ? form.placeLat : 22.84);
|
||||
map.centerAndZoom(point, 13);//初始化地图中心点
|
||||
var marker = new BBMap.Marker(point); //初始化地图标记
|
||||
|
||||
Reference in New Issue
Block a user