1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-69c60f1b"],{2271:function(t,i,e){t.exports=e.p+"static/img/yeji-1.3ee3ca41.png"},"286f":function(t,i,e){t.exports=e.p+"static/img/huli-1.0aaf11b8.png"},"313b":function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"visual-con"},[s("vheader"),s("div",{staticClass:"visual-body"},[s("div",{ref:"left",staticClass:"leftbar w-6",class:t.indentleft},[s("div",{staticClass:"forthis"},[s("div",{staticClass:"i-list-con h-78"},[s("div",{staticClass:"d-l-con-icon"},[s("div",{staticClass:"icon-con m-btm-no icon-animal-con",class:t.animalcount,on:{click:function(i){return t.getInit()}}},[t._m(0)])]),s("div",{staticClass:"d-l-con-icon"},t._l(t.animalDwfb,(function(i,e){return s("div",{staticClass:"icon-con icon-animal-con",class:{on:t.iconCurrentIndex1==i.type},on:{click:function(e){return t.selectForestAnimalListByType(i.type)}}},[s("div",{staticClass:"iconfont icon icon-normal icon-animal"},[s("img",{attrs:{src:i.src}})]),s("div",{staticClass:"icon-text icon-animal-text"},[s("h5",[t._v(t._s(i.name))])])])})),0)])])]),s("supermap",{ref:"supermap",staticStyle:{width:"100%",height:"100vh"},attrs:{mapDiv:"animalMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1}}),s("div",{ref:"right",staticClass:"rightbar",class:t.indentright},[s("div",{staticClass:"forthis"},[t._m(1),s("div",{staticClass:"i-list-con h-73"},[s("div",{staticClass:"d-l-con-icon"},[s("div",{staticClass:"h-19 overflow-y w100"},t._l(t.animalSjfb,(function(i,e){return s("div",{staticClass:"d-l-con"},[s("div",{staticClass:"d-l-l-text"},[s("i",{staticClass:"i-small"}),s("h4",[t._v(t._s(i.deptName))])]),s("div",{staticClass:"d-l-l-count"},[t._v(t._s(i.count))])])})),0)]),t._m(2),t._l(t.animalSjlb,(function(i,a){return s("div",{staticClass:"d-l-con d-evnet-list-con",class:{on:t.listCurrentIndex1==a},on:{click:function(e){return t.dropLocation(i.latitude,i.longitude,a)}}},[s("img",{staticClass:"event-list-img animal-img",attrs:{src:e("c110")}}),s("div",{staticClass:"event-list-text"},[s("h3",[t._v(t._s(i.eventTitle))]),s("h4",[s("span",[t._v("摄像头")]),s("span",[t._v("新上报")]),s("span",[t._v(t._s(i.reportTime))])])])])}))],2)])]),s("vBottomMenu",{ref:"bottomMenu"}),s("el-tooltip",{attrs:{content:t.indentText,placement:"top",disabled:t.indentdisabled}},[s("div",{ref:"mascot",staticClass:"mascot",class:t.indentStyle,on:{click:t.indent}},[s("img",{attrs:{src:e("53a9")}})])])],1),s("eventLocation",{ref:"eventLocation"}),s("TVWall",{ref:"TVWall"})],1)},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"icon-text animal-text"},[e("h6",[t._v("9")]),e("h5",[t._v("总数")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"this-title"},[e("span",[t._v("事件分布")])])},function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"d-l-con"},[e("div",{staticStyle:{width:"100%",height:"26.2vh"},attrs:{id:"animal-chart"}})])}],n=e("b775");function o(){return Object(n["a"])({url:"/center-fire/VisuForestAnimalController/init",method:"get"})}function r(t){return Object(n["a"])({url:"/center-fire/VisuForestAnimalController/selectForestAnimalListByType/"+t,method:"get"})}var l=e("2f6e"),c=e("1dfe"),d=e("04fb7"),u=e("60e2"),p=e("6631"),m=e("313e"),v={components:{supermap:l["a"],vheader:c["a"],vBottomMenu:d["a"],eventLocation:u["a"],TVWall:p["a"]},data:function(){return{animalcount:"",iconCurrentIndex1:"",listCurrentIndex1:"",indentStyle:"",indentleft:"",indentright:"",indentText:"收起左右栏",indentdisabled:!1,animalDwfb:[{name:"虎",src:e("4293"),type:"forest_animal_hu"},{name:"豹",src:e("4ad3"),type:"forest_animal_bao"},{name:"蛇",src:e("e249"),type:"forest_animal_she"},{name:"鹰",src:e("9f27"),type:"forest_animal_ying"},{name:"兔",src:e("3deb"),type:"forest_animal_tu"},{name:"狐狸",src:e("286f"),type:"forest_animal_huli"},{name:"狗熊",src:e("aa88"),type:"forest_animal_gouxiong"},{name:"野鸡",src:e("2271"),type:"forest_animal_yeji"},{name:"狍子",src:e("d690"),type:"forest_animal_paozi"}],animalSjfb:[],animalSjlb:[],markersList:[]}},created:function(){window.showDialog=this.showDialog,window.choseLayerSwitching=this.choseLayerSwitching},mounted:function(){this.getInit()},methods:{showDialog:function(t){"eventLocation"==t?(this.$refs.eventLocation.showEventLocation(),this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild=!1):"editableLayers"==t?(this.$refs.bottomMenu.showChild=!1,this.$refs.supermap.isEditableLayers?this.$refs.supermap.isEditableLayers=!1:this.$refs.supermap.isEditableLayers=!0):"layerSwitching"==t?(this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild?this.$refs.bottomMenu.showChild=!1:this.$refs.bottomMenu.showChild=!0):"TVWall"==t&&(this.$refs.TVWall.showTVWall(),this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild=!1)},choseLayerSwitching:function(t){this.$refs.supermap.layerSwitching(t,!0)},dropLocation:function(t,i,e){this.listCurrentIndex1=e,this.$refs.supermap.dropLocation(t,i)},getInit:function(){var t=this;this.iconCurrentIndex1="",this.animalcount="on";var i=this;o().then((function(e){if(t.animalSjfb=e.data.visuForestAnimalBOList,t.animalSjlb=e.data.visuForestVgdEventBOList,i.markersList=[],null!=e.data.visuForestVgdEventBOList&&e.data.visuForestVgdEventBOList.length>0){for(var s=0;s<e.data.visuForestVgdEventBOList.length;s++){var a={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1};e.data.visuForestVgdEventBOList.length>50&&(a.isAggregation=!0),a.lng=e.data.visuForestVgdEventBOList[s].longitude,a.lat=e.data.visuForestVgdEventBOList[s].latitude,a.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+e.data.visuForestVgdEventBOList[s].longitude+","+e.data.visuForestVgdEventBOList[s].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+e.data.visuForestVgdEventBOList[s].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+e.data.visuForestVgdEventBOList[s].reportTime+"</h4> </div> </div> </span></div>",i.markersList.push(a)}setTimeout((function(){i.$refs.supermap.clearM(!1),i.$refs.supermap.clearM(!0),i.$refs.supermap.setMarkers(i.markersList)}),1e3)}else setTimeout((function(){i.$refs.supermap.clearM(!1),i.$refs.supermap.clearM(!0)}),1e3)}))},selectForestAnimalListByType:function(t){var i=this;this.iconCurrentIndex1=t,this.animalcount="";var e=this;r(t).then((function(t){if(console.log(t),i.animalSjfb=t.data.visuForestAnimalBOList,i.animalSjlb=t.data.visuForestVgdEventBOList,e.markersList=[],null!=t.data.visuForestVgdEventBOList&&t.data.visuForestVgdEventBOList.length>0){for(var s=0;s<t.data.visuForestVgdEventBOList.length;s++){var a={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1};t.data.visuForestVgdEventBOList.length>50&&(a.isAggregation=!0),a.lng=t.data.visuForestVgdEventBOList[s].longitude,a.lat=t.data.visuForestVgdEventBOList[s].latitude,a.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+t.data.visuForestVgdEventBOList[s].longitude+","+t.data.visuForestVgdEventBOList[s].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+t.data.visuForestVgdEventBOList[s].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+t.data.visuForestVgdEventBOList[s].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(a)}setTimeout((function(){e.$refs.supermap.clearM(!1),e.$refs.supermap.clearM(!0),e.$refs.supermap.setMarkers(e.markersList)}),1e3)}else setTimeout((function(){e.$refs.supermap.clearM(!1),e.$refs.supermap.clearM(!0)}),1e3)}))},eventChart:function(){var t=m.init(document.getElementById("animal-chart"));t.setOption({color:["#2EACFF","#FFA61C","#2EC054","#8C64D7"],tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},toolbox:{show:!0},series:[{name:"事件分类",type:"pie",roseType:!0,radius:[30,70],label:{show:!0,formatter:"{b}\n{c} "},data:this.eventChartData}]})},indent:function(){var t=document.getElementsByClassName("el-tooltip__popper");t[t.length-1].style.display="none",""==this.indentStyle?(this.indentStyle="indent-style",this.indentleft="indent-left",this.indentright="indent-right",this.indentText="展开左右栏"):"展开左右栏"==this.indentText&&(this.indentStyle="",this.indentleft="",this.indentright="",this.indentText="收起左右栏")}}},h=v,f=(e("9293"),e("2877")),g=Object(f["a"])(h,s,a,!1,null,"4acfdb7c",null);i["default"]=g.exports},"3deb":function(t,i,e){t.exports=e.p+"static/img/tuzi-1.69b44774.png"},4293:function(t,i,e){t.exports=e.p+"static/img/hu-1.6dbafec1.png"},"4ad3":function(t,i,e){t.exports=e.p+"static/img/bao-1.c3db2222.png"},"53a9":function(t,i,e){t.exports=e.p+"static/img/mascot.919f0170.png"},9293:function(t,i,e){"use strict";e("f580")},"9f27":function(t,i,e){t.exports=e.p+"static/img/ying-1.0efaa342.png"},aa88:function(t,i,e){t.exports=e.p+"static/img/gouxiong-1.47f65f41.png"},d690:function(t,i,e){t.exports=e.p+"static/img/paozi-1.6ef1a90e.png"},e249:function(t,i,e){t.exports=e.p+"static/img/she-1.1e335e67.png"},f580:function(t,i,e){}}]);
|