2023-07-26 17:29:34 +08:00
import { _ as se } from "./linesGL.99030c5a.js" ; import { m as K , g as te , p as ke , a as G , b as T , c as Re , d as Ve , z as Se , e as Be } from "./information.91fc7e1c.js" ; import { _ as W } from "./icon.d0cb5387.js" ; import { _ as Ie , r as l , D as ae , t as xe , X as We , d as v , o as V , c as x , k as d , m as f , e as o , w as u , P as J , Q as X , j as De , f as M , l as le , I as Fe , y as qe , a2 as Me , p as Qe , q as Le } from "./index.1974707a.js" ; import "./install.49294472.js" ; const Ue = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAO0SURBVHic7Zs7bttAEIZ/CTJdWIBpNwbCQr6BkUbHCOAitzBygCBlkAPkGikM5AZu1Ri+gVjQZUwDIkBQ4jKFOPSIWkoUX8vHfoAh2SZHi/l3Z2eGq9H7ehNBo5RJGAG/f/1UPY7B8u37D4yFXgdKEREwDoXqYQybUECvBNVsV4IWQSmhDkfqCQUwyQpH0+kU5+fnzY6oYnzfh+d5ye//zM94/fRFyViu3Wd8ev2793cdjlpAGAFjocORUoQAxmE0Uj2OQRNGI52iqkYXay1AF2stQGl25BoWXq7u1Xx4i1BarL1c3WshoDAccccPXQgl4YhWAEcmxNPNA55uHnov0LZYa1AEmQDEUFdEoynq8mKeKQDhGhaWF/NmBtQSDjbwqmR5MYc9zefcvNf1hUb2hFMEIIYkRO0NvCICDI24gVePcS1APmrLjqoUoO+bdS3ZkWtYla8AezrvrRBh1eGozly/r0JUGo6aKLb6KERl4ajJardvQlTWwLMbdkqfhBBRfCC4DK5h4TJwcBk4eDeso62JssxWi53PNgOn1s+rmzACJkKUe9BvBk7iiCWO94fKcustjl/UIYQY6XNHqmm8la3ZR5+2aAH6tEULqCQ7KgplOU1kVG0mjIBJk+FotlrsZzfxoWnXsGDnePrWN0qFo1OdJRWAYQYO7t4ed+qAIVA4HFGrOu1Yes+7qFnOJxHdMwvm+q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C8xHR0c4ODhQPKJ2CYIAvu9n3799 / RPv3 / zQMpb7xzN8 //3u2c//BeathiExGfGWY4J2ODAbAAdmA4gjrph1Y7E7MgCd7sierXF+fK3ls41CZ9vi/PiahQD0ZUfixI9eiCTCxFLsjmgHiMiEuDy5wuXJ1eAFslS7I5kAxGh3hEp3tJjflgpA2LM1FvNbJeMxhiTCVEV2tJjfYnF4V+3aitcNBhXF2ksEyP5mREJ0XqzVEWB0dNnKZgEq0lUru00BBh+su2hb2LN16ztgcXg3XCHaDsxd5vpDFaLVwKyi2BqkEG25I5XV7uCEaKttoToLGpQQSZTeENwEe7aG93QK7+kU9qtfe1sTTXH9Zf6zQ6fTz+ucJMK0aRfVC51sIhbY3x9qirtZdWpfNcq7qIwEPmM2AL7lxQDYHRlAsuOG4K6hLEdFRmUylqpDHcL1l8+zm036Qj2n0QnSxB29dLKkAgh4oYObh4tcHTAK0p3w8vMEalUXJ5beixV02eSTiFRwUa3hblZwN6usDSKKffNw8cyGPVv3u3aIt/Uq5nTC7tL2QUEMmkRZNVvuclLRRDvihMtsiWcWooi9o25g9kIHrr/MJoFexRVJk0KrVdZf8kInJ4hMVNEW2ROFdP1lfwVAw8BMK55WJH15
` ,s.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ke,scale:.5})})),n.getLayers().forEach(function(a){if(a instanceof ol.layer.Vector){let c=a.getSource().getFeatures()[0];c.get("type")==="0"&&c!==s&&(c.get("warning")==="0"?c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:G,scale:.5})})):c.get("warning")==="1"&&c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:T,scale:.5})})))}});const I=i.getElement().querySelector(".close-btn");I&&I.addEventListener("click",()=>{i.setPosition(void 0),n.getLayers().forEach(function(a){if(a instanceof ol.layer.Vector){let c=a.getSource().getFeatures()[0];c.get("type")==="0"&&(c.get("warning")==="0"?c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:G,scale:.5})})):c.get("warning")==="1"&&c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:T,scale:.5})})))}})})}})});var w=new ResizeObserver(function(r){r.forEach(function(b){var E=b.contentRect.width,y=b.contentRect.height;t.style.width=E+"px",t.style.height=y+"px",n.updateSize()})});w.observe(e)}function fe(){if(S.value=!S.value,S.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const he=()=>{P(),K({data:h.value,alertRange:k.value,flag:3}).then(e=>{D.value=e.data,_()})},P=()=>{for(const e in F.value)n.removeLayer(F.value[e]);F.value=[];for(const e in q.value)n.removeLayer(q.value[e]);q.value=[];for(const e in B.value)n.removeLayer(B.value[e]);B.value=[],Re({flag:3,data:h.value}).then(e=>{A.value=e.data;for(const t in A.value){const i=[parseFloat(A.value[t].msLongitude),parseFloat(A.value[t].msLatitude)],w=128,r=[];for(let R=0;R<w;R++){const s=2*Math.PI*R/w,C=ol.sphere.computeDestinationPoint(i,k.value,s);r.push(C)}const b=new ol.Feature({geometry:new ol.geom.Polygon([r])}),E=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgb(255,255,0)",width:2})});F.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[b]}),style:E}),A.value[t].warning!==" \u 65E0 \u 707E \u 5BB3"&&n.addLayer(F.value[t]);const y=new ol.geom.Point(i),m=new ol.Feature({geometry:y,id:A.value[t].msName,type:A.value[t].flag});m.setStyle(new ol.style.Style({image:new ol.style.Icon({src:de(A.value[t].warning),scale:.5})})),q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[m]})}),n.addLayer(q.value[t])}}),Ve({flag:3,alertRange:k.value,data:h.value,divisions:ve}).then(e=>{g.value=e.data;for(const t in g.value){const i=[parseFloat(g.value[t].latitude),parseFloat(g.value[t].longitude)],w=new ol.geom.Point(i),r=new ol.Feature({geometry:w,id:g.value[t].contacts,type:g.value[t].flag,warning:g.value[t].earlyWarning});g.value[t].earlyWarning==="0"?(r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:G,scale:.5})})),B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[r]})}),n.addLayer(B.value[t])):g.value[t].earlyWarning==="1"&&(r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:T,scale:.5})})),B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[r]})}),n.addLayer(B.value[t]))}})},we=()=>{P(),K({data:h.value,alertRange:k.value,flag:3}).then(e=>{D.value=e.data,_()})},be=()=>{Be(z.value).then(e=>{e.data.code=="OK"&&Me({message:" \u 53D1 \u 9001 \u 6210 \u 529F",type:"success"})})},Ee=e=>{z.value=e};return(e,t)=>{const i=v("el-date-picker"),w=v("el-radio"),r=v("el-radio-group"),b=v("el-option"),E=v("el-select"),y=v("el-button"),m=v("el-table-column"),R=v("el-table"),s=v("el-pagination"),C=v("el-tooltip"),Y=v("el-collapse-item"),I=v("el-collapse");return V(),x("div",ze,[He,d("div",Oe,[d("div",Pe,[f(" \u 76D1 \u 6D4B \u 65E5 \u 671F: \u 2003 "),o(i,{"popper-class":"date_poper",class:"m-2",modelValue:h.value,"onUpdate:modelValue":t[0]||(t[0]=a=>h.value=a),onChange:we,format:"YYYY \u 5E74 MM \u 6708 DD \u 65E5","value-format":"YYYY-MM-DD",type:"date",placeholder:" \u 9009 \u 62E9 \u 65E5 \u 671F"},null,8,["modelValue"])]),d("div",Ke,[Ge,d("div",Te,[d("div",Je,[f(" \u 9884 \u 8B66 \u 8303 \u 56F4 \u FF1A "),o(r,{onChange:t[1]||(t[1]=a=>he()),modelValue:k.value,"onUpdate