import{_ as oe}from"./linesGL.99030c5a.js";import{m as Q,g as te,p as Ie,a as z,b as B,c as Ee,d as _e,z as Ve,e as ke}from"./information.0f83a772.js";import{_ as T}from"./icon.d0cb5387.js";import{_ as Re,r as l,D as ae,t as xe,X as Te,d as v,o as _,c as x,k as d,m as f,e as n,w as u,P as X,Q as j,j as Ue,f as W,l as le,I as Ne,y as qe,a2 as We,p as Oe,q as Ye}from"./index.db81687b.js";import"./install.49294472.js";const De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMVSURBVHic7Zs9rptAEMfHloMLI5m4fBT2Daw0HCNSilwjB4hSRjlArpHCUo5BY+UGpuCVMZaMhLB3SYFB2GYNPO8ym2V+HfiDkYaZ+c8wjA6ncwYEKhOWAfz88R3bjsHy5es3GHOKA1R4BjBmHNuMYcM4UCRgk0cCOQEVRukIH8YBJqJ0ZNs2TKfTfi2STJIkEMdxefzX+QCvLx9RbFlEW3h5/X13ntKRBrAMYMwpHaHCOcCYZSNsOwYNy0YkUbHhGcCkrTrazTwIbK88Xu834KShItPac2vX8ujDKvYRLeoGNWsaQOpIA9Cbtchy8S6uCQ+bNZVU87iThrCMfS3qCwZo6ahaSCPLhejdcCMib9YUOiGy3LuUU5eCqk4ZGp0kahciy4U/7z+Vx04awnq/yT9ruOsjy4Vg5pXO+t8kZ1eUSdRgdn1n3zpFRPG9arSYHiW91oQmR+xmnvBzk1WUsgHeXKB0IssV3tmP7niTldNlgCf/j1exD8ujnDxe1BJTUaqOZDhCl/mUSpSoo2r+dk4hHNLwTTm9cODV/xnoEMYvy18yuJWWzxLYHgQ356pS1xSkpiOZDhARWS7sZmZJVqnLX33JyINhclVqsyZLDTVex7DuOS/Mkpywin1wTuFdtwzwtiipK8LzNDSuOLMMYMK5vAf9ThqCk14XzjbjijrmaWj0zKiA85HascXtHKgLge0ZV4TryCNBgRPaDuyaKEYZJkeEstX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I4MJiq6hOq1vJW6jSibHVtgaksRyoTIKNJ2N8qSi3qUDbSthGHUnc0VFe7sax77rWz1sY29GGReFfdMsDrVkmdCAuht4mXUba6jX438cCtCGeXcUUdi8SzemYk4Jnmjf7qHKgP1b1jWymVo6nSD+46sGtDJMHmFaFtbFGnCwJZTZe9bvtq0HYCT1aChHjX0TSisDkRTNcou658dJklyRIhS5wNFJrwTvEHb0O/aKrEP7BrXd8F+2IEIt5rmy0tU5y2UJ0EgNtG0HVW11ZQTlvIStVYUdox92EX7AsHNZamTAZaEsZUbtqgA8EGQAeCDUD7CTyiHYZ9KpsgTTCCm05bqJiSEgY8JEJQOTICsqgG0Ktjtv05ASxeNIGe6MeEA6fvtsBG284a0R2yqAbQKMxpmkKapgOHpJfleQ3L8xo7jP9ofJicMVohQ0B9ggGQJhgAjS0MgGcM7j7+eU9fWI7MP6mP+AH9yDrrAAAAAElFTkSuQmCC";const ne=O=>(Oe("data-v-69f8d8ab"),O=O(),Ye(),O),Fe={class:"center"},Le=ne(()=>d("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),Me={class:"rightWra"},Je={class:"farmlandHeader"},Pe={class:"rightTop"},Qe=ne(()=>d("div",{class:"title"},[d("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),ze={class:"farmlandDiv"},Be={class:"radioDiv"},Xe={class:"selectDiv"},je={class:"selectDiv",style:{"margin-top":"10px"}},Ke={class:"btws"},$e={key:0,src:oe,alt:""},et={key:0,class:"imgrotate",src:oe,alt:""},tt={class:"mt-4"},at={class:"tuli"},lt={__name:"index",setup(O){const h=l();l({name:"",value:""});let V=l(!1),se=window.localStorage.getItem("deptName");l("");let p=l([]),m=ae({lat:"",lan:"",name:""}),g=l([]);const U=l([]),I=l(5e3),L=l([]),N=l([]),q=l([]),k=l([]);let re={\u65E0\u9884\u8B66:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(234, 165, 93, 1)",disabled:!1}};const Y=l();function ie(){J()}function ce(){h.value=$().toJSON().substr(0,10),I.value=5e3,Z.value="",Y.value="",J()}const ue=[{label:"\u8F7B\u5EA6\u51BB\u5BB3",flag:1},{label:"\u4E2D\u5EA6\u51BB\u5BB3",flag:2},{label:"\u91CD\u5EA6\u51BB\u5BB3",flag:3}];ae({power:[{required:!0,message:"Please select Activity zone",trigger:"change"}],count:[{required:!0,message:"Please select Activity count",trigger:"change"}],date1:[{type:"date",required:!0,message:"Please pick a date",trigger:"change"}],date2:[{type:"date",required:!0,message:"Please pick a time",trigger:"change"}],type:[{type:"array",required:!0,message:"Please select at least one activity type",trigger:"change"}],resource:[{required:!0,message:"Please select activity resource",trigger:"change"}],desc:[{required:!0,message:"Please input activity form",trigger:"blur"}]});const D=l(1),M=l(6),K=l([]);function de(e){D.value=e,G()}function G(){const e=(D.value-1)*M.value,t=D.value*M.value;K.value=U.value.slice(e,t)}function ge(e){if(e==="\u8F7B\u5EA6\u5E72\u65F1")return De;if(e==="\u4E2D\u5EA6\u5E72\u65F1")return Ge;if(e==="\u4E25\u91CD\u5E72\u65F1")return He;if(e==="\u7279\u5927\u5E72\u65F1")return ganhan4;if(e==="\u65E0\u707E\u5BB3")return Ze}const $=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let s=l(null);const pe=()=>{H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84@huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),s.addLayer(H)},me=()=>{var e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84@huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});s.addLayer(e)};let H=l(null);xe(()=>{h.value=$().toJSON().substr(0,10),J(),ye(),P();let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}),Te(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),l([]);let ve=l([]);const ee=l([]),Z=l("");function J(){Q({data:h.value,alertRange:I.value,flag:2,msName:Z.value,warning:Y.value}).then(e=>{U.value=e.data,G()})}function Ae(){Ve().then(e=>{ee.value=e.data})}Ae();function ye(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");s=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),pe(),me();const i=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});s.on("moveend",function(){var r=s.getView().getZoom();r>=13?H.setVisible(!0):H.setVisible(!1)}),s.on("singleclick",function(r){l([]);const S=s.getEventPixel(r.originalEvent);var b=r.coordinate,y=b[0],A=b[1],E=s.getView();E.animate({center:[y,A],duration:1e3}),ve.value.forEach(o=>{layersDic[o]?QueryData(r,layersDic[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[o].name}/rest/maps/${layersDic[o].setOf}`,o):layersGbz[o]&&QueryData(r,layersGbz[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[o].name}/rest/maps/${layersGbz[o].setOf}`,o)}),s.forEachFeatureAtPixel(S,o=>{E.animate({center:[y,A],duration:1e3,zoom:13});const C=o.get("id"),F=o.get("type");if(s.addOverlay(i),F==="1"){for(const a in p.value)C===p.value[a].msName&&(m.name=C,m.lon=p.value[a].msLongitude,m.lat=p.value[a].msLatitude);i.setPosition(o.getGeometry().getCoordinates()),i.getElement().innerHTML=`