20 lines
22 KiB
JavaScript
20 lines
22 KiB
JavaScript
|
import{_ as Ue,a as Qe}from"./zhankaiss.dd067ea4.js";import{m as $,s as Le,g as de,p as Ye,a as ee,b as te,h as Ne,c as Ze,j as ze,d as He,z as Pe,k as Ge,l as Oe}from"./information.ef765d82.js";import"./linesGL.ef5bef0f.js";import"./moment.9709ab41.js";import{_ as Te,r as s,G as ue,t as Je,F as Ke,a2 as Y,d as p,o as V,c as F,k as n,m as g,e as l,w as o,N as Xe,y as ge,l as ae,U as le,V as se,j as oe,H as ne,f as _,M as je,p as $e,q as et}from"./index.9c864c60.js";import"./linkSeriesData.77e8a68a.js";const tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAO0SURBVHic7Zs7bttAEIZ/CTJdWIBpNwbCQr6BkUbHCOAitzBygCBlkAPkGikM5AZu1Ri+gVjQZUwDIkBQ4jKFOPSIWkoUX8vHfoAh2SZHi/l3Z2eGq9H7ehNBo5RJGAG/f/1UPY7B8u37D4yFXgdKEREwDoXqYQybUECvBNVsV4IWQSmhDkfqCQUwyQpH0+kU5+fnzY6oYnzfh+d5ye//zM94/fRFyViu3Wd8ev2793cdjlpAGAFjocORUoQAxmE0Uj2OQRNGI52iqkYXay1AF2stQGl25BoWXq7u1Xx4i1BarL1c3WshoDAccccPXQgl4YhWAEcmxNPNA55uHnov0LZYa1AEmQDEUFdEoynq8mKeKQDhGhaWF/NmBtQSDjbwqmR5MYc9zefcvNf1hUb2hFMEIIYkRO0NvCICDI24gVePcS1APmrLjqoUoO+bdS3ZkWtYla8AezrvrRBh1eGozly/r0JUGo6aKLb6KERl4ajJardvQlTWwLMbdkqfhBBRfCC4DK5h4TJwcBk4eDeso62JssxWi53PNgOn1s+rmzACJkKUe9BvBk7iiCWO94fKcustjl/UIYQY6XNHqmm8la3ZR5+2aAH6tEULqCQ7KgplOU1kVG0mjIBJk+Fotlrs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IInz9/EX3OEbLh08fMbGSSPc4Ro2VRJggZhG0EkeYgHeCXhIWQT/sjgwgjjAtC8xHR0c4ODhQPKJ2CYIAvu9n3799/RPv3/zQMpb7xzN8//3u2c//BeathiExGfGWY4J2ODAbAAdmA4gjrph1Y7E7MgCd7sierXF+fK3ls41CZ9vi/PiahQD0ZUfixI9eiCTCxFLsjmgHiMiEuDy5wuXJ1eAFslS7I5kAxGh3hEp3tJjflgpA2LM1FvNbJeMxhiTCVEV2tJjfYnF4V+3aitcNBhXF2ksEyP5mREJ0XqzVEWB0dNnKZgEq0lUru00BBh+su2hb2LN16ztgcXg3XCHaDsxd5vpDFaLVwKyi2BqkEG25I5XV7uCEaKttoToLGpQQSZTeENwEe7aG93QK7+kU9qtfe1sTTXH9Zf6zQ6fTz+ucJMK0aRfVC51sIhbY3x9qirtZdWpfNcq7qIwEPmM2AL7lxQDYHRlAsuOG4K6hLEdFRmUylqpDHcL1l8+zm036Qj2n0QnSxB29dLKkAgh4oYObh4tcHTAK0p3w8vMEalUXJ5beixV02eSTiFRwUa3hblZwN6usDSKKffNw8cyGPVv3u3aIt/Uq5nTC7tL2QUEMmkRZ
|
||
|
<div class="info-window">
|
||
|
<div class="close-btn" ><span>\u7AD9\u70B9\u4FE1\u606F</span><img src="${de}" alt=""/> </div>
|
||
|
<div class="content" style="color:white;font-size: 16px">
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u540D\u79F0:</div><span>${y.name}</span></div>
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u7ECF\u5EA6:</div><span>${y.lon}</span></div>
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u7EAC\u5EA6:</div><span>${y.lat}</span></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
`;const W=d.getElement().querySelector(".close-btn");W&&W.addEventListener("click",()=>{d.setPosition(void 0)})}else if(L==="0"){for(const u in m.value)k===m.value[u].contacts&&(y.name=k,y.phone=m.value[u].phone,y.region=m.value[u].region);d.setPosition(i.getGeometry().getCoordinates()),d.getElement().innerHTML=`
|
||
|
<div class="info-window" >
|
||
|
<div class="close-btn" ><span>\u79CD\u7CAE\u5927\u6237\u4FE1\u606F</span><img src="${de}" alt=""/> </div>
|
||
|
<div class="content" style="color:white;font-size: 16px">
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u59D3\u540D:</div><span>${y.name}</span></div>
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u624B\u673A:</div><span>${y.phone}</span></div>
|
||
|
<div class="line" style="margin-top: 10px"><div class="label">\u4F4D\u7F6E:</div><span>${y.region}</span></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
`,i.setStyle(new ol.style.Style({image:new ol.style.Icon({src:Ye,scale:.5})})),r.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let A=u.getSource().getFeatures()[0];A.get("type")==="0"&&A!==i&&(A.get("warning")==="0"?A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})):A.get("warning")==="1"&&A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}});const W=d.getElement().querySelector(".close-btn");W&&W.addEventListener("click",()=>{d.setPosition(void 0),r.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:ee,scale:.5})})):A.get("warning")==="1"&&A.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}})})}})});var b=new ResizeObserver(function(c){c.forEach(function(C){var E=C.contentRect.width,f=C.contentRect.height;t.style.width=E+"px",t.style.height=f+"px",r.updateSize()})});b.observe(e)}function Ie(){if(D.value=!D.value,D.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 Be=()=>{T(),$({data:R.value,alertRange:S.value,flag:3,divisions:I}).then(e=>{M.value=e.data,P()})},T=()=>{for(const e in U.value)r.removeLayer(U.value[e]);U.value=[];for(const e in Q.value)r.removeLayer(Q.value[e]);Q.value=[];for(const e in x.value)r.removeLayer(x.value[e]);x.value=[],Ne({flag:3,data:R.value,divisions:I}).then(e=>{v.value=e.data;for(const t in v.value){const d=[parseFloat(v.value[t].msLongitude),parseFloat(v.value[t].msLatitude)],b=128,c=[];for(let B=0;B<b;B++){const i=2*Math.PI*B/b,k=ol.sphere.computeDestinationPoint(d,S.value,i);c.push(k)}const C=new ol.Feature({geometry:new ol.geom.Polygon([c])}),E=new ol.style.Style({stroke:new ol.style.Stroke({color:K[v.value[t].warning]&&K[v.value[t].warning].color,width:2})});U.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[C]}),style:E}),v.value[t].warning!=="\u65E0\u707E\u5BB3"&&r.addLayer(U.value[t]);const f=new ol.geom.Point(d),w=new ol.Feature({geometry:f,id:v.value[t].msName,type:v.value[t].flag});w.setStyle(new ol.style.Style({image:new ol.style.Icon({src:he(v.value[t].warning),scale:.5})})),Q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[w]})}),r.addLayer(Q.value[t])}}),Ze({flag:3,alertRange:S.value,data:R.value,divisions:I}).then(e=>{m.value=e.data;for(const t in m.value){const d=[parseFloat(m.value[t].latitude),parseFloat(m.value[t].longitude)],b=new ol.geom.Point(d),c=new ol.Feature({geometry:b,id:m.value[t].contacts,type:m.value[t].flag,warning:m.value[t].earlyWarning});m.value[t].earlyWarning==="0"?(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})),x.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(x.value[t])):m.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})),x.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(x.value[t]))}})},De=()=>{T(),$({data:R.value,alertRange:S.value,flag:3,divisions:I}).then(e=>{M.value=e.data,P()})},xe=()=>{h.value=!1,Oe(J.value).then(e=>{e.code=="200"?Y({message:"\u9884\u8B66\u77ED\u4FE1\u5DF2\u6210\u529F\u53D1\u9001",type:"success"}):Y.error("\u53D1\u9001\u5931\u8D25")})},We=e=>{J.value=e},Fe=()=>{ze({flag:3,divisions:I}).then(e=>{e.data.length<1?Y({message:"\u8FD11\u5468\u6682\u65E0\u9884\u8B66",type:"success"}):Y({message:`\u8FD11\u5468${e.data.length}\u6B21\u9884\u8B66`,type:"warning"})})},_e=()=>{let e=[];He({flag:3,divisions:I}).then(t=>{e=[],t.data.forEach(d=>{e.push(d.dataTime)}),ie.value=e})};return(e,t)=>{const d=p("el-date-picker"),b=p("el-radio"),c=p("el-radio-group"),C=p("el-option"),E=p("el-select"),f=p("el-button"),w=p("el-table-column"),B=p("el-table"),i=p("el-pagination"),k=p("el-icon"),L=p("el-tooltip"),W=p("el-collapse-item"),u=p("el-collapse"),A=p("el-dialog");retu
|