diff --git a/src/views/pages/areaMonitor/components/EarlyWarning.vue b/src/views/pages/areaMonitor/components/EarlyWarning.vue index eb47037..463ddf5 100644 --- a/src/views/pages/areaMonitor/components/EarlyWarning.vue +++ b/src/views/pages/areaMonitor/components/EarlyWarning.vue @@ -166,7 +166,7 @@ export default { }, ], eventListData: [], - total:0, + total:6, pageSize:6, currentPage:1, @@ -200,7 +200,7 @@ export default { let resdata=res.data.data; this.dateTabs[1].dataNum=resdata.length; // this.eventListData = res.data; - this.total = res.count; + // this.total = res.data.count; // console.log("执行函数111"); //获取参数重新编辑 $.ajax({ diff --git a/src/views/pages/areaMonitor/index.vue b/src/views/pages/areaMonitor/index.vue index 4ec4068..0736706 100644 --- a/src/views/pages/areaMonitor/index.vue +++ b/src/views/pages/areaMonitor/index.vue @@ -166,6 +166,9 @@ import { selectByAreaEvent, selectKeyArea } from "@/api/area"; import { gcjLL2wgs84LL } from "@/utils/coordinateSystemTransform"; // 时间轴 import HorizonTimeLine from "./components/HorizonTimeLine"; +import { + crowflowList, +} from "@/api/areaMonitor"; export default { data() { return { @@ -549,6 +552,8 @@ export default { this.hiMapFun.addAreaToMap(areaLatLng); } }); + // 商业街区热力图上图。 + this.shoppingMallThermodynamic(); } else { const dataEvent = []; res.data.data.forEach((item) => { @@ -579,6 +584,7 @@ export default { case "窗口单位": if (item === "商业街区") { this.hiMapFun.removerPolygon(); + this.hiMapFun.removeLayerByLayerName("shoppingMallLayer"); } this.hiMapFun.removeLayerByLayerName(item); break; @@ -616,6 +622,43 @@ export default { createCameraDetailsPop ); }, + // 商业街区热力图上图。 + async shoppingMallThermodynamic(){ + // 查询检测预警。 + const params = { + page: 1, + size: 500, + needAreaData:true, + }; + // console.log("执行函数"); + let shoppingMallList=await crowflowList(params); + let smList=shoppingMallList.data.data; + let smListLength=smList.length; + let smOnMapData=[]; + for(let i=0; i