|
|
|
@ -11,7 +11,13 @@
|
|
|
|
|
</template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-descriptions :border="false" :column="1" size="mini">
|
|
|
|
|
<el-descriptions-item label="事件编号">{{ markerInfo.rand_number }}</el-descriptions-item>
|
|
|
|
|
<!-- <el-descriptions-item label="事件编号">{{ markerInfo.rand_number }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件标题">{{ markerInfo.name }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件类型">{{ markerInfo.type }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件地址">{{ markerInfo.address }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="发生时间">{{ markerInfo.open_time }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属网格">{{ markerInfo.mesh_occurs }}</el-descriptions-item> -->
|
|
|
|
|
<el-descriptions-item label="事件编号">{{ markerInfo.id }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件标题">{{ markerInfo.name }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件类型">{{ markerInfo.type }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="事件地址">{{ markerInfo.address }}</el-descriptions-item>
|
|
|
|
@ -33,7 +39,8 @@ import L from "leaflet"
|
|
|
|
|
import "@/utils/lib/leaflet.ChineseTmsProviders.js";
|
|
|
|
|
// 重点路段 重点区域 网格 图标获取 手机号和人员名称查询 部门查询 部门id查询 imei查询用户信息
|
|
|
|
|
import { listZdld, listZdqy, levelQywg, getFenceList } from "@/api/basicsSet";
|
|
|
|
|
import { robotLogin, ViewListPage } from "@/api/root";
|
|
|
|
|
import { robotLogin, ViewListPage, listpatrol } from "@/api/root";
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
export default {
|
|
|
|
|
name: 'HelloWorld',
|
|
|
|
|
data(){
|
|
|
|
@ -144,14 +151,16 @@ export default {
|
|
|
|
|
// 渲染事件点位
|
|
|
|
|
eventPoint(){
|
|
|
|
|
let iconUrl1 = require("@/assets/images/icon2.png");
|
|
|
|
|
let data = {'queryValue' : [], "myInstanceClassify" : "all", "parameterValue":[], fks: []}
|
|
|
|
|
// ViewListPage({viewCode:'event-all-list', pageNo: 1, pageSize:500}, data).then(res=>{
|
|
|
|
|
ViewListPage({ pageNo: 1, pageSize:500, token: localStorage.getItem('robotToken')}).then(res=>{
|
|
|
|
|
// let data = {'queryValue' : [], 'myInstanceClassify' : 'all', 'parameterValue':[], 'fks': []}
|
|
|
|
|
// ViewListPage({viewCode:'event-all-list', pageNo: 1, pageSize:500},data).then(res=>{
|
|
|
|
|
listpatrol({current:1,size:1000}).then(res=>{
|
|
|
|
|
// ViewListPage({ pageNo: 1, pageSize:500, token: localStorage.getItem('robotToken')}).then(res=>{
|
|
|
|
|
// console.log(res,"res");
|
|
|
|
|
let messg = JSON.parse(res.msg);
|
|
|
|
|
if(messg.code == 200) {
|
|
|
|
|
messg.result.records.forEach((element)=>{
|
|
|
|
|
let location = element.location?.split(',');
|
|
|
|
|
// let messg = JSON.parse(res.msg);
|
|
|
|
|
if(res.code == 200) {
|
|
|
|
|
res.data.records.forEach((element)=>{
|
|
|
|
|
if(element.location) {
|
|
|
|
|
let location = element.location.split(',');
|
|
|
|
|
if(location) {
|
|
|
|
|
// console.log(location[0],location[1]);
|
|
|
|
|
let marker = L.marker({ lng: location[0], lat: location[1] },
|
|
|
|
@ -165,6 +174,7 @@ export default {
|
|
|
|
|
).addTo(this.map)
|
|
|
|
|
this.markerClick(marker, element);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|