import{_ as ke,a as Ye}from"./zhankaiss.dd067ea4.js";import{m as K,g as se,p as Ne,a as H,b as X,c as xe,d as Le,e as _e,f as Be,z as qe,h as Ve}from"./information.3a53cfed.js";import"./linesGL.901ceb35.js";import{_ as Me,r as l,D as re,t as ze,C as Pe,Z as j,d as v,o as S,c as k,k as r,m as f,e as n,w as d,K as Je,x as ie,l as $,Q as ee,R as te,j as ae,f as _,I as Qe,p as Te,q as Ze}from"./index.42ab3fdc.js";import"./install.5b5161c6.js";const Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAA+CAYAAAA73nWBAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQ3SURBVHic7ZxPattAFMY/K7ZMsUtUlxYakdg9QcjG296gkEXpGbrpAUqXpQcovUUphl6hi4JKCDlAQYE60C5qGazWli2pC3nMaCyNLWv0X79VrBeHx4zem/e+mUljuly5qMmUpu0CH96/y9qPyvL6zVtITh0HmeK4gGQ7WbtRbWwHdSRkjRcJ9SRkil2no+yxHaAZlo663S7a7Xa6HglmsVhgNpttPv9RLnB38jwTX3rGNU7uvmw9r9NRDrBdQHLqdJQpjgNIttvI2o+dfH38CpZ0L2s3EsF2G8UoUZ3GUdYuJEbumjW9M4TeGW49v5h8huz82/pdQ1bTci0xctesDUwNU1ndGlwHku+ZIauYyioUa5y2i8Jx3LWAlyfOJ6PNz3pniNuuPzL6Mw0DU4NijdivFpJcN2tBEwAAt91ypCFC7tIRIWwCCDcPLlP0Jllyk44m7TMsIaOJFXoLfa/vGLKKI9iYtE4BAGfm9wQ9TA7b5cgWaWK0VPxt9SDbJnoLHdM9042NJlaSnLB3yeJFQg7WhKezb77PfVODIfNTDqmMFOtnYn6lQW7XhF30Z1rWLggjtwKeYo19pSprG5jlmQRvTchBOqLRO0MoyzEUa4xnvz5uOuiprKJvaps0pHeGpZiMtYAX74/wavYwmxHQFZPnbGk6ML3m7Hwy2uqQgySOouFJ2TEmQe8McfPgMrBuJ7aggSLfYW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class:"cesiumContainer",id:"cesiumContainer"},null,-1)),$e={class:"rightWra"},et={class:"farmlandHeader"},tt={class:"text"},at={key:0,class:"holiday"},lt={class:"rightTop"},ot=Q(()=>r("div",{class:"title"},[r("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),r("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),nt={class:"farmlandDiv"},st={class:"radioDiv"},rt={class:"selectDiv"},it={class:"selectDiv",style:{"margin-top":"10px"}},ct={class:"btws"},dt=Q(()=>r("img",{src:ke},null,-1)),ut=Q(()=>r("img",{src:Ye},null,-1)),gt={class:"mt-4"},pt={class:"tuli"},vt={__name:"index",setup(B){const G=l();l({name:"",value:""});let W=l(!1);l("");let g=l([]),m=re({lat:"",lan:"",name:""}),p=l([]);const Y=l([]),R=l(5e3),T=l([]),N=l([]),x=l([]),D=l([]);let Z={\u65E0\u9884\u8B66:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u8F7B\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u4E2D\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u70ED\u98CE:{color:"rgba(234, 165, 93, 1)",disabled:!1}};const q=l(),le=l([]),ce=({dayjs:e})=>le.value.includes(e.format("YYYY-MM-DD"));function de(){F()}let I=window.localStorage.getItem("deptName");function ue(){R.value=5e3,P.value="",q.value="",F(),J()}const ge=[{label:"\u8F7B\u5EA6\u5E72\u70ED\u98CE",flag:1},{label:"\u4E2D\u5EA6\u5E72\u70ED\u98CE",flag:2},{label:"\u91CD\u5EA6\u5E72\u70ED\u98CE",flag:3}],pe=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};re({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 V=l(1),O=l(6),oe=l([]);function ve(e){V.value=e,M()}function M(){const e=(V.value-1)*O.value,t=V.value*O.value;oe.value=Y.value.slice(e,t)}function me(e){if(e==="\u8F7B\u5EA6\u70ED\u5E72\u98CE")return Oe;if(e==="\u4E2D\u5EA6\u70ED\u5E72\u98CE")return Fe;if(e==="\u4E25\u91CD\u70ED\u5E72\u98CE")return Ke;if(e==="\u7279\u5927\u70ED\u5E72\u98CE")return ganhan4;if(e==="\u65E0\u707E\u5BB3")return He}const ye=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let s=l(null);const Ae=()=>{z=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}),s.addLayer(z)},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});s.addLayer(e)};let z=l(null);ze(()=>{G.value=ye().toJSON().substr(0,10),F(),We(),Ue(),be(),J();let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),Pe(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),l([]);let he=l([]);const ne=l([]),P=l("");function F(){K({data:G.value,alertRange:R.value,flag:4,msName:P.value,warning:q.value,divisions:I}).then(e=>{Y.value=e.data,M()})}function we(){qe({divisions:I}).then(e=>{ne.value=e.data})}we();function be(){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.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})]}),Ae(),fe();const i=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});s.on("moveend",function(){var c=s.getView().getZoom();c>=13?z.setVisible(!0):z.setVisible(!1)}),s.on("singleclick",function(c){l([]);const w=s.getEventPixel(c.originalEvent);var b=c.coordinate,A=b[0],y=b[1],U=s.getView();U.animate({center:[A,y],duration:1e3}),he.value.forEach(o=>{layersDic[o]?QueryData(c,layersDic[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[o].name}/rest/maps/${layersDic[o].setOf}`,o):layersGbz[o]&&QueryData(c,layersGbz[o].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[o].name}/rest/maps/${layersGbz[o].setOf}`,o)}),s.forEachFeatureAtPixel(w,o=>{U.animate({center:[A,y],duration:1e3,zoom:13});const E=o.get("id"),L=o.get("type");if(s.addOverlay(i),L==="1"){for(const u in g.value)E===g.value[u].msName&&(m.name=E,m.lon=g.value[u].msLongitude,m.lat=g.value[u].msLatitude);i.setPosition(o.getGeometry().getCoordinates()),i.getElement().innerHTML=`