chunk-32ea1202.b7b49c42.js 7.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32ea1202","chunk-59e3a2aa","chunk-24c54c5f","chunk-2d0dd9c6"],{"01a0":function(t,n,e){},"1d72":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"dashbg"},[e("dv-border-box-11",{attrs:{title:"风资源管理系统"}},[e("div",{staticClass:"dashMain"},[e("dv-border-box-3",{staticClass:"dv13"},[e("t-map")],1),e("div",{staticClass:"dv12"},[e("div",{staticClass:"btuBox"},[e("div",{staticClass:"btu"},[e("dv-border-box-2",[e("span",{on:{click:function(n){return t.push()}}},[t._v("后台管理")])])],1)]),e("dv-border-box-13",[e("analysis-log")],1)],1)],1)])],1)},i=[],o=e("4fb2"),r=e("c69c"),c={name:"index",components:{tMap:o["default"],analysisLog:r["default"]},data:function(){return{}},methods:{push:function(){this.$router.push({path:"/dataQuery/windTowerStatusInfo"})}}},u=c,d=(e("b017"),e("2877")),s=Object(d["a"])(u,a,i,!1,null,"4b99c4b2",null);n["default"]=s.exports},"3adf":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return o})),e.d(n,"c",(function(){return r}));var a=e("b775");function i(t){return Object(a["a"])({url:"/dataQuery/electricFieId/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/dataQuery/electricFieId",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/dataQuery/electricFieId",method:"put",data:t})}},4305:function(t,n,e){"use strict";e.d(n,"e",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return c})),e.d(n,"f",(function(){return u})),e.d(n,"b",(function(){return d}));var a=e("b775");function i(t){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo/list",method:"get",params:t})}function o(){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo/dashAllWindInfo",method:"get"})}function r(){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo/listAll",method:"get"})}function c(t){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo",method:"put",data:t})}function d(t){return Object(a["a"])({url:"/dataQuery/windTowerStatusInfo/"+t,method:"delete"})}},"4fb2":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"mapTitleBox"},[e("dv-decoration-6",{staticStyle:{width:"20%",height:"30px"}}),e("dv-border-box-12",{staticClass:"mapTitle"},[e("span",[t._v("地形图")])]),e("dv-decoration-6",{staticStyle:{width:"20%",height:"30px"}})],1),e("div",{ref:"allmap",staticClass:"map",attrs:{id:"map"}})])},i=[],o=(e("d81d"),e("d3b7"),e("159b"),e("b0c0"),e("81b9")),r=e("4305"),c=e("3adf"),u={name:"bMap",data:function(){return{map:"",windInfo:[],longitude:"131.759770",latitude:"47.051740"}},destroyed:function(){this.map=null;for(var t=setInterval(";"),n=0;n<t;n++)clearInterval(n);var e=document.querySelectorAll(".map");e.forEach((function(t){document.body.removeChild(t)}))},created:function(){},mounted:function(){var t=this;this.getAllWindInfo(),this.init(),setTimeout((function(){t.init()}),500)},methods:{getAllWindInfo:function(){var t=this;Object(r["c"])().then((function(n){t.windInfo=n.rows,t.getEleInfo()}))},getEleInfo:function(){var t=this;Object(c["b"])().then((function(n){var e=n.rows[0];void 0!=e&&(t.longitude=e.longitude,t.latitude=e.latitude)}))},init:function(){var t=this;Object(o["tMpgl"])().then((function(n){var a="http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=7cabc767dcc67e80ef97889c297f48f9",i="http://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=7cabc767dcc67e80ef97889c297f48f9",o=new n.TileLayer(a,{minZoom:6,maxZoom:18}),r=new n.TileLayer(i,{minZoom:6,maxZoom:18}),c={layers:[o,r]};t.map=new n.Map("map",c),t.map.centerAndZoom(new n.LngLat(t.longitude,t.latitude),10);var u=new n.Control.Zoom;t.map.addControl(u);var d=new n.Icon({iconUrl:e("8376"),iconSize:new n.Point(29,27),iconAnchor:new n.Point(10,25)}),s=t.windInfo;if(s.length>0){for(var l=[],f=0;f<s.length;f++){var m="";m=new n.Marker(new n.LngLat(s[f].lon,s[f].lat),{icon:d});var b="<div>测风塔名字:"+s[f].name+"<br>经度:"+s[f].lon+"<br>纬度:"+s[f].lat+" </div>";l.push({marker:m,info:b}),t.map.addOverLay(m)}for(var v=function(t){var e=l[t].marker;e.addEventListener("click",(function(){var a=new n.InfoWindow;a.setContent(l[t].info),e.openInfoWindow(a)}))},p=0;p<l.length;p++)v(p)}}))}}},d=u,s=(e("b93e"),e("2877")),l=Object(s["a"])(d,a,i,!1,null,"5d53008e",null);n["default"]=l.exports},"81b9":function(t,n,e){"use strict";e.r(n),e.d(n,"tMpgl",(function(){return a}));e("d3b7");function a(){return new Promise((function(t,n){if("undefined"!==typeof T)return t(T),!0;window.onBMapCallback=function(){t(T)};var e=document.createElement("script");e.type="text/javascript",e.src="http://api.tianditu.gov.cn/api?v=4.0&tk=7cabc767dcc67e80ef97889c297f48f9",e.onerror=n,document.head.appendChild(e)}))}},8376:function(t,n,e){t.exports=e.p+"static/img/fengche.2a8cc8d4.png"},a61f:function(t,n,e){},b017:function(t,n,e){"use strict";e("facc")},b93e:function(t,n,e){"use strict";e("a61f")},bc43:function(t,n,e){"use strict";e("01a0")},c69c:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"logBox"},[e("dv-border-box-12",{staticClass:"logTitle"},[e("span",[t._v("解析日志")])])],1),e("div",{staticClass:"tableBox"},[e("el-table",{staticClass:"myTable",staticStyle:{width:"95%"},attrs:{data:t.dayLog}},[e("el-table-column",{attrs:{prop:"equipmentId",label:"设备名称",formatter:t.formatId,align:"center"}}),e("el-table-column",{attrs:{prop:"status",label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.status?e("span",{staticStyle:{color:"#fffd02"}},[t._v(t._s(t.formatStatus(n.row)))]):1==n.row.status?e("span",{staticStyle:{color:"#0fff00"}},[t._v(t._s(t.formatStatus(n.row)))]):e("span",{staticStyle:{color:"#ff0007"}},[t._v(t._s(t.formatStatus(n.row)))])]}}])}),e("el-table-column",{attrs:{prop:"time",label:"时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v(" "+t._s(t.parseTime(n.row.time,"{y}-{m}-{d} {hh}:{mm}:{ss}"))+" ")]}}])})],1)],1)])},i=[],o=(e("7db0"),e("d3b7"),e("b0c0"),e("b775"));function r(){return Object(o["a"])({url:"/dataQuery/log/dayLog",method:"get"})}var c=e("4305"),u={name:"analysisLog",data:function(){return{timer:null,dayLog:[],cftData:[],statusOption:[{value:"0",label:"未解析"},{value:"1",label:"已解析"},{value:"2",label:"解析异常"}]}},destroyed:function(){clearInterval(this.timer),this.timer=null},mounted:function(){this.initInfo(),this.getAllWindTowerInfo(),this.timer=setInterval(this.initInfo,18e4)},methods:{initInfo:function(){var t=this;r().then((function(n){t.dayLog=n.rows}))},getAllWindTowerInfo:function(){var t=this;Object(c["d"])().then((function(n){t.cftData=n.rows}))},formatId:function(t){var n=this.cftData.find((function(n){return n.equipmentNo==t.equipmentId}));return void 0!=n?n.name:t.equipmentId},formatStatus:function(t){var n=this.statusOption.find((function(n){return n.value==t.status}));return void 0!=n?n.label:t.status}}},d=u,s=(e("bc43"),e("2877")),l=Object(s["a"])(d,a,i,!1,null,"7d89f008",null);n["default"]=l.exports},facc:function(t,n,e){}}]);