import{_ as xe,a as Ue}from"./zhankaiss.dd067ea4.js";import{m as B,g as oe,p as We,a as X,b as j,c as Ye,d as De,e as Ne,f as qe,z as Ge,h as Le}from"./information.cdff1427.js";import"./linesGL.901ceb35.js";import{_ as Oe,r as l,D as ie,t as He,C as Fe,Z as K,d as v,o as C,c as x,k as i,m as f,e as n,w as d,K as Me,x as re,l as $,Q as ee,R as te,j as ae,f as N,I as Ze,p as Pe,q as Qe}from"./index.57224d07.js";import"./install.5b5161c6.js";const ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMVSURBVHic7Zs9rptAEMfHloMLI5m4fBT2Daw0HCNSilwjB4hSRjlArpHCUo5BY+UGpuCVMZaMhLB3SYFB2GYNPO8ym2V+HfiDkYaZ+c8wjA6ncwYEKhOWAfz88R3bjsHy5es3GHOKA1R4BjBmHNuMYcM4UCRgk0cCOQEVRukIH8YBJqJ0ZNs2TKfTfi2STJIkEMdxefzX+QCvLx9RbFlEW3h5/X13ntKRBrAMYMwpHaHCOcCYZSNsOwYNy0YkUbHhGcCkrTrazTwIbK88Xu834KShItPac2vX8ujDKvYRLeoGNWsaQOpIA9Cbtchy8S6uCQ+bNZVU87iThrCMfS3qCwZo6ahaSCPLhejdcCMib9YUOiGy3LuUU5eCqk4ZGp0kahciy4U/7z+Vx04awnq/yT9ruOsjy4Vg5pXO+t8kZ1eUSdRgdn1n3zpFRPG9arSYHiW91oQmR+xmnvBzk1WUsgHeXKB0IssV3tmP7niTldNlgCf/j1exD8ujnDxe1BJTUaqOZDhCl/mUSpSoo2r+dk4hHNLwTTm9cODV/xnoEMYvy18yuJWWzxLYHgQ356pS1xSkpiOZDhARWS7sZmZJVqnLX33JyINhclVqsyZLDTVex7DuOS/Mkpywin1wTuFdtwzwtiipK8LzNDSuOLMMYMK5vAf9ThqCk14XzjbjijrmaWj0zKiA85HascXtHKgLge0ZV4TryCN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XL8XiQdu4r2qposElt9rY0I4MJiq6hOq1vJW6jSibHVtgaksRyoTIKNJ2N8qSi3qUDbSthGHUnc0VFe7sax77rWz1sY29GGReFfdMsDrVkmdCAuht4mXUba6jX438cCtCGeXcUUdi8SzemYk4Jnmjf7qHKgP1b1jWymVo6nSD+46sGtDJMHmFaFtbFGnCwJZTZe9bvtq0HYCT1aChHjX0TSisDkRTNcou658dJklyRIhS5wNFJrwTvEHb0O/aKrEP7BrXd8F+2IEIt5rmy0tU5y2UJ0EgNtG0HVW11ZQTlvIStVYUdox92EX7AsHNZamTAZaEsZUbtqgA8EGQAeCDUD7CTyiHYZ9KpsgTTCCm05bqJiSEgY8JEJQOTICsqgG0Ktjtv05ASxeNIGe6MeEA6fvtsBG284a0R2yqAbQKMxpmkKapgOHpJfleQ3L8xo7jP9ofJicMVohQ0B9ggGQJhgAjS0MgGcM7j7+eU9fWI7MP6mP+AH9yDrrAAAAAElFTkSuQmCC";const Z=q=>(Pe("data-v-b87a6d11"),q=q(),Qe(),q),je={class:"center"},Ke=Z(()=>i("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),$e={class:"rightWra"},et={class:"farmlandHeader"},tt={class:"text"},at={key:0,class:"holiday"},lt={class:"rightTop"},st=Z(()=>i("div",{class:"title"},[i("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),i("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),nt={class:"farmlandDiv"},ot={class:"radioDiv"},it={class:"selectDiv"},rt={class:"selectDiv",style:{"margin-top":"10px"}},ct={class:"btws"},dt=Z(()=>i("img",{src:xe},null,-1)),ut=Z(()=>i("img",{src:Ue},null,-1)),gt={class:"mt-4"},pt={class:"tuli"},vt={__name:"index",setup(q){const I=l();l({name:"",value:""});let R=l(!1),E=window.localStorage.getItem("deptName");l("");let g=l([]),m=ie({lat:"",lan:"",name:""}),p=l([]);const U=l([]),_=l(5e3),P=l([]),W=l([]),Y=l([]),T=l([]);let Q={\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 G=l(),le=l([]),ce=({dayjs:e})=>le.value.includes(e.format("YYYY-MM-DD"));function de(){J()}const ue=e=>{const t=new Date;return t.setHours(0,0,0,0),e.getTime()>t.getTime()?{disabled:!0,style:{color:"red",textDecoration:"line-through"}}:!1};function ge(){_.value=5e3,F.value="",G.value="",J(),M()}const pe=[{label:"\u8F7B\u5EA6\u51BB\u5BB3",flag:1},{label:"\u4E2D\u5EA6\u51BB\u5BB3",flag:2},{label:"\u91CD\u5EA6\u51BB\u5BB3",flag:3}];ie({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 L=l(1),z=l(6),se=l([]);function ve(e){L.value=e,O()}function O(){const e=(L.value-1)*z.value,t=L.value*z.value;se.value=U.value.slice(e,t)}function me(e){if(e==="\u8F7B\u5EA6\u51BB\u5BB3")return ze;if(e==="\u4E2D\u5EA6\u51BB\u5BB3")return Je;if(e==="\u4E25\u91CD\u51BB\u5BB3")return Be;if(e==="\u7279\u5927\u51BB\u5BB3")return ganhan4;if(e==="\u65E0\u707E\u5BB3")return Xe}const Ae=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let o=l(null);const ye=()=>{H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),o.addLayer(H)},fe=()=>{var e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});o.addLayer(e)};let H=l(null);He(()=>{I.value=Ae().toJSON().substr(0,10),J(),Re(),Ve(),Se(),M();let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),Fe(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),l([]);let he=l([]);const ne=l([]),F=l("");function J(){B({data:I.value,alertRange:_.value,flag:2,msName:F.value,warning:G.value,divisions:E}).then(e=>{U.value=e.data,O()})}function we(){Ge({divisions:E}).then(e=>{ne.value=e.data})}we();function Se(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");o=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.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),ye(),fe();const r=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});o.on("moveend",function(){var c=o.getView().getZoom();c>=13?H.setVisible(!0):H.setVisible(!1)}),o.on("singleclick",function(c){l([]);const w=o.getEventPixel(c.originalEvent);var S=c.coordinate,y=S[0],A=S[1],V=o.getView();V.animate({center:[y,A],duration:1e3}),he.value.forEach(s=>{layersDic[s]?QueryData(c,layersDic[s].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[s].name}/rest/maps/${layersDic[s].setOf}`,s):layersGbz[s]&&QueryData(c,layersGbz[s].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[s].name}/rest/maps/${layersGbz[s].setOf}`,s)}),o.forEachFeatureAtPixel(w,s=>{V.animate({center:[y,A],duration:1e3,zoom:13});const b=s.get("id"),D=s.get("type");if(o.addOverlay(r),D==="1"){for(const u in g.value)b===g.value[u].msName&&(m.name=b,m.lon=g.value[u].msLongitude,m.lat=g.value[u].msLatitude);r.setPosition(s.getGeometry().getCoordinates()),r.getElement().innerHTML=`