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+2aAH6tEULqCQ7KgplOU1kVG0mjIBJk+FotlrsZzfxoWnXsGDnePrWN0qFo1OdJRWAYQYO7t4ed+qAIV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B0lYYd3BSyNFiXFsBgIJPW5CjyHH01WX7SMB+OKHfmWYun9lZbQ1rLgBQICdw+IylvaNkuMnisKSoAHLbqhMaCmd5TtaSYYOEoFlLM3e4fT3NYaZYz8UAsLOVtoLqvpOqykjMwP/V0D2SICme0zUnrdI6ZmsZhLie3tZWiNw5gSfmtGTKydKIZbFjslX7xFwkJyR7Au5EIF4tpllPMZ2uTTaSdgDswhy3dUywOlD4ZM2UTNOOHQ8lVN5jcCHSoO66CZT2QDAXg8/WPJWMyRa9v0lVEVFKicopMzTUPcxkRQ51PGArgvxHv0s0tJysuUbJ5x25R3KCBxzsE6IoQhRFlodULb3nAXrPA9fD2ONgn6CUrBAbyGfgeYDkBA+Qj9rxAL1ROPn4+718YLlj/gHgcPHpWCtfPgAAAABJRU5ErkJggg==";const N=Z=>($e("data-v-8a8c1fcd"),Z=Z(),et(),Z),nt={class:"center"},it=N(()=>n("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),rt={class:"rightWra"},ct={class:"farmlandHeader"},dt={class:"text"},ut={key:0,class:"holiday"},gt={class:"rightTop"},At=N(()=>n("div",{class:"title"},[n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),n("span",null,"\u9884\u8B66\u4FE1\u606F\u53D1\u5E03")],-1)),vt={class:"farmlandDiv"},pt={class:"radioDiv"},mt={class:"radioDiv"},yt={class:"selectDiv"},ft={class:"selectDiv",style:{"margin-top":"10px"}},ht={class:"btws"},bt=N(()=>n("img",{src:Ue},null,-1)),wt=N(()=>n("img",{src:Qe},null,-1)),Ct={class:"mt-4"},Et={class:"tuli"},kt=N(()=>n("span",null," \u662F\u5426\u786E\u8BA4\u53D1\u9001\u9884\u8B66\u77ED\u4FE1? ",-1)),Vt={class:"dialog-footer"},Rt={__name:"index",setup(Z){const R=s();s({name:"",value:""});let B=s(!1);s("");let h=s(!1),A=s([]),y=ue({lat:"",lan:"",name:""}),m=s([]);const q=s([]),S=s(5e3),M=s(),T=s([]),U=s([]),Q=s([]),D=s([]);let K={\u65E0\u9884\u8B66:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u84DD\u8272\u9884\u8B66:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u9EC4\u8272\u9884\u8B66:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u6A59\u8272\u9884\u8B66:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u7EA2\u8272\u9884\u8B66:{color:"rgba(215, 25, 28, 1)",disabled:!1}};const z=s(),ie=s([]),Ae=({dayjs:e})=>ie.value.includes(e.format("YYYY-MM-DD"));function ve(){j()}function pe(){S.value=5e3,O.value="",z.value="",j(),J()}const me=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},ye=[{label:"\u84DD\u8272\u9884\u8B66",flag:1},{label:"\u9EC4\u8272\u9884\u8B66",flag:2},{label:"\u6A59\u8272\u9884\u8B66",flag:3},{label:"\u7EA2\u8272\u9884\u8B66",flag:4}];ue({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 H=s(1),X=s(6),re=s([]);function fe(e){H.value=e,P()}function P(){const e=(H.value-1)*X.value,t=H.value*X.value;re.value=q.value.slice(e,t)}function he(e){if(e==="\u84DD\u8272\u9884\u8B66")return tt;if(e==="\u9EC4\u8272\u9884\u8B66")return at;if(e==="\u6A59\u8272\u9884\u8B66")return lt;if(e==="\u7EA2\u8272\u9884\u8B66")return st;if(e==="\u65E0\u707E\u5BB3")return ot}const be=()=>{let e=new Date;return e.setDate(e.getDate()-1),e};let r=s(null);const we=()=>{G=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}),r.addLayer(G)},Ce=()=>{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});r.addLayer(e)};let G=s(null);Te(()=>{Ve(),R.value=be().toJSON().substr(0,10),j(),_e(),Fe(),Se(),J();let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),Ke(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}),s([]);let Ee=s([]);const ce=s([]),O=s("");let I=window.localStorage.getItem("deptName");function j(){$({data:R.value,alertRange:S.value,flag:3,msName:O.value,warning:z.value,divisions:I}).then(e=>{q.value=e.data,P()})}function ke(){Pe({divisions:I}).then(e=>{ce.value=e.data})}ke();const Ve=()=>{Le().then(e=>{M.value=Number(e.data[0].flag)})},Re=()=>{Ge({flag:M.value}).then(e=>{Y({message:e.msg,type:"success"})})};function Se(){var e=document.querySelector(".center"),t=document.getElementById("cesiumContainer");r=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.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),we(),Ce();const d=new ol.Overlay({element:document.createElement("div"),className:"overlay1",positioning:"bottom-center",offset:[0,-10],stopEvent:!0});r.on("moveend",function(){var c=r.getView().getZoom();c>=13?G.setVisible(!0):G.setVisible(!1)}),r.on("singleclick",function(c){s([]);const C=r.getEventPixel(c.originalEvent);var E=c.coordinate,f=E[0],w=E[1],x=r.getView();x.animate({center:[f,w],duration:1e3}),Ee.value.forEach(i=>{layersDic[i]?QueryData(c,layersDic[i].setOf,`http://192.168.0.113:8090/iserver/services/${layersDic[i].name}/rest/maps/${layersDic[i].setOf}`,i):layersGbz[i]&&QueryData(c,layersGbz[i].setOf,`http://192.168.0.113:8090/iserver/services/${layersGbz[i].name}/rest/maps/${layersGbz[i].setOf}`,i)}),r.forEachFeatureAtPixel(C,i=>{x.animate({center:[f,w],duration:1e3});const k=i.get("id"),L=i.get("type");if(r.addOverlay(d),L==="1"){for(const u in A.value)k===A.value[u].msName&&(y.name=k,y.lon=A.value[u].msLongitude,y.lat=A.value[u].msLatitude);d.setPosition(i.getGeometry().getCoordinates()),d.getElement().innerHTML=`