修改人员位置弹窗相关

main
jinna 2 years ago
parent 8e3b148182
commit f973917b82
  1. 5
      src/views/alarmcenter/peopleposition/list.vue
  2. 3
      src/views/map/index.vue

@ -13,7 +13,7 @@
</avue-crud> </avue-crud>
<!-- 地图定位 --> <!-- 地图定位 -->
<el-dialog v-if="dialogVisible" :visible.sync="dialogVisible" modal="false" append-to-body fullscreen> <el-dialog v-if="dialogVisible" :visible.sync="dialogVisible" modal="false" append-to-body fullscreen>
<MapView :name="sn" :x="x" :y="y"></MapView> <MapView :sn="sn" :x="x" :y="y"></MapView>
</el-dialog> </el-dialog>
</basic-container> </basic-container>
</template> </template>
@ -94,7 +94,8 @@ export default {
}, },
data: [], data: [],
submitLoading: false, submitLoading: false,
buildingId: 202861, // buildingId: 202861,
buildingId: 206885,
// //
dialogVisible: false, dialogVisible: false,
sn: '', sn: '',

@ -53,6 +53,9 @@ export default {
}//x,y }//x,y
}); });
window.map.addControl(floorControl); window.map.addControl(floorControl);
console.log('sn ===>',this.sn)
console.log('floorNo ===>',this.floorNo)
console.log('x ====>',this.x,'y ====>',this.y)
if(this.sn && this.floorNo && this.x && this.y) { if(this.sn && this.floorNo && this.x && this.y) {
window.map._map.focusFloorId = this.floorNo; window.map._map.focusFloorId = this.floorNo;
coordinateToWGS84({ x:this.x, y:this.y, minX: 13439311, maxY:3667244.25 }).then(res => { coordinateToWGS84({ x:this.x, y:this.y, minX: 13439311, maxY:3667244.25 }).then(res => {

Loading…
Cancel
Save