Agriculture-front-end/dist/assets/index.b764f551.js

20 lines
22 KiB
JavaScript
Raw Normal View History

import{_ as Be,a as qe}from"./zhankaiss.6870329f.js";import{m as $,s as Le,g as de,p as ze,a as ee,b as te,h as Pe,c as Je,j as Me,d as Qe,z as Ze,k as Fe,l as Oe}from"./information.eab73f60.js";import"./linesGL.76a64914.js";import{_ as Ke,r as o,I as ue,x as He,H as Te,a8 as z,d as m,o as R,c as N,l as n,n as g,e as l,w as s,O as je,A as ge,m as ae,V as le,W as oe,k as se,J as ne,f as V,N as Xe,q as $e,s as et}from"./index.9f28707e.js";import"./linkSeriesData.e74eae00.js";const tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQ3SURBVHic7ZxPattAFMY/K7ZMsUtUlxYakdg9QcjG296gkEXpGbrpAUqXpQcovUUphl6hi4JKCDlAQYE60C5qGazWli2pC3nMaCyNLWv0X79VrBeHx4zem/e+mUljuly5qMmUpu0CH96/y9qPyvL6zVtITh0HmeK4gGQ7WbtRbWwHdSRkjRcJ9SRkil2no+yxHaAZlo663S7a7Xa6HglmsVhgNpttPv9RLnB38jwTX3rGNU7uvmw9r9NRDrBdQHLqdJQpjgNIttvI2o+dfH38CpZ0L2s3EsF2G8UoUZ3GUdYuJEbumjW9M4TeGW49v5h8huz82/pdQ1bTci0xctesDUwNU1ndGlwHku+ZIauYyioUa5y2i8Jx3LWAlyfOJ6PNz3pniNuuPzL6Mw0DU4NijdivFpJcN2tBEwAAt91ypCFC7tIRIWwCCDcPLlP0Jllyk44m7TMsIaOJFXoLfa/vGLKKI9iYtE4BAGfm9wQ9TA7b5cgWaWK0VPxt9SDbJnoLHdM9042NJlaSnLB3yeJFQg7WhKezb77PfVODIfNTDqmMFOtnYn6lQW7XhF30Z1rWLggjtwKeYo19pSprG5jlmQRvTchBOqLRO0MoyzEUa4xnvz5uOuiprKJvaps0pHeGpZiMtYA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0/gl4IZmHPJrJEqAvBm/W1WHYz9PFnNgkRhOwvTlyk9CWRbCG/5UUAeulozFkmsDF3u110u92YXYqWnd0V7OyuJO0GQ0AQLEtmSDzIxiwAMggCkJKJOcsosKAMeqr8wvKE+Q89RE9/lW/XZQAAAABJRU5ErkJggg==",lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQrSURBVHic7Zy/b9NAFMe/DnEq0ggKYqksGBqWDqhi8R8ASiQYkDrxLxSJiQEJ/gAGkGBh4F9gQJVYkNI/AMkIVayAow5ESHRJUZImsWMz0IvO5x9N4rN99vkzJX6J9HSX997d991F+WtNXZRkShWujdcvXmbth7Q8ef4UFcW1s/ZDahTXRgVOOQmZ4tiooIyEbHHLScieMh0JgGOjGlaYG40G1tbWUvaIL5PJBIPBYP7+9uVveLD5KRNfDk928PH3Pd/zs8I8y8ClkjnOrKwJmZOXwvzo2jNcVAbnfzCP5KUwX1DE93FlHFusHbNe70Cvd3zPP/Qf49Rt+D6rqWZariWGIlo6MkZtaLWub3ArsD3PNNWEVuuiZzXTdpE/r
2024-05-30 09:20:30 +08:00
<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>${f.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u7ECF\u5EA6:</div><span>${f.lon}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u7EAC\u5EA6:</div><span>${f.lat}</span></div>
</div>
</div>
`;const _=d.getElement().querySelector(".close-btn");_&&_.addEventListener("click",()=>{d.setPosition(void 0)})}else if(L==="0"){for(const u in y.value)E===y.value[u].contacts&&(f.name=E,f.phone=y.value[u].phone,f.region=y.value[u].region);d.setPosition(r.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>${f.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u624B\u673A:</div><span>${f.phone}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u4F4D\u7F6E:</div><span>${f.region}</span></div>
</div>
</div>
`,r.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ze,scale:.5})})),i.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let v=u.getSource().getFeatures()[0];v.get("type")==="0"&&v!==r&&(v.get("warning")==="0"?v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})):v.get("warning")==="1"&&v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}});const _=d.getElement().querySelector(".close-btn");_&&_.addEventListener("click",()=>{d.setPosition(void 0),i.getLayers().forEach(function(u){if(u instanceof ol.layer.Vector){let v=u.getSource().getFeatures()[0];v.get("type")==="0"&&(v.get("warning")==="0"?v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})):v.get("warning")==="1"&&v.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})))}})})}})});var w=new ResizeObserver(function(c){c.forEach(function(S){var G=S.contentRect.width,A=S.contentRect.height;t.style.width=G+"px",t.style.height=A+"px",i.updateSize()})});w.observe(e)}function De(){if(C.value=!C.value,C.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 We=()=>{K(),$({data:U.value,alertRange:k.value,flag:4,divisions:D}).then(e=>{Y.value=e.data,Z()})},K=()=>{for(const e in B.value)i.removeLayer(B.value[e]);B.value=[];for(const e in q.value)i.removeLayer(q.value[e]);q.value=[];for(const e in I.value)i.removeLayer(I.value[e]);I.value=[],Pe({flag:4,data:U.value,divisions:D}).then(e=>{p.value=e.data;for(const t in p.value){const d=[parseFloat(p.value[t].msLongitude),parseFloat(p.value[t].msLatitude)],w=128,c=[];for(let W=0;W<w;W++){const r=2*Math.PI*W/w,E=ol.sphere.computeDestinationPoint(d,k.value,r);c.push(E)}const S=new ol.Feature({geometry:new ol.geom.Polygon([c])}),G=new ol.style.Style({stroke:new ol.style.Stroke({color:T[p.value[t].warning]&&T[p.value[t].warning].color,width:2})});B.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[S]}),style:G}),p.value[t].warning!=="\u65E0\u707E\u5BB3"&&i.addLayer(B.value[t]);const A=new ol.geom.Point(d),b=new ol.Feature({geometry:A,id:p.value[t].msName,type:p.value[t].flag});b.setStyle(new ol.style.Style({image:new ol.style.Icon({src:he(p.value[t].warning),scale:.5})})),q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[b]})}),i.addLayer(q.value[t])}}),Je({flag:4,alertRange:k.value,data:U.value,divisions:D}).then(e=>{y.value=e.data;for(const t in y.value){const d=[parseFloat(y.value[t].latitude),parseFloat(y.value[t].longitude)],w=new ol.geom.Point(d),c=new ol.Feature({geometry:w,id:y.value[t].contacts,type:y.value[t].flag,warning:y.value[t].earlyWarning});y.value[t].earlyWarning==="0"?(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:ee,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),i.addLayer(I.value[t])):y.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})),I.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),i.addLayer(I.value[t]))}})},Ce=()=>{K(),$({data:U.value,alertRange:k.value,flag:4,divisions:D}).then(e=>{Y.value=e.data,Z()})},Ie=()=>{h.value=!1,Oe(H.value).then(e=>{e.code=="200"?z({message:"\u9884\u8B66\u77ED\u4FE1\u5DF2\u6210\u529F\u53D1\u9001",type:"success"}):z.error("\u53D1\u9001\u5931\u8D25")})},_e=e=>{H.value=e},Ne=()=>{Me({flag:4,divisions:D}).then(e=>{e.data.length<1?z({message:"\u8FD11\u5468\u6682\u65E0\u9884\u8B66",type:"success"}):z({message:`\u8FD11\u5468${e.data.length}\u6B21\u9884\u8B66`,type:"warning"})})},Ve=()=>{let e=[];Qe({flag:4,divisions:D}).then(t=>{e=[],t.data.forEach(d=>{e.push(d.dataTime)}),re.value=e})};return(e,t)=>{const d=m("el-date-picker"),w=m("el-radio"),c=m("el-radio-group"),S=m("el-option"),G=m("el-select"),A=m("el-button"),b=m("el-table-column"),W=m("el-table"),r=m("el-pagination"),E=m("el-icon"),L=m("el-tooltip"),_=m("el-collapse-item"),u=m("el-collapse"),v=m("el-dialog");retu