import{_ as W,r as l,a2 as Y,a5 as H,a7 as $,x as F,a4 as X,d as C,o as _,c as m,l as t,O as S,f as o,J as A,K,M as O,n as z,e as r,w as T,V as ee,W as te,k as ae,m as w,q as oe,s as le}from"./index.064676a5.js";import G from"./downloads.e955445d.js";import{_ as se,a as ne}from"./zhankaiss.6870329f.js";import{g as j,a as I,b as ie,c as q}from"./ssnyygsj.05d60a4d.js";import re from"./TimeLine2.18655dc8.js";import de from"./EchartsMJ.30f7ce7f.js";import ce from"./EchartsHNT.a0a6c141.js";import ue from"./EchartsZB.9d1980ef.js";import{d as k}from"./download.fe7036ba.js";import"./index.2809c208.js";import"./linkSeriesData.e74eae00.js";const d=y=>(oe("data-v-e67f4053"),y=y(),le(),y),he={class:"PageBox"},pe={class:"RightBoxContent"},_e={class:"taber"},ge={style:{width:"100%",height:"auto",display:"flex","flex-direction":"column","justify-content":"flex-start","align-items":"center"}},ve=d(()=>t("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),me=d(()=>t("span",null,"\u8BBE\u65BD\u519C\u4E1A\u9065\u611F\u6570\u636E\u9762\u79EF\u7EDF\u8BA1",-1)),ye=d(()=>t("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),fe={class:"ManJi"},we={class:"title"},xe=d(()=>t("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),be=d(()=>t("span",null,"\u8BBE\u65BD\u519C\u4E1A\u9065\u611F\u6570\u636E\u9762\u79EF\u5360\u6BD4",-1)),Ce={class:"Zanbi"},Se={key:0,style:{width:"100%",height:"auto",display:"flex","flex-direction":"column","justify-content":"flex-start","align-items":"center"}},Te=d(()=>t("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),je=d(()=>t("span",null,"\u9AD8\u6807\u51C6\u519C\u7530",-1)),ke=d(()=>t("img",{src:G,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Be={class:"heightNT"},Ee={key:0,src:se,style:{width:"100%",height:"100%"},alt:""},Me={key:0,src:ne,style:{width:"100%",height:"100%"},alt:""},Ve={class:"bottom_center"},Pe={__name:"index",setup(y){window.CESIUM_BASE_URL="../../../../node_modules/cesium/Build/CesiumUnminified/";var h=null,f=null;const B=l(null);let g=l(!1),s=l(0);const n=l("370211"),E=l([]);let i=l(""),M=l([]),V=l([]),x=l([]),b=l([]),P=l("");const J=()=>{console.log("\u70B9\u51FB\u4E86\u62BD\u5C49"),g.value=!g.value},N=e=>{console.log("\u65F6\u95F4\u7EBF\u6539\u53D8",e),i.value=e},R=()=>{n.value=="370211"?j({yearMonth:i.value,whetherToDownload:!0}).then(e=>{k(e.data[e.data.length-1].downloadPath)}):I({divisions:n.value,yearMonth:i.value,whetherToDownload:!0}).then(e=>{k(e.data[e.data.length-1].downloadPath)})},L=()=>{q({divisions:"370211",yearMonth:P.value,whetherToDownload:!0}).then(e=>{k(e.data[e.data.length-1].downloadPath)})};function U(){try{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-sheshinongye-2024-5-30/rest/maps/T2024_05_29_sheshinongye%40sheshinongye-2024-5-30",cacheEnabled:!1}),name:"T2024_05_29_sheshinongye",projection:"EPSG:4326",zIndex:99999});h.addLayer(e)}catch(e){console.log(e,"\u9519\u8BEF")}}const D=()=>{f=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}),h.addLayer(f)},Q=()=>{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});h.addLayer(e)};function Z(){h=new ol.Map({target:B.value,controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,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})]}),D(),Q(),h.on("moveend",function(e){var a=h.getView().getZoom();a>=13?f.setVisible(!0):f.setVisible(!1)})}return Y(i,(e,a)=>{console.log(e,a,"\u6211\u662F\u7236\u7EC4\u4EF6")}),H(async()=>{if(console.log(n.value,i.value,"\u76D1\u542C\u4E0B\u62C9\u6846 \u548C \u5F53\u524D\u65F6\u95F4\u53D8\u5316"),n.value=="370211"){const e=await j({divisions:n.value,yearMonth:i.value});console.log(e.data,"\u83B7\u53D6\u5168\u90E8\u9547"),x.value=e.data,b.value=e.data}else{console.log(n.value);const e=await I({divisions:n.value,yearMonth:i.value});console.log(e.data,"\u6839\u636E\u8857\u9053 \u83B7\u53D6\u5168\u90E8\u6751"),x.value=e.data,b.value=e.data}}),$(async()=>{try{const e=await ie();console.log(e,"\u83B7\u53D6\u5E74"),e.data.length>0&&e.code==200&&(M.value=e.data,i.value=e.data[0]);let a=e.data[e.data.length-1];P.value=a;const c=await q({divisions:"370211",yearMonth:a,whetherToDownload:""});console.log(c,"\u83B7\u53D6\u9AD8\u6807\u51C6\u519C\u7530"),c.data.length>0&&c.code==200&&(V.value=c.data);const p=await j();console.log(p,"\u83B7\u53D6\u5168\u90E8\u9547"),p.data.length>0&&p.code==200&&(E.value=p.data.map(v=>({value:v.subregionCode,label:v.subregionName})))}catch(e){console.log(e)}}),F(()=>{Z(),U()}),X(()=>{console.log("\u9500\u6BC1\u5B9E\u4F8B\u548C\u4E8B\u4EF6")}),(e,a)=>{const c=C("el-option"),p=C("el-select"),v=C("el-tooltip");return _(),m("div",he,[t("div",{id:"CesiumJsBox",ref_key:"mapElement",ref:B},null,512),t("div",{class:S(o(g)?"RightBox":"RightBoxFlag")},[t("div",pe,[t("div",_e,[t("div",{class:S(o(s)==0?"TaberChild_Activit":"TaberChild"),onClick:a[0]||(a[0]=u=>A(s)?s.value=0:s=0)},"\u884C\u653F\u533A\u5212 ",2),t("div",{class:S(o(s)==1?"TaberChild_Activit":"TaberChild"),onClick:a[1]||(a[1]=u=>A(s)?s.value=1:s=1)},"\u9AD8\u6807\u51C6\u519C\u7530 ",2)]),K(t("div",ge,[t("div",{class:"title"},[ve,me,t("p",{onClick:R},[z(" \u4E0B\u8F7D \xA0 "),ye])]),r(p,{modelValue:n.value,"onUpdate:modelValue":a[2]||(a[2]=u=>n.value=u),placeholder:"\u5168\u90E8",size:"small",style:{width:"80%",margin:"10px 0"}},{default:T(()=>[r(c,{key:"quanbu",label:"\u5168\u90E8",value:"370211"}),(_(!0),m(ee,null,te(E.value,u=>(_(),ae(c,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t("div",fe,[r(de,{mj:o(x)},null,8,["mj"])]),t("div",we,[xe,be,w("",!0)]),t("div",Ce,[r(ue,{zb:o(b)},null,8,["zb"])])],512),[[O,o(s)==0]]),o(s)==1?(_(),m("div",Se,[t("div",{class:"title"},[Te,je,t("p",{onClick:L},[z(" \u4E0B\u8F7D \xA0 "),ke])]),t("div",Be,[r(ce,{heightArr:o(V)},null,8,["heightArr"])])])):w("",!0)]),t("div",{class:"RightBoxTool",onClick:J},[r(v,{class:"box-item",effect:"light",content:"\u6536\u8D77",placement:"top-end"},{default:T(()=>[o(g)?(_(),m("img",Ee)):w("",!0)]),_:1}),r(v,{class:"box-item",effect:"light",content:"\u5C55\u5F00",placement:"top-end"},{default:T(()=>[o(g)?w("",!0):(_(),m("img",Me))]),_:1})])],2),t("div",Ve,[r(re,{nowValue:o(i),yearArr:o(M),onHandleNowValueChange:N},null,8,["nowValue","yearArr"])])])}}},Qe=W(Pe,[["__scopeId","data-v-e67f4053"]]);export{Qe as default};