Agriculture-front-end/dist/assets/index.9a7e4ec6.js

20 lines
20 KiB
JavaScript
Raw Normal View History

import{_ as qe,a as Ge}from"./zhankaiss.6870329f.js";import{m as $,s as He,g as ue,p as Fe,a as ee,b as te,h as Oe,c as Ze,j as Pe,d as Le,k as Me,z as Je,l as ze}from"./information.eab73f60.js";import"./linesGL.76a64914.js";import{_ as Qe,r as s,I as de,x as Be,H as Xe,a8 as F,d as m,o as I,c as W,l as n,n as g,e as l,w as o,O as je,A as ge,m as ae,V as le,W as se,k as oe,J as ne,f as D,N as Ke,q as $e,s as et}from"./index.9f28707e.js";import"./linkSeriesData.e74eae00.js";const tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMVSURBVHic7Zs9rptAEMfHloMLI5m4fBT2Daw0HCNSilwjB4hSRjlArpHCUo5BY+UGpuCVMZaMhLB3SYFB2GYNPO8ym2V+HfiDkYaZ+c8wjA6ncwYEKhOWAfz88R3bjsHy5es3GHOKA1R4BjBmHNuMYcM4UCRgk0cCOQEVRukIH8YBJqJ0ZNs2TKfTfi2STJIkEMdxefzX+QCvLx9RbFlEW3h5/X13ntKRBrAMYMwpHaHCOcCYZSNsOwYNy0YkUbHhGcCkrTrazTwIbK88Xu834KShItPac2vX8ujDKvYRLeoGNWsaQOpIA9Cbtchy8S6uCQ+bNZVU87iThrCMfS3qCwZo6ahaSCPLhejdcCMib9YUOiGy3LuUU5eCqk4ZGp0kahciy4U/7z+Vx04awnq/yT9ruOsjy4Vg5pXO+t8kZ1eUSdRgdn1n3zpFRPG9arSYHiW91oQmR+xmnvBzk1WUsgHeXKB0IssV3tmP7niTldNlgCf/j1exD8ujnDxe1BJTUaqOZDhCl/mUSpSoo2r+dk4hHNLwTTm9cODV/xnoEMYvy18yuJWWzxLYHgQ356pS1xSkpiOZDhARWS7sZmZJVqnLX33JyINhclVqsyZLDTVex7DuOS/Mkpywin1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gfnxWTU8TWDyedTRxUW9RbC3v5awR1zqRb3VtQaowy0xAGW5vC95gpfQc2pE5T9DVRrqvHrWcRxsybQtZ3ZAp59GGTNvCP8whiCfCfv85o0QkwsFxbJ84cwZdmS7qWTivL1Idu0J4rOPYbs/oCeUuatEHaoI3XNsnwiIu5agr9bh1DbtbpKXN6hGhy0XNU1bTy/a3wkVV9TxBhB/OSs29KovC6rLEFVnZojayzsOZskRY1xHlcFR4RwDnGp5OqtI7v25dX+4WmQWS/tbmJECicLXFPR6PqNW1Foyl8aIRYd0suAnJCWfd0XK3uKw7asmkrBQu0cpuQqvKzQ3oFVoTwF6LSgC9qWMEWGtRiQvKXVSiBvc81JHhkhJAb+oYAZUjA1DlohL1aeSi+od5u+0FVVA5MgCarBkA/cuLASQnEmZsKoU5iiKIokhzSGrZ7Kew2U+xw7im6vEmYzRCtEDCbABkWxiAzldoCTEOZ+DwnwP6w3Jk/gEJuNpNUi+YCwAAAABJRU5ErkJggg==",st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAL7SURBVHic7Zy/ittAE
2024-05-30 09:20:30 +08:00
<div class="info-window">
<div class="close-btn" ><span>\u7AD9\u70B9\u4FE1\u606F</span><img src="${ue}" 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>${A.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u7ECF\u5EA6:</div><span>${A.lon}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u7EAC\u5EA6:</div><span>${A.lat}</span></div>
</div>
</div>
`;const T=u.getElement().querySelector(".close-btn");T&&T.addEventListener("click",()=>{u.setPosition(void 0)})}else if(H==="0"){for(const d in y.value)_===y.value[d].contacts&&(A.name=_,A.phone=y.value[d].phone,A.region=y.value[d].region);u.setPosition(i.getGeometry().getCoordinates()),u.getElement().innerHTML=`
2024-05-30 09:20:30 +08:00
<div class="info-window" >
<div class="close-btn" ><span>\u79CD\u7CAE\u5927\u6237\u4FE1\u606F</span><img src="${ue}" 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>${A.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u624B\u673A:</div><span>${A.phone}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">\u4F4D\u7F6E:</div><span>${A.region}</span></div>
</div>
</div>
`,i.setStyle(new ol.style.Style({image:new ol.style.Icon({src:Fe,scale:.5})})),r.getLayers().forEach(function(d){if(d instanceof ol.layer.Vector){let v=d.getSource().getFeatures()[0];v.get("type")==="0"&&v!==i&&(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 T=u.getElement().querySelector(".close-btn");T&&T.addEventListener("click",()=>{u.setPosition(void 0),r.getLayers().forEach(function(d){if(d instanceof ol.layer.Vector){let v=d.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 C=S.contentRect.width,f=S.contentRect.height;t.style.width=C+"px",t.style.height=f+"px",r.updateSize()})});w.observe(e)}function ke(){if(R.value=!R.value,R.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 xe=()=>{Q(),$({data:V.value,alertRange:k.value,flag:2,divisions:E}).then(e=>{N.value=e.data,M()})},Q=()=>{for(const e in q.value)r.removeLayer(q.value[e]);q.value=[];for(const e in G.value)r.removeLayer(G.value[e]);G.value=[];for(const e in U.value)r.removeLayer(U.value[e]);U.value=[],Oe({flag:2,data:V.value,divisions:E}).then(e=>{p.value=e.data;for(const t in p.value){const u=[parseFloat(p.value[t].msLongitude),parseFloat(p.value[t].msLatitude)],w=128,c=[];for(let x=0;x<w;x++){const i=2*Math.PI*x/w,_=ol.sphere.computeDestinationPoint(u,k.value,i);c.push(_)}const S=new ol.Feature({geometry:new ol.geom.Polygon([c])}),C=new ol.style.Style({stroke:new ol.style.Stroke({color:X[p.value[t].warning]&&X[p.value[t].warning].color,width:2})});q.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[S]}),style:C}),p.value[t].warning!=="\u65E0\u707E\u5BB3"&&r.addLayer(q.value[t]);const f=new ol.geom.Point(u),b=new ol.Feature({geometry:f,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})})),G.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[b]})}),r.addLayer(G.value[t])}}),Ze({flag:2,alertRange:k.value,data:V.value,divisions:E}).then(e=>{y.value=e.data;for(const t in y.value){const u=[parseFloat(y.value[t].latitude),parseFloat(y.value[t].longitude)],w=new ol.geom.Point(u),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})})),U.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(U.value[t])):y.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})),U.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(U.value[t]))}})},Re=()=>{Q(),$({data:V.value,alertRange:k.value,flag:2,divisions:E}).then(e=>{N.value=e.data,M()})},Ue=()=>{h.value=!1,ze(B.value).then(e=>{e.code=="200"?F({message:"\u9884\u8B66\u77ED\u4FE1\u5DF2\u6210\u529F\u53D1\u9001",type:"success"}):F.error("\u53D1\u9001\u5931\u8D25")})},Te=e=>{B.value=e},We=()=>{Pe({flag:2,divisions:E}).then(e=>{e.data.length<1?F({message:"\u8FD11\u5468\u6682\u65E0\u9884\u8B66",type:"success"}):F({message:`\u8FD11\u5468${e.data.length}\u6B21\u9884\u8B66`,type:"warning"})})},De=()=>{let e=[];Le({flag:2,divisions:E}).then(t=>{e=[],t.data.forEach(u=>{e.push(u.dataTime)}),ie.value=e})};return(e,t)=>{const u=m("el-date-picker"),w=m("el-radio"),c=m("el-radio-group"),S=m("el-option"),C=m("el-select"),f=m("el-button"),b=m("el-table-column"),x=m("el-table"),i=m("el-pagination"),_=m("el-icon"),H=m("el-tooltip"),T=m("el-collapse-item"),d=m("el-collapse"),v=m("el-dialog");retu