@@ -38,9 +29,9 @@
:base-layer="baseLayer"
style="height: 300px"
vid="info-well-map"
- class="map-demo"
+ class="info-map"
>
-
+
@@ -101,7 +92,7 @@
center: [121.59996, 31.197646],
zoom: 16,
baseLayer: 'gaode_vec', // 底图图层
- markers: [],
+ marker: null,
imageList: [],
icon: require('@/assets/overview/pure-position-icon.png'), // 报警图标
quList: [],
@@ -134,35 +125,11 @@
// this.fetchArea1()
// 获取井数据
getWellInfo(wellId).then(response => {
- this.markers = []
this.listLoading = false
const row = response.data
- this.wellForm = {
- id: row.id, // 井id
- wellCode: row.wellCode, // 点位编号
- wellName: row.wellName, // 点位名称
- wellType: row.wellType, // 点位类型
- wellTypeName: row.wellTypeName, // 点位类型
- deptid: row.deptid, // 权属单位
- deptName: row.deptName, // 权属单位
- deep: row.deep, // 井深,
- bfztName: row.bfztName, // 布防状态
- position: row.position, // 位置描述
- road: row.road,
- photos: row.photos, // 照片路径
- notes: row.notes, // 备注,
- coordinateX: row.coordinateX,
- coordinateY: row.coordinateY,
- latBaidu: row.latBaidu,
- lngBaidu: row.lngBaidu,
- latGaode: row.latGaode,
- lngGaode: row.lngGaode,
- qu: row.qu,
- area: row.area, // 街道
- responsibleDept: row.responsibleDept // 维护人员部门
- }
+ this.wellForm = row
this.center = [row.lngGaode, row.latGaode]
- this.markers.push({ position: [row.lngGaode, row.latGaode] })
+ this.marker = { position: [row.lngGaode, row.latGaode] }
if (row.deptid && row.deptid !== '') {
this.fetchArea1()
this.fetchArea2()