chunk-11054ab2.5fc2cd5e.js 5.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11054ab2"],{b8bc:function(t,e,i){},d300:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"visual-con"},[i("vheader"),i("div",{staticClass:"visual-body"},[i("div",{ref:"left",staticClass:"leftbar",class:t.indentleft},[i("div",{staticClass:"forthis"},[i("div",{staticClass:"this-title"},[i("el-date-picker",{attrs:{type:"year",placeholder:"选择年"},on:{change:function(e){return t.getInit()}},model:{value:t.pickYear,callback:function(e){t.pickYear=e},expression:"pickYear"}})],1),i("div",{staticClass:"i-list-con h-19"},t._l(t.afforestationList,(function(e,s){return i("div",{staticClass:"d-l-con",class:{on:t.listCurrentIndex1==e.id},on:{click:function(i){return t.getAfforestationArea(e.id)}}},[i("div",{staticClass:"d-l-l-text"},[i("i",{staticClass:"i-small"}),i("h4",[t._v(t._s(e.plantingQuantity))])])])})),0)]),i("div",{staticClass:"forthis"},[i("div",{staticClass:"i-list-con h-51"},t._l(t.AfforestationAreaList,(function(e,s){return i("div",{staticClass:"d-l-con",class:{on:t.listCurrentIndex2==e.points},on:{click:function(i){return t.setGraphicsList(e.points)}}},[i("div",{staticClass:"d-l-l-text"},[i("i",{staticClass:"i-small"}),i("h4",[t._v("区域"+t._s(s+1))])])])})),0)])]),i("supermap",{ref:"supermap",staticStyle:{width:"100%",height:"100vh"},attrs:{mapDiv:"disasterMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1}}),i("vBottomMenu",{ref:"bottomMenu"})],1),i("eventLocation",{ref:"eventLocation"}),i("TVWall",{ref:"TVWall"})],1)},n=[],a=i("b775");function o(t){return Object(a["a"])({url:"/center-fire/VisuAfforestationController/getAfforestation?year="+t,method:"get"})}function r(t){return Object(a["a"])({url:"/center-fire/VisuAfforestationController/getAfforestationArea?afforestationId="+t,method:"get"})}var l=i("695f"),c=(i("23d9"),i("2f6e")),h=i("1dfe"),f=i("04fb7"),d=i("60e2"),u=i("6631"),p=(i("313e"),{dicts:["event_source"],components:{supermap:c["a"],vheader:h["a"],vBottomMenu:f["a"],eventLocation:d["a"],TVWall:u["a"]},created:function(){window.showDialog=this.showDialog,window.choseLayerSwitching=this.choseLayerSwitching},mounted:function(){this.getInit()},data:function(){return{listCurrentIndex1:"",listCurrentIndex2:"",pickYear:new Date,afforestationList:[],AfforestationAreaList:[],graphicsList:[],indentStyle:"",indentleft:"",indentright:"",indentText:"收起左右栏",indentdisabled:!1}},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)},getInit:function(){var t=this;this.listCurrentIndex1="",this.listCurrentIndex2="";this.afforestationList=[],this.AfforestationAreaList=[],o(this.pickYear.getYear()+1900).then((function(e){t.afforestationList=e.data,setTimeout((function(){t.$refs.supermap.clearG()}),1e3)}))},getAfforestationArea:function(t){var e=this;this.listCurrentIndex1=t;r(t).then((function(t){e.AfforestationAreaList=t.data}))},setGraphicsList:function(t){this.listCurrentIndex2=t,this.graphicsList=[],null!=t&&""!=t?(this.graphicsList=JSON.parse(t),this.$refs.supermap.clearG(),this.$refs.supermap.setGraphicsList(this.graphicsList,"red")):this.$refs.supermap.clearG()},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="收起左右栏")},dropLocation:function(t,e){this.$refs.supermap.dropLocation(t,e)},alertLogin:function(){this.$modal.msg("登录中....")},alertLoginSuccess:function(){this.$modal.msgSuccess("登录成功!")},alertLoginFailed:function(){this.$modal.msgError("登陆失败!")},alertReinstall:function(){this.$modal.msgWarning("请重新安装客户端")},preview:function(t){var e=this;Object(l["a"])().then((function(i){e.ws.detectConnectQt().then((function(s){s?(e.alertLogin(),e.ws.login({loginIp:i.loginIp,loginPort:i.loginPort,userName:i.userName,userPwd:i.userPwd,token:"",https:1}),e.ws.on("loginState",(function(i){e.isLogin=i,console.log("---res-----",i),i?(e.alertLoginSuccess(),e.activePanel="key2",e.realTimeVideoDialog(t)):e.alertLoginFailed()}))):e.alertReinstall()}))}))},realTimeVideoDialog:function(t){if(!this.isLogin)return this.$Message.info("正在登陆客户端,请稍等......"),!1;this.ws.openVideo(t)}}}),g=p,m=(i("f63b"),i("2877")),L=Object(m["a"])(g,s,n,!1,null,"4abbdbca",null);e["default"]=L.exports},f63b:function(t,e,i){"use strict";i("b8bc")}}]);