2023-09-19 14:34:21 +08:00
import { _ as ke , a as Ye } from "./zhankaiss.dd067ea4.js" ; import { m as K , g as se , p as Ne , a as H , b as X , c as xe , d as Le , e as _e , f as Be , z as qe , h as Ve } from "./information.3a53cfed.js" ; import "./linesGL.901ceb35.js" ; import { _ as Me , r as l , D as re , t as ze , C as Pe , Z as j , d as v , o as S , c as k , k as r , m as f , e as n , w as d , K as Je , x as ie , l as $ , Q as ee , R as te , j as ae , f as _ , I as Qe , p as Te , q as Ze } from "./index.42ab3fdc.js" ; import "./install.5b5161c6.js" ; const Oe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQ3SURBVHic7ZxPattAFMY/K7ZMsUtUlxYakdg9QcjG296gkEXpGbrpAUqXpQcovUUphl6hi4JKCDlAQYE60C5qGazWli2pC3nMaCyNLWv0X79VrBeHx4zem/e+mUljuly5qMmUpu0CH96/y9qPyvL6zVtITh0HmeK4gGQ7WbtRbWwHdSRkjRcJ9SRkil2no+yxHaAZlo663S7a7Xa6HglmsVhgNpttPv9RLnB38jwTX3rGNU7uvmw9r9NRDrBdQHLqdJQpjgNIttvI2o+dfH38CpZ0L2s3EsF2G8UoUZ3GUdYuJEbumjW9M4TeGW49v5h8huz82/pdQ1bTci0xctesDUwNU1ndGlwHku+ZIauYyioUa5y2i8Jx3LWAlyfOJ6PNz3pniNuuPzL6Mw0DU4NijdivFpJcN2tBEwAAt91ypCFC7tIRIWwCCDcPLlP0Jllyk44m7TMsIaOJFXoLfa/vGLKKI9iYtE4BAGfm9wQ9TA7b5cgWaWK0VPxt9SDbJnoLHdM9042NJlaSnLB3yeJFQg7WhKezb77PfVODIfNTDqmMFOtnYn6lQW7XhF30Z1rWLggjtwKeYo19pSprG5jlmQRvTchBOqLRO0MoyzEUa4xnvz5uOuiprKJvaps0pHeGpZiMtYAX74/wavYwmxHQFZPnbGk6ML3m7Hwy2uqQg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nNgkRhOwvTlyk9CWRbCG/5UUAeulozFkmsDF3u110u92YXYqWnd0V7OyuJO0GQ0AQLEtmSDzIxiwAMggCkJKJOcsosKAMeqr8wvKE+Q89RE9/lW/XZQAAAABJRU5ErkJggg==" , Ke = " data : image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAAGEAAAA + CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQrSURBVHic7Zy / b9NAFMe / DnEq0ggKYqksGBqWDqhi8R8ASiQYkDrxLxSJiQEJ / gAGkGBh4F9gQJVYkNI / AMkIVayAow5ESHRJUZImsWMz0IvO5x9N4rN99vkzJX6J9HSX997d991F + WtNXZRkShWujdcvXmbth7Q8ef4UFcW1s / ZDahTXRgVOOQmZ4tiooIyEbHHLScieMh0JgGOjGlaYG40G1tbWUvaIL5PJBIPBYP7 + 9 uVveLD5KRNfDk928PH3Pd / zs8I8y8ClkjnOrKwJmZOXwvzo2jNcVAbnfzCP5KUwX1DE93FlHFusHbNe70Cvd3zPP / Qf49Rt + D6rqWZariWGIlo6MkZtaLWub3ArsD3PNNWEVuuiZzXTdpE / ro2qaOlov783f63XO9DXDzx2Y9iCMWpjv1 + A
2023-09-19 14:34:21 +08:00
` ,o.setStyle(new ol.style.Style({image:new ol.style.Icon({src:Ne,scale:.5})})),s.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let a=u.getSource().getFeatures()[0];a.get("type")==="0"&&a!==o&&(a.get("warning")==="0"?a.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})):a.get("warning")==="1"&&a.setStyle(new ol.style.Style({image:new ol.style.Icon({src:X,scale:.5})})))}});const C=i.getElement().querySelector(".close-btn");C&&C.addEventListener("click",()=>{i.setPosition(void 0),s.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let a=u.getSource().getFeatures()[0];a.get("type")==="0"&&(a.get("warning")==="0"?a.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})):a.get("warning")==="1"&&a.setStyle(new ol.style.Style({image:new ol.style.Icon({src:X,scale:.5})})))}})})}})});var h=new ResizeObserver(function(c){c.forEach(function(w){var b=w.contentRect.width,A=w.contentRect.height;t.style.width=b+"px",t.style.height=A+"px",s.updateSize()})});h.observe(e)}function Ee(){if(W.value=!W.value,W.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}}const Se=()=>{J(),K({data:G.value,alertRange:R.value,flag:4,divisions:I}).then(e=>{Y.value=e.data,M()})},J=()=>{for(const e in N.value)s.removeLayer(N.value[e]);N.value=[];for(const e in x.value)s.removeLayer(x.value[e]);x.value=[];for(const e in D.value)s.removeLayer(D.value[e]);D.value=[],xe({flag:4,data:G.value,divisions:I}).then(e=>{g.value=e.data;for(const t in g.value){const i=[parseFloat(g.value[t].msLongitude),parseFloat(g.value[t].msLatitude)],h=128,c=[];for(let U=0;U<h;U++){const o=2*Math.PI*U/h,E=ol.sphere.computeDestinationPoint(i,R.value,o);c.push(E)}const w=new ol.Feature({geometry:new ol.geom.Polygon([c])}),b=new ol.style.Style({stroke:new ol.style.Stroke({color:Z[g.value[t].warning]&&Z[g.value[t].warning].color,width:2})});N.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[w]}),style:b}),g.value[t].warning!==" \u 65E0 \u 707E \u 5BB3"&&s.addLayer(N.value[t]);const A=new ol.geom.Point(i),y=new ol.Feature({geometry:A,id:g.value[t].msName,type:g.value[t].flag});y.setStyle(new ol.style.Style({image:new ol.style.Icon({src:me(g.value[t].warning),scale:.5})})),x.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[y]})}),s.addLayer(x.value[t])}}),Le({flag:4,alertRange:R.value,data:G.value,divisions:I}).then(e=>{p.value=e.data;for(const t in p.value){const i=[parseFloat(p.value[t].latitude),parseFloat(p.value[t].longitude)],h=new ol.geom.Point(i),c=new ol.Feature({geometry:h,id:p.value[t].contacts,type:p.value[t].flag,warning:p.value[t].earlyWarning});p.value[t].earlyWarning==="0"?(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:H,scale:.5})})),D.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),s.addLayer(D.value[t])):p.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:X,scale:.5})})),D.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),s.addLayer(D.value[t]))}})},Ge=()=>{J(),K({data:G.value,alertRange:R.value,flag:4,divisions:I}).then(e=>{Y.value=e.data,M()})},Re=()=>{Ve(T.value).then(e=>{e.data.code=="200"&&j({message:" \u 53D1 \u 9001 \u 6210 \u 529F",type:"success"})})},Ie=e=>{T.value=e},Ue=()=>{_e({flag:4,divisions:I}).then(e=>{e.data.length<1?j({message:" \u 8FD11 \u 5468 \u 6682 \u 65E0 \u 9884 \u 8B66",type:"success"}):j({message: ` \u8FD11\u5468$ { e . data . length } \u6B21\u9884\u8B66 ` ,type:"warning"})})},We=()=>{let e=[];Be({flag:4,divisions:I}).then(t=>{e=[],t.data.forEach(i=>{e.push(i.dataTime)}),le.value=e})};return(e,t)=>{const i=v("el-date-picker"),h=v("el-radio"),c=v("el-radio-group"),w=v("el-option"),b=v("el-select"),A=v("el-button"),y=v("el-table-column"),U=v("el-table"),o=v("el-pagination"),E=v("el-icon"),L=v("el-tooltip"),C=v("el-collapse-item"),u=v("el-collapse");return S(),k("div",Xe,[je,r("div", $ e,[r("div",et,[f(" \u 76D1 \u 6D4B \u 65E5 \u 671F: \u 2003 "),n(i,{"pop