forked from xxhjsb/hbt-prevention-ui
feat:mapbox地图
parent
ff4b15866d
commit
fc6966597c
|
@ -61,7 +61,7 @@ export default class BlankComponent extends Vue {
|
|||
this.$store.commit("setUserList", results[2].data.datas.map((item) => {
|
||||
return {
|
||||
name: item.nickName,
|
||||
value: item.userId
|
||||
value:item.userId
|
||||
}
|
||||
}))
|
||||
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
|
||||
|
||||
<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>
|
||||
<MapComponent @onLoad="getMap"></MapComponent>
|
||||
width="980px" :before-close="handleClose">
|
||||
<MapComponent :id="'manager_map'" @onLoad="getMap"></MapComponent>
|
||||
<div class="full" style="margin-top: 20px; text-align: center;">
|
||||
<el-button @click="handleClose">取消</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 currentUrl = null;
|
||||
public center = [118.751353, 31.969568];
|
||||
public marker: any = null;
|
||||
public map: any = null;
|
||||
public marker: any;
|
||||
public map: any;
|
||||
public showMap = false;
|
||||
|
||||
//排序属性转换
|
||||
|
@ -1241,7 +1241,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
if (this.showMap) {
|
||||
this.showMap = false;
|
||||
this.marker.remove();
|
||||
this.marker = null;
|
||||
this.marker = undefined;
|
||||
return
|
||||
}
|
||||
this.photoList = [];
|
||||
|
|
|
@ -251,8 +251,10 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
}, {
|
||||
name: "责任部门",
|
||||
key: "chargeDeptId",
|
||||
type: "select",
|
||||
datas: this.$store.state.deptList
|
||||
type: "treeSelect",
|
||||
expandLevel: Infinity,
|
||||
width:"280px",
|
||||
datas: this.$store.state.deptTreeList
|
||||
}, {
|
||||
name: "是否重大危险源",
|
||||
key: "majorHazardFlag",
|
||||
|
|
Loading…
Reference in New Issue