forked from xxhjsb/hbt-prevention-ui
feat:mapbox地图
parent
ff4b15866d
commit
fc6966597c
|
@ -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>
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue