预警地图

pull/139/head
lukeyan 2 years ago
parent 2401af74fb
commit 774bba94df

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -0,0 +1,10 @@
// 应用超市 ---> 警情通报
import request from '@/utils/request'
// 警情通报主页查询
export function get_report_data(params) {
return request({
url: '/safety/store/personnelReview/safeCompanyInstantAlarm',
method: 'get',
params
})
}

@ -23,3 +23,11 @@ export function addCommonApprovalProcess(data) {
data data
}) })
} }
// 地图上图点位公司
export function get_company_list(params) {
return request({
url: '/safety/system/tbSafeCompanyAlarm/map/companyInfoList',
method: 'get',
params
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -0,0 +1,432 @@
<!-- 网络反诈 -->
<template>
<div>
<!-- 查询 -->
<div class="item_search">
<el-form :model="search" class="search_form">
<el-form-item label="通报时间">
<el-date-picker
v-model="search.search_time"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="关键字">
<el-input v-model="search.word" placeholder="请选择关键词"></el-input>
</el-form-item>
<el-form-item>
<el-button icon="el-icon-search" @click="search_data"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<!-- 通报展示 -->
<div class="item_list">
<div
v-for="item in counterfraud_list"
:key="item.id"
class="counterfraud_item"
>
<div class="counterfraud_title">
<div class="text">通报概述</div>
<div class="counterfraud_content">
<!-- 警情简要 -->
<div class="counterfraud_glossary">
<div class="counterfraud_glossary_icon">
<div class="icon_green"></div>
</div>
<div class="counterfraud_glossary_text">警情简要:</div>
<div class="counterfraud_glossary_value">
{{ item.counterfraud }}
</div>
</div>
<!-- 警情时间 -->
<div class="counterfraud_time">
<div class="counterfraud_time_icon">
<i class="el-icon-alarm-clock"></i>
</div>
<div class="counterfraud_time_text">警情时间:</div>
<div class="counterfraud_time_value">{{ item.time }}</div>
<!-- 查看详情按钮 -->
<div class="counterfraud_btn">
<el-button size="small" icon="el-icon-s-promotion"
>查看详情</el-button
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
// import { get_counterfraud_data } from "@/api/applySupermarket/policecounterfraud";
export default {
data() {
return {
search: {
search_time: [this.get_today(), this.get_tomorrow()],
word: "",
},
counterfraud_list: [
{
id: "2",
counterfraud: "于该日在辖区内发生两起盗窃事件",
time: "2023 08 29",
},
{
id: "4",
},
{
id: "5",
},
{
id: "6",
},
{
id: "7",
},
{
id: "8",
},
{
id: "9",
},
{
id: "10",
},
{
id: "11",
},
{
id: "12",
},
{
id: "13",
},
{
id: "14",
},
{
id: "15",
},
],
pageSize: 16,
pageNum: 1,
total: 0,
};
},
methods: {
//
dateConversion(value) {
let date = new Date(value);
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let h = date.getHours();
h = h < 10 ? "0" + h : h;
let M = date.getMinutes();
M = M < 10 ? "0" + M : M;
let s = date.getSeconds();
s = s < 10 ? "0" + s : s;
let dateTime = y + "-" + m + "-" + d + " " + h + ":" + M + ":" + s;
return dateTime;
},
//
get_today() {
let date = new Date();
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let dateTime =
y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00";
return dateTime;
},
//
get_tomorrow() {
let date = new Date();
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate() + 1;
d = d < 10 ? "0" + d : d;
let dateTime =
y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00";
return dateTime;
},
//
search_data() {
// get_counterfraud_data().then();
},
//
reset() {
this.search.course_time = [this.get_today(), this.get_tomorrow()];
this.search.word = "";
this.search_data();
},
},
};
</script>
<style lang="less" scoped>
.item_search {
width: 94vw;
display: flex;
flex-direction: row-reverse;
/deep/.el-form {
display: flex;
.el-form-item {
display: flex;
margin-left: 0.5vw;
.el-date-editor--daterange.el-input__inner {
width: 440px;
}
}
.el-form-item__label {
text-align: center;
color: #fff;
}
.el-form-item__content {
.el-date-editor.el-range-editor.el-input__inner.el-date-editor--datetimerange {
background: rgba(0, 0, 0, 0);
border: 0.1px solid #28847e;
}
.el-input__inner {
background: rgba(0, 0, 0, 0);
border: 0.1px solid #28847e;
color: #fff;
}
/* 查询框点击颜色变化 */
.el-input__inner:focus,
.el-input__inner:hover {
border-color: #2a968f;
}
.el-range-input {
color: #fff;
background: #283436;
}
}
.el-button {
border: 0.1px solid #28847e;
color: #fff;
background: rgba(0, 0, 0, 0);
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
top: -100%;
left: -50%;
width: 150%;
height: 2px;
background-color: #fff;
box-shadow: 0 0 4px 1px #fff;
transform: rotateZ(-45deg);
}
&:hover::before {
transition: 0.7s;
top: 200%;
left: 50%;
}
}
.el-button:focus,
.el-button:hover {
color: #34e1b3;
background: #4d8f89;
border: 0.1px solid #137868;
}
}
/deep/.el-range-separator {
color: #fff;
width: 10%;
}
/deep/.el-input__icon.el-range__close-icon {
display: none;
}
}
.item_list {
width: 94vw;
height: 62vh;
border: 0.1px solid #28847e;
display: flex;
justify-content: flex-start;
align-content: flex-start;
flex-wrap: wrap;
.counterfraud_item {
width: 22vw;
height: 14vh;
border: 0.1px solid #28847e;
margin-left: 0.7vw;
margin-right: 0.7vw;
margin-top: 0.7vh;
margin-bottom: 0.7vh;
.counterfraud_title {
width: 22vw;
height: 4vh;
background: linear-gradient(
to right,
rgba(0, 255, 247, 0.37),
rgba(0, 255, 247, 0)
);
.text {
color: aliceblue;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
width: 5vw;
text-align: center;
height: 4vh;
line-height: 4vh;
}
.counterfraud_content {
width: 22vw;
height: 10vh;
.counterfraud_glossary {
width: 22vw;
height: 5vh;
display: flex;
.counterfraud_glossary_icon {
width: 2vw;
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
.icon_green {
width: 30px;
height: 30px;
background: url("~@/assets/applySupermarket/green.png") no-repeat !important;
background-size: 100% 100% !important;
animation-name: scale, high;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes scale {
/*定义关键帧、scale是需要绑定到选择器的关键帧名称*/
0% {
transform: scale(0.8); /*开始为原始大小*/
}
25% {
transform: scale(1); /*放大1.1倍*/
}
50% {
transform: scale(0.8);
}
75% {
transform: scale(1);
}
100% {
transform: scale(0.8);
}
}
@keyframes high {
0% {
filter: brightness(80%);
}
25% {
filter: brightness(200%);
}
50% {
filter: brightness(80%);
}
75% {
filter: brightness(200%);
}
100% {
filter: brightness(80%);
}
}
}
.counterfraud_glossary_text {
width: 4.3vw;
height: 5vh;
line-height: 5vh;
color: aliceblue;
text-align: center;
}
.counterfraud_glossary_value {
width: 15.7vw;
height: 5vh;
line-height: 5vh;
color: #fff;
text-align: left;
}
}
.counterfraud_time {
width: 22vw;
height: 5vh;
display: flex;
.counterfraud_time_icon {
width: 2vw;
height: 5vh;
text-align: center;
line-height: 5vh;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
font-size: 20px;
}
.counterfraud_time_text {
width: 4.3vw;
height: 5vh;
line-height: 5vh;
color: aliceblue;
text-align: center;
}
.counterfraud_time_value {
width: 8.7vw;
height: 5vh;
line-height: 5vh;
color: #fff;
text-align: left;
}
.counterfraud_btn {
width: 7vw;
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
.el-button {
display: flex;
align-items: center;
font-size: 13px;
height: 4vh;
color: #fff;
background: rgba(0, 0, 0, 0);
border: 0.1px solid rgba(0, 0, 0, 0);
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
top: -100%;
left: -50%;
width: 150%;
height: 2px;
background-color: #fff;
box-shadow: 0 0 4px 1px #fff;
transform: rotateZ(-45deg);
}
&:hover::before {
transition: 0.7s;
top: 200%;
left: 50%;
}
}
.el-button:hover {
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
}
}
}
}
</style>

@ -3,8 +3,13 @@
<div class="supermarket_body"> <div class="supermarket_body">
<div class="supermarket_title"> <div class="supermarket_title">
<div class="supermarket_title_01" @click="back_list"></div> <div class="supermarket_title_01" @click="back_list"></div>
<div v-if="is_flag == '1'" class="supermarket_title_02">>>人员背景审核</div> <div v-if="is_flag == '1'" class="supermarket_title_02">
>>人员背景审核
</div>
<div v-if="is_flag == '3'" class="supermarket_title_02">>>警情通报</div> <div v-if="is_flag == '3'" class="supermarket_title_02">>>警情通报</div>
<div v-if="is_flag == '5'" class="supermarket_title_02">
>>网络反诈提醒
</div>
</div> </div>
<div class="supermarket_list"> <div class="supermarket_list">
<div v-if="is_flag === '0'" class="list_boxs"> <div v-if="is_flag === '0'" class="list_boxs">
@ -45,7 +50,7 @@
<div class="company_dispute_text">道路拥堵提醒</div> <div class="company_dispute_text">道路拥堵提醒</div>
</div> </div>
<!-- 网络反诈提醒 --> <!-- 网络反诈提醒 -->
<div class="list_box company_notification"> <div class="list_box company_notification" @click="fraud_back_change">
<div class="company_notification_icon_box"> <div class="company_notification_icon_box">
<!-- 遮罩层 负责旋转动画 --> <!-- 遮罩层 负责旋转动画 -->
<div class="yellow_mark turn"></div> <div class="yellow_mark turn"></div>
@ -107,17 +112,23 @@
<div v-else-if="is_flag === '3'" class="person_back_boxs"> <div v-else-if="is_flag === '3'" class="person_back_boxs">
<PoliceReport ref="policeReport"></PoliceReport> <PoliceReport ref="policeReport"></PoliceReport>
</div> </div>
<!-- 跳转至网络反诈提醒 -->
<div v-else-if="is_flag === '5'" class="person_back_boxs">
<Counterfraud ref="counterfraud"></Counterfraud>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import PersonBack from './personBack/index'; import PersonBack from "./personBack/index";
import PoliceReport from './policeReport/index'; import PoliceReport from "./policeReport/index";
import Counterfraud from "./counterfraud/index";
export default { export default {
name: "ApplySupermarket", name: "ApplySupermarket",
components:{ components: {
PersonBack, PersonBack,
PoliceReport PoliceReport,
Counterfraud,
}, },
data() { data() {
return { return {
@ -127,7 +138,7 @@ export default {
methods: { methods: {
// //
back_list() { back_list() {
this.is_flag = '0' this.is_flag = "0";
}, },
// //
person_back_change() { person_back_change() {
@ -135,8 +146,11 @@ export default {
}, },
// //
police_back_change() { police_back_change() {
this.is_flag = '3'; this.is_flag = "3";
} },
fraud_back_change() {
this.is_flag = "5";
},
}, },
}; };
</script> </script>

@ -6,7 +6,7 @@
<el-form :model="search" class="search_form"> <el-form :model="search" class="search_form">
<el-form-item label="通报时间"> <el-form-item label="通报时间">
<el-date-picker <el-date-picker
v-model="search.course_time" v-model="search.search_time"
type="datetimerange" type="datetimerange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
@ -25,9 +25,42 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<!-- 通报展示 -->
<div class="item_list">
<div v-for="item in report_list" :key="item.id" class="report_item">
<div class="report_title">
<div class="text">通报概述</div>
<div class="report_content">
<!-- 警情简要 -->
<div class="report_glossary">
<div class="report_glossary_icon">
<div class="icon_green"></div>
</div>
<div class="report_glossary_text">警情简要:</div>
<div class="report_glossary_value">{{ item.report }}</div>
</div>
<!-- 警情时间 -->
<div class="report_time">
<div class="report_time_icon">
<i class="el-icon-alarm-clock"></i>
</div>
<div class="report_time_text">警情时间:</div>
<div class="report_time_value">{{ item.time }}</div>
<!-- 查看详情按钮 -->
<div class="report_btn">
<el-button size="small" icon="el-icon-s-promotion"
>查看详情</el-button
>
</div>
</div>
</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import {get_report_data} from '@/api/applySupermarket/policeReport'
export default { export default {
data() { data() {
return { return {
@ -35,6 +68,52 @@ export default {
search_time: [this.get_today(), this.get_tomorrow()], search_time: [this.get_today(), this.get_tomorrow()],
word: "", word: "",
}, },
report_list: [
{
id: "2",
report: "于该日在辖区内发生两起盗窃事件",
time: "2023 08 29",
},
{
id: "4",
},
{
id: "5",
},
{
id: "6",
},
{
id: "7",
},
{
id: "8",
},
{
id: "9",
},
{
id: "10",
},
{
id: "11",
},
{
id: "12",
},
{
id: "13",
},
{
id: "14",
},
{
id: "15",
},
],
pageSize: 16,
pageNum: 1,
total: 0,
}; };
}, },
methods: { methods: {
@ -79,6 +158,16 @@ export default {
y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00"; y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00";
return dateTime; return dateTime;
}, },
//
search_data() {
get_report_data().then()
},
//
reset() {
this.search.course_time = [this.get_today(), this.get_tomorrow()];
this.search.word = "";
this.search_data();
},
}, },
}; };
</script> </script>
@ -163,4 +252,179 @@ export default {
display: none; display: none;
} }
} }
.item_list {
width: 94vw;
height: 62vh;
border: 0.1px solid #28847e;
display: flex;
justify-content: flex-start;
align-content: flex-start;
flex-wrap: wrap;
.report_item {
width: 22vw;
height: 14vh;
border: 0.1px solid #28847e;
margin-left: 0.7vw;
margin-right: 0.7vw;
margin-top: 0.7vh;
margin-bottom: 0.7vh;
.report_title {
width: 22vw;
height: 4vh;
background: linear-gradient(
to right,
rgba(0, 255, 247, 0.37),
rgba(0, 255, 247, 0)
);
.text {
color: aliceblue;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
width: 5vw;
text-align: center;
height: 4vh;
line-height: 4vh;
}
.report_content {
width: 22vw;
height: 10vh;
.report_glossary {
width: 22vw;
height: 5vh;
display: flex;
.report_glossary_icon {
width: 2vw;
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
.icon_green {
width: 30px;
height: 30px;
background: url("~@/assets/applySupermarket/green.png") no-repeat !important;
background-size: 100% 100% !important;
animation-name: scale, high;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes scale {
/*定义关键帧、scale是需要绑定到选择器的关键帧名称*/
0% {
transform: scale(0.8); /*开始为原始大小*/
}
25% {
transform: scale(1); /*放大1.1倍*/
}
50% {
transform: scale(0.8);
}
75% {
transform: scale(1);
}
100% {
transform: scale(0.8);
}
}
@keyframes high {
0% {
filter: brightness(80%);
}
25% {
filter: brightness(200%);
}
50% {
filter: brightness(80%);
}
75% {
filter: brightness(200%);
}
100% {
filter: brightness(80%);
}
}
}
.report_glossary_text {
width: 4.3vw;
height: 5vh;
line-height: 5vh;
color: aliceblue;
text-align: center;
}
.report_glossary_value {
width: 15.7vw;
height: 5vh;
line-height: 5vh;
color: #fff;
text-align: left;
}
}
.report_time {
width: 22vw;
height: 5vh;
display: flex;
.report_time_icon {
width: 2vw;
height: 5vh;
text-align: center;
line-height: 5vh;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
font-size: 20px;
}
.report_time_text {
width: 4.3vw;
height: 5vh;
line-height: 5vh;
color: aliceblue;
text-align: center;
}
.report_time_value {
width: 8.7vw;
height: 5vh;
line-height: 5vh;
color: #fff;
text-align: left;
}
.report_btn {
width: 7vw;
height: 5vh;
display: flex;
justify-content: center;
align-items: center;
.el-button {
display: flex;
align-items: center;
font-size: 13px;
height: 4vh;
color: #fff;
background: rgba(0, 0, 0, 0);
border: 0.1px solid rgba(0, 0, 0, 0);
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
top: -100%;
left: -50%;
width: 150%;
height: 2px;
background-color: #fff;
box-shadow: 0 0 4px 1px #fff;
transform: rotateZ(-45deg);
}
&:hover::before {
transition: 0.7s;
top: 200%;
left: 50%;
}
}
.el-button:hover {
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
}
}
}
}
</style> </style>

@ -12,8 +12,8 @@
<Map <Map
class="map" class="map"
:waringList="waringList" :waringList="waringList"
:company_list="company_list"
@zhuanchuzhi="chuzhi" @zhuanchuzhi="chuzhi"
v-if="waringList && waringList.length"
> >
</Map> </Map>
</div> </div>
@ -27,8 +27,8 @@
<span <span
>( <span class="redText">{{ total }}</span> )</span >( <span class="redText">{{ total }}</span> )</span
> --> > -->
<!-- 搜索框 --> <!-- 搜索框 -->
<!-- <div class="searchBox"> <!-- <div class="searchBox">
<el-form :model="formInline" class="search"> <el-form :model="formInline" class="search">
<el-form-item class="formItem"> <el-form-item class="formItem">
<el-input <el-input
@ -42,8 +42,8 @@
</el-form> </el-form>
</div> </div>
</div> --> </div> -->
<!-- 公司展示区域 --> <!-- 公司展示区域 -->
<!-- <div class="bottomBody"> <!-- <div class="bottomBody">
<div <div
class="yujingItem" class="yujingItem"
v-for="(item, index) in waringList" v-for="(item, index) in waringList"
@ -54,8 +54,8 @@
<div class="companyName_icon"></div> <div class="companyName_icon"></div>
<div class="companyName_text">{{ item.companyName }}</div> <div class="companyName_text">{{ item.companyName }}</div>
</div> --> </div> -->
<!-- <div class="companyName">{{ item.companyName }}</div> --> <!-- <div class="companyName">{{ item.companyName }}</div> -->
<!-- <div class="impBtnList"> <!-- <div class="impBtnList">
<div <div
:class="{ :class="{
shewei: a == '剧毒' || a == '易制毒', shewei: a == '剧毒' || a == '易制毒',
@ -96,7 +96,7 @@
<div class="chuzhi" @click="chuzhi(item)"></div> <div class="chuzhi" @click="chuzhi(item)"></div>
</div> </div>
</div> --> </div> -->
<!-- <div class="block"> <!-- <div class="block">
<el-pagination <el-pagination
style="float: right; margin: 5px" style="float: right; margin: 5px"
class="msg-pagination-container" class="msg-pagination-container"
@ -142,13 +142,14 @@ import {
mapList, mapList,
deptList, deptList,
addCommonApprovalProcess, addCommonApprovalProcess,
get_company_list,
} from "@/api/realtimeWarning"; } from "@/api/realtimeWarning";
import Map from "./map"; import Map from "./map";
import WarnCompany from './components/warnCompany' import WarnCompany from "./components/warnCompany";
export default { export default {
components: { components: {
Map, Map,
WarnCompany WarnCompany,
}, },
data() { data() {
return { return {
@ -161,10 +162,12 @@ export default {
pageNum: 1, pageNum: 1,
total: 0, total: 0,
formInline: {}, formInline: {},
company_list:[], // map
}; };
}, },
created() { created() {
this.getList(); this.getList();
this.get_warn_data();
}, },
methods: { methods: {
getList() { getList() {
@ -177,6 +180,18 @@ export default {
this.total = res.total; this.total = res.total;
}); });
}, },
//
get_warn_data() {
get_company_list().then((res) => {
console.log("333", res);
let companyName = "companyName"; // 1
this.company_list = res.data.reduce(
(all, next) =>
all.some((item) => item[companyName] == next[companyName]) ? all : [...all, next],
[]
); // 2
});
},
handleSizeChange(val) { handleSizeChange(val) {
this.pageNum = 1; this.pageNum = 1;
this.pageSize = val; this.pageSize = val;
@ -289,10 +304,10 @@ export default {
width: 100%; width: 100%;
} }
} }
.warning_box { .warning_box {
width: 30vw; width: 30vw;
height: 100%; height: 100%;
} }
// .rightBox { // .rightBox {
// width: 570px; // width: 570px;
// height: 100%; // height: 100%;

@ -11,7 +11,17 @@ import styleJson from "../../../public/custom_map_config.json";
import { topMap } from "@/api/offLineMap"; import { topMap } from "@/api/offLineMap";
export default { export default {
name: "Map", name: "Map",
props: ["waringList"],
props: {
waringList: {
type: Array,
default: () => [],
},
company_list: {
type: Array,
default: () => [],
},
},
data() { data() {
return { return {
dongtaiPoint: [121.604192, 29.977299], dongtaiPoint: [121.604192, 29.977299],
@ -28,7 +38,7 @@ export default {
}); });
topMap({ scoreType: "season" }).then((res) => { topMap({ scoreType: "season" }).then((res) => {
this.companyList = res.data; this.companyList = res.data;
console.log('companyList',this.companyList); console.log("companyList", this.companyList);
}); });
}, },
methods: { methods: {
@ -121,6 +131,7 @@ export default {
polygon.setFillColor("#3b4c44"); polygon.setFillColor("#3b4c44");
}); });
// _1 // _1
//
polygon.addEventListener("click", function () { polygon.addEventListener("click", function () {
if (city.properties.name == "骆驼街道") { if (city.properties.name == "骆驼街道") {
map.centerAndZoom(new BMap.Point(121.58887, 29.986122), 15); map.centerAndZoom(new BMap.Point(121.58887, 29.986122), 15);
@ -138,9 +149,15 @@ export default {
map.centerAndZoom(new BMap.Point(121.558532, 30.039457), 15); map.centerAndZoom(new BMap.Point(121.558532, 30.039457), 15);
} }
// _2 // _2
that.companyList.forEach((item) => { //
console.log("that.company_list", that.company_list);
that.company_list.forEach((item) => {
var point = new BMap.Point(item.longitude, item.latitude); var point = new BMap.Point(item.longitude, item.latitude);
var marker = new BMap.Marker(point); // //
var myIcon = new BMap.Icon(
require("@/assets/realtimeWarning/red.png"), new BMap.Size(23, 25)
);
var marker = new BMap.Marker(point,{icon:myIcon}); //
map.addOverlay(marker); map.addOverlay(marker);
var content = item.companyName; var content = item.companyName;
var label = new BMap.Label(content, { var label = new BMap.Label(content, {

Loading…
Cancel
Save