import{H as Q,_ as ye,r as a,A as be,V as Ce,W as R,d as m,o as b,c as T,l as e,m as D,e as n,w as v,f as i,g as W,G as we,L as X,N as $,k as H,x as _,y as xe,p as ke,q as Se}from"./index.48137ccf.js";import Te from"./downloads.e955445d.js";import{_ as j}from"./close1.45635d81.js";import{_ as Me,a as De,b as Ie,c as Pe,d as qe,e as Fe}from"./linesGL.90f708a5.js";import"./index.c9f5bd8b.js";import{T as Le}from"./TimeLine.74a971ad.js";import{h as ze}from"./moment.9709ab41.js";import{d as Ve}from"./download.b1d8c1b6.js";function Ne(C){return Q({url:"equipment/meteorologyEquipment",method:"get",params:C})}function J(C){return Q({url:"equipment/meteorology",method:"get",params:C})}const u=C=>(ke("data-v-2721e228"),C=C(),Se(),C),We={class:"center"},Ae=u(()=>e("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ee={class:"rightWra"},Be=u(()=>e("span",null,"\u6C14\u8C61\u4FE1\u606F\u7EDF\u8BA1",-1)),Re=u(()=>e("img",{src:Te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Je=u(()=>e("div",{class:"farmlandDiv"},"\u5217\u8868",-1)),Oe={key:0,src:j,alt:""},Ue={key:0,class:"imgrotate",src:j,alt:""},Ze={class:"bottom_center"},Ge={class:"my-header"},Ye=["id"],Xe={class:"buttonbox"},$e=u(()=>e("span",{style:{"vertical-align":"middle"}},"\u67E5\u8BE2",-1)),He=u(()=>e("span",{style:{"vertical-align":"middle"}},"\u4E0B\u8F7D",-1)),Qe=u(()=>e("span",{style:{"vertical-align":"middle"}},"\u91CD\u7F6E",-1)),je={class:"select_div"},Ke={class:"slele_time"},et={class:"time_on"},tt={class:"time_end"},at={class:"device"},lt={class:"tableDiv"},ot={class:"block"},st=xe('
',1),nt={id:"popup"},it=u(()=>e("span",null,"\u540D\u79F0\uFF1A",-1)),rt=u(()=>e("span",null,"\u5F53\u524D\u4F4D\u7F6E\uFF1A",-1)),ut=u(()=>e("span",null,"\u65F6\u95F4\uFF1A",-1)),dt=u(()=>e("span",null,"\u6C14\u538B\uFF1A",-1)),ct=u(()=>e("span",null,"\u6700\u5927\u98CE\u901F\uFF1A",-1)),pt=u(()=>e("span",null,"\u98CE\u529B\uFF1A",-1)),mt={id:"pop"},vt={key:0},gt=u(()=>e("div",null,"\u6751\u540D\uFF1A",-1)),_t={__name:"index",setup(C){let d=a(null);const K=a("2023"),w=a("");let P=a({name:"",value:""});const ee=a([]),q=a(!1);let x=a(!1);a(["false"]),a(null);const f=a(""),h=a("");let F=a([]);const O=a([]);a([]),a(!1),a(!1),a({}),a(!1);let k=a([]);a(),a([]),a([]),a(""),a([]),a([{date1:"\u9EC4\u5C9B\u533A",date2:"",date3:"",date4:"",date5:""}]),a([]);let y=a(1),g=a(5);const A=a(!1);let L=a([]);be({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"}]}),a([]),Ce(()=>{ue(),ae(),le();let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"});const te={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function ae(){d=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...te})}),d.cesiumWidget.creditContainer.style.display="none",G("shuzisannong:huangdaoqu_town","tl"),d.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),me()}function le(){R({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(t=>{console.log("\u519C\u7530\uFF1A",t),ee.value=t.data.features}).catch(t=>{})}let z=a({label:[]});function U(t,l){if(d){const s=d.imageryLayers._layers;for(let o=s.length-1;o>=0;o--)t.forEach(p=>{s[o]._imageryProvider&&s[o]._imageryProvider.customName&&(l?s[o]._imageryProvider.customName.indexOf(p)>-1&&d.imageryLayers.remove(s[o]):s[o]._imageryProvider.customName===p&&d.imageryLayers.remove(s[o]))})}}function oe(){if(x.value=!x.value,x.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const se=()=>{y.value=1,A.value=!0,Z(),f.value="",h.value="",w.value=""},ne=()=>{J({devCode:w.value,startTime:f.value?V(f):null,endTime:h.value?V(h):null}).then(t=>{L.value=t.data,F.value=t.data.slice((y.value-1)*g.value,(y.value-1)*g.value+g.value)})},ie=()=>{J({startTime:f.value?V(f):"",endTime:h.value?V(h):"",devCode:w.value,whetherToDownload:!0}).then(t=>{Ve(t.data[t.data.length-1].excelPath)})},V=t=>{const l=new Date(t.value),s=l.getFullYear(),o=l.getMonth()+1,p=l.getDate(),I=l.getHours(),S=l.getMinutes(),M=l.getSeconds();return`${s}-${o.toString().padStart(2,"0")}-${p.toString().padStart(2,"0")} ${I.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}:${M.toString().padStart(2,"0")}`},re=()=>{f.value="",h.value="",w.value="",Z()},Z=()=>{J({devCode:w.value,startTime:f.value,endTime:h.value}).then(t=>{L.value=t.data,F.value=t.data.slice((y.value-1)*g.value,(y.value-1)*g.value+g.value)})},ue=()=>{Ne().then(t=>{O.value=t.data})};function G(t,l){let s=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:t,parameters:{service:"WMS",format:"image/png",transparent:!0}});s.customName=l;let o=d.imageryLayers.addImageryProvider(s);l.indexOf("gbznt")>-1&&(d.imageryLayers.lowerToBottom(o),d.imageryLayers.raise(o))}function de(){delete z.value.XZQMC,U(["gbznt"],!0),U(["aaa"]),K.value="370211",q.value==="1"&&(console.log(q.value),G("shuzisannong:huangdaoqu_town","tl")),d.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),q.value=!1,E()}const ce=t=>{y.value=t,F.value=L.value.slice((y.value-1)*g.value,(y.value-1)*g.value+g.value)};function pe(){let t=Y.value;console.log("fl:",t),R({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(l=>{console.log("res1111:",l),l.data.features.forEach((o,p)=>{const I=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),S=Cesium.Rectangle.center(I);Cesium.Math.toDegrees(S.longitude),Cesium.Math.toDegrees(S.latitude),o.properties.XZDM==="370211011"||o.properties.XZDM;const M=t[o.properties.XZMC];M&&M.map((N,c)=>N.properties)})}).catch(l=>{})}let Y=a({});function me(){R({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(t=>{let l=t.data.features,s={};l.forEach(o=>{let p=o.properties.town;s[p]?s[p].push(o):s[p]=[o]}),Y.value=s,pe()}).catch(t=>{})}function ve(){if(P.value.lon&&P.value.lat){const l=Cesium.Cartesian3.fromDegrees(Number(P.value.lon),Number(P.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(d.scene,l);if(Cesium.defined(t)){const s=document.getElementById("popup");s&&(s.style.top=t.y-10+"px",s.style.left=t.x+10+"px")}}}function E(){const t=document.getElementById("popup");t&&(t.style.display="none"),d.scene.postRender.removeEventListener(ve)}return(t,l)=>{const s=m("el-tooltip"),o=m("el-button"),p=m("Close"),I=m("el-icon"),S=m("el-date-picker"),M=m("el-option"),N=m("el-select"),c=m("el-table-column"),ge=m("el-table"),_e=m("el-pagination"),fe=m("el-dialog");return b(),T("div",We,[Ae,e("div",Ee,[e("div",{class:"rightTop"},[e("div",{class:"title"},[Be,e("p",{onClick:se},[D(" \u5386\u53F2\u6570\u636E \xA0 "),Re])]),Je]),e("div",{class:"rightFoldDiv",onClick:l[0]||(l[0]=r=>oe())},[n(s,{disabled:!i(x),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:v(()=>[i(x)?(b(),T("img",Oe)):W("v-if",!0)]),_:1},8,["disabled"]),n(s,{disabled:i(x),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:v(()=>[i(x)?W("v-if",!0):(b(),T("img",Ue))]),_:1},8,["disabled"])])]),e("div",Ze,[n(Le)]),n(fe,{"destroy-on-close":"",modelValue:A.value,"onUpdate:modelValue":l[4]||(l[4]=r=>A.value=r),"show-close":!1},{header:v(({close:r,titleId:B,titleClass:he})=>[e("div",Ge,[e("h4",{id:B,class:we(he)},"\u571F\u58E4\u5386\u53F2\u6570\u636E\u67E5\u8BE2",10,Ye),e("div",Xe,[n(o,{type:"primary",onClick:ne},{default:v(()=>[$e]),_:1}),n(o,{type:"primary",onClick:ie},{default:v(()=>[He]),_:1}),n(o,{onClick:re,type:"primary"},{default:v(()=>[Qe]),_:1}),D(" \u2003 "),n(I,{style:{cursor:"pointer"},onClick:r},{default:v(()=>[n(p)]),_:2},1032,["onClick"])])])]),default:v(()=>[e("div",je,[e("div",Ke,[e("div",et,[D(" \u5F00\u59CB\u65F6\u95F4\uFF1A "),n(S,{modelValue:f.value,"onUpdate:modelValue":l[1]||(l[1]=r=>f.value=r),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),D(" \u2003 "),e("div",tt,[D(" \u7ED3\u675F\u65F6\u95F4\uFF1A "),n(S,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=r=>h.value=r),type:"datetime",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])])]),e("div",at,[n(N,{modelValue:w.value,"onUpdate:modelValue":l[3]||(l[3]=r=>w.value=r),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:v(()=>[(b(!0),T(X,null,$(O.value,r=>(b(),H(M,{"popper-class":"device_item",key:r,label:r,value:r},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e("div",lt,[n(ge,{"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},data:i(F),stripe:"",style:{width:"100%"}},{default:v(()=>[n(c,{prop:"dataTime",label:"\u65E5\u671F"}),n(c,{prop:"temperature",label:"\u7A7A\u6C14\u6E29\u5EA6"}),n(c,{prop:"airHumidity",label:"\u7A7A\u6C14\u6E7F\u5EA6"}),n(c,{prop:"windSpeed",label:"\u98CE\u901F"}),n(c,{prop:"windDirection",label:"\u98CE\u5411"}),n(c,{prop:"rainfall",label:"\u96E8\u91CF"}),n(c,{prop:"atmosphericPressure",label:"\u5927\u6C14\u538B\u529B"}),n(c,{prop:"evaporation",label:"\u84B8\u53D1"}),n(c,{prop:"lightIntensity",label:"\u5149\u7167\u5F3A\u5EA6"}),n(c,{prop:"sunlightHours",label:"\u65E5\u7167\u65F6\u6570\uFF08h\uFF09"}),n(c,{prop:"photosyntheticEffectiveRadiation",label:"\u5149\u5408\u6709\u6548"})]),_:1},8,["data"]),e("div",ot,[n(_e,{background:"",layout:"prev, pager, next","current-page":i(y),"page-size":i(g),onCurrentChange:ce,total:i(L).length},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"]),st,e("div",nt,[e("div",null,[it,e("p",null,_(i(k).name),1)]),e("div",null,[rt,e("p",null,_(i(k).fLongitude)+"\xB0E/"+_(i(k).fLatitude)+"\xB0N",1)]),e("div",null,[ut,e("p",null,_(i(ze)(i(k).time).format("YYYY-MM-DD HH:mm:ss")),1)]),e("div",null,[dt,e("p",null,_(i(k).pressure)+"\u767E\u5E15",1)]),e("div",null,[ct,e("p",null,_(i(k).speed)+"\u7C73/\u79D2",1)]),e("div",null,[pt,e("p",null,_(i(k).power)+"\u7EA7",1)]),e("div",{class:"cancel",onClick:E},"X")]),e("div",mt,[(b(!0),T(X,null,$(i(z).label,(r,B)=>(b(),T("div",{key:B},[e("div",null,_(r.crop)+"\uFF1A",1),e("div",null,_((r.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),i(z).XZQMC?(b(),T("div",vt,[gt,e("div",null,_(i(z).XZQMC),1)])):W("v-if",!0),e("div",{class:"cancel",onClick:E},"X")]),q.value?(b(),H(o,{key:0,class:"back_button",onClick:l[5]||(l[5]=r=>de())},{default:v(()=>[D("\u8FD4\u56DE")]),_:1})):W("v-if",!0)])}}},St=ye(_t,[["__scopeId","data-v-2721e228"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/monitor/information/index.vue"]]);export{St as default};