import{_asGe,raso,Iasee,xasUe,dash,oasT,caste,lasm,easl,wasn,nasg,fasb,JasWe,KasV,AasD,Masx,kasle,masQ,a8asae,qasze,sasAe}from"./index.9f28707e.js";import{_asNe,aasTe}from"./zhankaiss.6870329f.js";import{q,masqe,gasOe,pasje,aasB,basJ,sasRe,casMe,dasQe,easBe,fasJe,iasYe,zasXe}from"./information.eab73f60.js";import{dasZe}from"./download.da137c17.js";import"./linesGL.76a64914.js";import"./linkSeriesData.e74eae00.js";constO=U=>(ze("data-v-8ac7fbb9"),U=U(),Ae(),U),He={class:"center"},Ke=O(()=>m("div",{style:{width:"100%",height:"100%"},class:"cesiumContainer",id:"cesiumContainer"},null,-1)),et={class:"rightWra"},tt={class:"rightTop"},lt=O(()=>m("div",{class:"title"},[m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),m("span",null,"\u5927\u7530\u519C\u6237\u4FE1\u606F\u7BA1\u7406")],-1)),at={style:{width:"100%"}},ot=O(()=>m("img",{src:Ne},null,-1)),nt=O(()=>m("img",{src:Te},null,-1)),st={key:0,class:"positionDiv"},it={__name:"index",setup(U){constj=o();o({name:"",value:""});letk=o(!1);o(""),o(!1),o([]);letL=ee({lat:"",lan:"",name:""}),f=o([]),y=o([]);constY=o([]),X=o(5e3),oe=o();o([]);constR=o([]),M=o([]),C=o([]),ne=o(),se=o([]);let$=o("");constZ=o(1),H=o(6),ie=o([]),_=o([{date:"2016-05-03",name:"Tom",address:"No. 189, Grove St, Los Angeles",value:"1"},{date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles",value:"2"},{date:"2016-05-04",name:"Tom",address:"No. 189, Grove St, Los Angeles",value:"3"},{date:"2016-05-01",name:"Tom",address:"No. 189, Grove St, Los Angeles",value:"4"}]),c=o(-1),r=ee({contacts:"",phone:"",region:"",latitude:"",longitude:""}),re=e=>{c.value=_.value.indexOf(e),e.flag=!0},de=e=>{c.value=-1,Be(e).then(a=>{}),e.flag=!1},ue=e=>{me(e)},ce=()=>{console.log("cancel!")},me=e=>{_.value.splice(_.value.indexOf(e),1),Je(e)},ve=()=>{Ye(r).then(e=>{G.value=!1,K()})},pe=()=>{q({region:window.localStorage.getItem("deptName"),unitOrName:$.value}).then(e=>{_.value=e.data})},ge=()=>{$.value="",q({region:window.localStorage.getItem("deptName")}).then(e=>{_.value=e.data})},fe=()=>{q({region:window.localStorage.getItem("deptName"),whetherToDownload:!0}).then(e=>{Ze(e.data[e.data.length-1].downloadPath)})},ye=()=>{y.value.length>0?r.latitude=y.value[0].toFixed(6):ae("\u8BF7\u5148\u5728\u5730\u56FE\u4E0A\u9009\u62E9\u4F4D\u7F6E")},_e=()=>{y.value.length>0?r.longitude=y.value[1].toFixed(6):ae("\u8BF7\u5148\u5728\u5730\u56FE\u4E0A\u9009\u62E9\u4F4D\u7F6E")},we=()=>{G.value=!0,r.contacts="",r.phone="",r.region="",r.latitude="",r.longitude=""};functionhe(){conste=(Z.value-1)*H.value,a=Z.value*H.value;ie.value=Y.value.slice(e,a)}constG=o(!1),be=()=>{lete=newDate;returne.setDate(e.getDate()-1),e};letd=o(null);constVe=()=>{W=newol.layer.Tile({source:newol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),d.addLayer(W)},xe=()=>{vare=newol.layer.Tile({source:newol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});d.addLayer(e)};letW=o(null);Ue(()=>{K(),$e(),j.value=be().toJSON().substr(0,10),Ce(),Pe(),De(),Fe();lete=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}),o([]);letSe=o([]);constIe=o([]),ke=o("");letz=window.localStorage.getItem("deptName");constK=()=>{q({region:window.localStorage.getItem("deptName")}).then(e=>{_.value=e.data})};functionCe(){qe({data:j.value,alertRange:X.value,flag:1,msName:ke.value,warning:ne.value,divisions:z}).then(e=>{Y.value=e.data,he()})}functionEe(){Xe({divisions:z}).then(e=>{Ie.value=e.data})}Ee();functionDe(){vare=document.querySelector(".center"),a=document.getElementById("cesiumContainer");d=newol.Map({target:"cesiumContainer",controls:[],view:newol.View({center:[119.867634