feat:mapbox地图

dev
kongyeqing 2023-10-12 17:52:31 +08:00
parent ff4b15866d
commit fc6966597c
4 changed files with 10 additions and 8 deletions

View File

@ -121,8 +121,8 @@
<el-dialog v-if="showMap" :close-on-click-modal="false" destroy-on-close title="地图定位" :visible.sync="showMap" <el-dialog v-if="showMap" :close-on-click-modal="false" destroy-on-close title="地图定位" :visible.sync="showMap"
width="980px" :before-close="handleClose" destroy-on-close> width="980px" :before-close="handleClose">
<MapComponent @onLoad="getMap"></MapComponent> <MapComponent :id="'manager_map'" @onLoad="getMap"></MapComponent>
<div class="full" style="margin-top: 20px; text-align: center;"> <div class="full" style="margin-top: 20px; text-align: center;">
<el-button @click="handleClose">取消</el-button> <el-button @click="handleClose">取消</el-button>
<el-button type="primary" @click="onDragEnd">确定</el-button> <el-button type="primary" @click="onDragEnd">确定</el-button>

View File

@ -105,8 +105,8 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
public showFile = false; public showFile = false;
public currentUrl = null; public currentUrl = null;
public center = [118.751353, 31.969568]; public center = [118.751353, 31.969568];
public marker: any = null; public marker: any;
public map: any = null; public map: any;
public showMap = false; public showMap = false;
// //
@ -1241,7 +1241,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
if (this.showMap) { if (this.showMap) {
this.showMap = false; this.showMap = false;
this.marker.remove(); this.marker.remove();
this.marker = null; this.marker = undefined;
return return
} }
this.photoList = []; this.photoList = [];

View File

@ -251,8 +251,10 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
}, { }, {
name: "责任部门", name: "责任部门",
key: "chargeDeptId", key: "chargeDeptId",
type: "select", type: "treeSelect",
datas: this.$store.state.deptList expandLevel: Infinity,
width:"280px",
datas: this.$store.state.deptTreeList
}, { }, {
name: "是否重大危险源", name: "是否重大危险源",
key: "majorHazardFlag", key: "majorHazardFlag",