Agriculture-front-end/dist/assets/index.1270aca6.js

20 lines
22 KiB
JavaScript
Raw Normal View History

import{_ as Ue,a as Qe}from"./zhankaiss.6870329f.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.eab73f60.js";import"./linesGL.76a64914.js";import"./moment.2cad4b18.js";import{_ as Je,r as s,I as ue,x as Te,H as Ke,a8 as Y,d as p,o as V,c as F,l as n,n as g,e as l,w as o,O as Xe,A as ge,m as ae,V as le,W as se,k as oe,J as ne,f as _,N as je,q as $e,s as et}from"./index.9f28707e.js";import"./linkSeriesData.e74eae00.js";const tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAO0SURBVHic7Zs7bttAEIZ/CTJdWIBpNwbCQr6BkUbHCOAitzBygCBlkAPkGikM5AZu1Ri+gVjQZUwDIkBQ4jKFOPSIWkoUX8vHfoAh2SZHi/l3Z2eGq9H7ehNBo5RJGAG/f/1UPY7B8u37D4yFXgdKEREwDoXqYQybUECvBNVsV4IWQSmhDkfqCQUwyQpH0+kU5+fnzY6oYnzfh+d5ye//zM94/fRFyViu3Wd8ev2793cdjlpAGAFjocORUoQAxmE0Uj2OQRNGI52iqkYXay1AF2stQGl25BoWXq7u1Xx4i1BarL1c3WshoDAccccPXQgl4YhWAEcmxNPNA55uHnov0LZYa1AEmQDEUFdEoynq8mKeKQDhGhaWF/NmBtQSDjbwqmR5MYc9zefcvNf1hUb2hFMEIIYkRO0NvCICDI24gVePcS1APmrLjqoUoO+bdS3ZkWtYla8AezrvrRBh1eGozly/r0JUGo6aKLb6KERl4ajJardvQlTWwLMbdkqfhBBRfCC4DK5h4TJwcBk4eDeso62JssxWi53PNgOn1s+rmzACJkKUe9BvBk7iiCWO94fKcustjl/UIYQY6XNHqmm8la3ZR5+2aAH6tEULqCQ7KgplOU1kVG0m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W3/CpwSMVqZIInz9/EX3OEbLh08fMbGSSPc4Ro2VRJggZhG0EkeYgHeCXhIWQT/sjgwgjjAtC8xHR0c4ODhQPKJ2CYIAvu9n3799/RPv3/zQMpb7xzN8//3u2c//BeathiExGfGWY4J2ODAbAAdmA4gjrph1Y7E7MgCd7sierXF+fK3ls41CZ9vi/PiahQD0ZUfixI9eiCTCxFLsjmgHiMiEuDy5wuXJ1eAFslS7I5kAxGh3hEp3tJjflgpA2LM1FvNbJeMxhiTCVEV2tJjfYnF4V+3aitcNBhXF2ksEyP5mREJ0XqzVEWB0dNnKZgEq0lUru00BBh+su2hb2LN16ztgcXg3XCHaDsxd5vpDFaLVwKyi2BqkEG25I5XV7uCEaKttoToLGpQQSZTeENwEe7aG93QK7+kU9qtfe1sTTXH9Zf6zQ6fTz+ucJMK0aRfVC51sIhbY3x9qirtZdWpfNcq7qIwEPmM2AL7lxQDYHRlAsuOG4K6hLEdFRmUylqpDHcL1l8+zm036Qj2n0QnSxB29dLKkAgh4oYObh4tcHTAK0p3w8vMEalUXJ5beixV02eSTiFRwUa3hblZwN6usDSKKffNw8cyGPVv3u3aIt/Uq5nTC7tL2QUEMmkRZ
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>${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 v=u.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 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 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 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(B.value=!B.value,B.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=()=>{J(),$({data:R.value,alertRange:S.value,flag:3,divisions:I}).then(e=>{q.value=e.data,P()})},J=()=>{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 D.value)r.removeLayer(D.value[e]);D.value=[],Ne({flag:3,data:R.value,divisions:I}).then(e=>{A.value=e.data;for(const t in A.value){const d=[parseFloat(A.value[t].msLongitude),parseFloat(A.value[t].msLatitude)],b=128,c=[];for(let x=0;x<b;x++){const i=2*Math.PI*x/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[A.value[t].warning]&&K[A.value[t].warning].color,width:2})});U.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[C]}),style:E}),A.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:A.value[t].msName,type:A.value[t].flag});w.setStyle(new ol.style.Style({image:new ol.style.Icon({src:he(A.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})})),D.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(D.value[t])):m.value[t].earlyWarning==="1"&&(c.setStyle(new ol.style.Style({image:new ol.style.Icon({src:te,scale:.5})})),D.value[t]=new ol.layer.Vector({source:new ol.source.Vector({features:[c]})}),r.addLayer(D.value[t]))}})},Be=()=>{J(),$({data:R.value,alertRange:S.value,flag:3,divisions:I}).then(e=>{q.value=e.data,P()})},De=()=>{h.value=!1,Oe(T.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=>{T.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"),x=p("el-table"),i=p("el-pagination"),k=p("el-icon"),L=p("el-tooltip"),W=p("el-collapse-item"),u=p("el-collapse"),v=p("el-dialog");retu