import{z as J,_ as at,r as f,A as de,B as ot,C as rt,D as ce,d as k,o as _,c as L,l,m as E,e as x,w as S,f as y,g as F,I as ue,J as fe,k as pe,Q as lt,x as G,y as st,p as it,q as nt}from"./index.b3a66a9e.js";import ae from"./downloads.e955445d.js";import{_ as oe}from"./close1.45635d81.js";import{_ as dt,a as ct,b as ut,c as ft,d as pt,e as mt}from"./linesGL.90f708a5.js";import{i as ee,L as te}from"./index.c9f5bd8b.js";import{T as gt}from"./TimeLine.6cac5abc.js";import{u as me}from"./useEcharts.83442be8.js";import{d as V}from"./download.a6a18203.js";function Me(h){return J({url:"equipment/statisticsOfTheArea",method:"get",params:h})}function ze(h){return J({url:"equipment/proportionOfTheArea",method:"get",params:h})}function We(h){return J({url:"equipment/eachFreezingGradeArea",method:"get",params:h})}function Ae(h){return J({url:"equipment/townshipArea",method:"get",params:h})}function Ie(h){return J({url:"equipment/administrativeArea",method:"get",params:h})}const T=h=>(it("data-v-4e1915e9"),h=h(),nt(),h),vt={class:"center"},ht=T(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),bt={class:"leftWra"},yt={class:"leftTop"},_t={class:"title"},xt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),wt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ct={class:"leftbottom"},St={class:"title"},Dt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),kt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Lt={class:"tableDiv"},Tt={key:0,src:oe,alt:""},Mt={key:0,class:"imgrotate",src:oe,alt:""},zt={class:"rightWra"},Wt={class:"rightTop"},At={class:"title"},It=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Nt=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Pt={class:"rightbottom"},Ft={class:"title"},Bt=T(()=>l("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Et=T(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ot={key:0,src:oe,alt:""},Rt={key:0,class:"imgrotate",src:oe,alt:""},Zt={class:"bottom_center"},Xt=st('
',1),qt={class:"mt-4"},Qt={id:"popup"},Gt={id:"pop"},Vt={key:0},Jt=T(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),$t={__name:"index",setup(h){let n=f(null);const ge=f(null),ve=f(null),he=f(null);f(null);const be=f(null),b=f("370211"),Ne=f(null);let w=de({arr:[],brr:[],crr:[]});const ye=f({name:"",value:""}),_e=f([]),B=f(!1);let I=f(!1),N=f(!1);const xe=f(["false"]);let O=de({lable:[],value:[]}),$=f([]),re=f(0),we=["\u9AD8\u6807\u51C6\u519C\u75301.0","\u9AD8\u6807\u51C6\u519C\u75302.0","\u9AD8\u6807\u51C6\u519C\u75303.0","\u9AD8\u6807\u51C6\u519C\u75304.0","\u9AD8\u6807\u51C6\u519C\u75305.0","\u9AD8\u6807\u51C6\u519C\u75306.0","\u9AD8\u6807\u51C6\u519C\u75307.0"],P={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Pe={\u65E0\u51BB\u5BB3:{color:"rgba(9, 187, 222, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(255, 235, 59, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(234, 165, 93, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(215, 25, 28, 0.8)",disabled:!1}};ot(()=>w.arr,t=>{console.log("val:",t)});var R={title:[]};let C={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},le=f([]);rt(()=>{Se("370211"),De("370211"),Ge(),ke("370211"),Be(),Y(),H(),Le(),q(),Oe();let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"});const Fe={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 Be(){n=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({...Fe})}),n.cesiumWidget.creditContainer.style.display="none",se("shuzisannong:huangdaoqu_town","tl"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Re(),et()}function Ce(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),n.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:a?Cesium.Color.fromCssColorString(a):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Ee(t){return t>48e6?0:t>24e6?1:t>12e6?2:t>6e6?3:t>3e6?4:t>15e5?5:t>75e4?6:t>375e3?7:t>187500?8:t>93750?9:t>46875?10:t>23437.5?11:t>11718.75?12:t>5859.38?13:t>2929.69?14:t>1464.84?15:t>732.42?16:t>366.21?17:18}function Oe(){ce({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),_e.value=t.data.features}).catch(t=>{})}let g=f({label:[]}),Z="";function Re(){var t=new Cesium.ScreenSpaceEventHandler(n.canvas);t.setInputAction(function(e){var a=n.camera.getPickRay(e.position),o=n.scene.globe.pick(a,n.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let s=new Cesium.Cartesian2,c=n.camera.positionCartographic.height,i=Ee(c);const v=n.imageryLayers._layers,p=v.findIndex(u=>u._imageryProvider._layers&&u._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(p>-1){const u=v[p];let m=u._imageryProvider;if(m&&m.ready&&m._layers&&u.show===!0){s=m.tilingScheme.positionToTileXY(r,i,s);let d=m.pickFeatures(s.x,s.y,i,r.longitude,r.latitude);d&&d.then(z=>{if(z.length>0){let D=z[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",Z),console.log("newData.properties.XZDM:",D.properties.XZDM),Z!==D.properties.XZDM){B.value=!0,Z=D.properties.XZDM,b.value=Z,j&&j();let A=D.data;n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(A.bbox[0],A.bbox[1],A.bbox[2],A.bbox[3]),duration:2}),X("townLine"),Ce(A.geometry&&A.geometry.coordinates,"townLine","yellow"),M(["village_CQL"]),Xe(`XZDM=${D.properties.XZDM}`,"village_CQL");let K=n.entities._entities._array;for(var W=K.length-1;W>=0;W--)if(K[W]._name&&K[W]._name==="point"+D.properties.XZDM){let tt=K[W]._info;g.value=tt,console.log(g.value,"------------------"),ne(e.position),n.scene.postRender.addEventListener(ie)}X("villageLine"),U=""}else Ze(v,s,i,r,e);else M(["village_CQL"]),Q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let U="";function Ze(t,e,a,o,r){const s=t.findIndex(c=>c._imageryProvider._layers&&c._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const c=t[s];let i=c._imageryProvider;if(i&&i.ready&&i._layers&&c.show===!0){e=i.tilingScheme.positionToTileXY(o,a,e);let v=i.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);v&&v.then(p=>{if(p.length>0){let u=p[0];if(console.log(u),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(u.data.bbox[0],u.data.bbox[1],u.data.bbox[2],u.data.bbox[3]),duration:2}),u.properties&&u.properties.XZQDM&&U!==u.properties.XZQDM){U=u.properties.XZQDM;let m=u.data;if(X("villageLine"),Ce(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),u.properties.XZQDM==="370211104217"){const d=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),z=Cesium.Rectangle.center(d);let W=Cesium.Math.toDegrees(z.longitude),D=Cesium.Math.toDegrees(z.latitude),A={lon:W,lat:D,...m.properties,label:[{crop:"\u8336\u53F6",Shape_Area:2820},{crop:"\u5927\u8C46",Shape_Area:2767},{crop:"\u82B1\u751F",Shape_Area:62356},{crop:"\u84DD\u8393",Shape_Area:5443},{crop:"\u5730\u74DC",Shape_Area:897},{crop:"\u5C0F\u9EA6",Shape_Area:20111}]};g.value=A,ne(r.position),n.scene.postRender.addEventListener(ie)}}}})}}}function Xe(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:t}});a.customName=e,n.imageryLayers.addImageryProvider(a)}function M(t,e){if(n){const a=n.imageryLayers._layers;for(let o=a.length-1;o>=0;o--)t.forEach(r=>{a[o]._imageryProvider&&a[o]._imageryProvider.customName&&(e?a[o]._imageryProvider.customName.indexOf(r)>-1&&n.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&n.imageryLayers.remove(a[o]))})}}function X(t){if(n){let a=n.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&n.entities.remove(a[e])}}function qe(){if(I.value=!I.value,I.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function Qe(){if(N.value=!N.value,N.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=t=>{O=de({lable:[],value:[]}),Me({divisions:t}).then(e=>{e.data.forEach(a=>{O.lable.push(a.level),O.value.push((a.area/666.67).toFixed(2))}),Y()})},De=t=>{$=f([]),le=f([]),re=f(0),ze({divisions:t}).then(e=>{e.data.forEach(a=>{re.value+=Number(a.area),$.value.push({name:a.level,value:(a.area/666.67).toFixed(2)}),le.value.push({date:a.level,name:`${(a.area/666.67).toFixed(2)}\u4EA9`,address:`${(a.percentage*100).toFixed(2)}%`})}),console.log($.value),H()})},Ge=()=>{We().then(t=>{we.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(P).forEach(r=>{let s=0;o.findIndex(i=>(console.log(i,r),i&&i.level===r&&(s=i.area),i&&i.level===r))>-1?P[r].push(s):P[r].push(0)})}),Le()})},ke=t=>{Ae({divisions:t}).then(e=>{w.brr=e.data,w.arr=e.data.sort((c,i)=>c.streetName.length-i.streetName.length),w.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];w.arr.forEach(c=>{a.indexOf(c.streetName)==-1&&(a.push(c.streetName),o.push({streetName:c.streetName,streetCode:c.streetCode}))}),w.arr=o,console.log(w.arr);let r=[...e.data],s=[];r.splice(0,1),r.forEach(c=>{s.indexOf(c.streetName)==-1&&s.push(c.streetName)}),R.title=[...Object.values(s)],R.title.forEach((c,i)=>{let v=e.data.map(p=>{if(c===p.streetName)return p});Object.keys(C).forEach(p=>{v.findIndex(m=>m&&m.type===p)>-1?C[p].push(1):C[p].push(null)})}),q()})},Ve=t=>{Ie({divisions:t}).then(e=>{w.brr=e.data;let a=[...e.data],o=[];a.splice(0,1),a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),R.title=[...Object.values(o)],R.title.forEach((r,s)=>{let c=e.data.map(i=>{if(r===i.streetName)return i});Object.keys(C).forEach(i=>{c.findIndex(p=>p&&p.type===i)>-1?C[i].push(1):C[i].push(null)})}),q()})},j=()=>{if(Se(b.value),De(b.value),Ve(b.value),b.value=="370211"){M(["village_CQL"]),Z=null,M(["aaa"]),ke(),Q(),q(),Y(),H();return}q(),Y(),H(),[...w.arr]},Je=t=>{Me({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},$e=t=>{ze({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ue=t=>{We({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},je=t=>{b.value==="370211"?Ae({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)}):Ie({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})};function Y(){const t=ee(ge.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:O.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:O.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&t.setOption(e),window.addEventListener("resize",function(){t.resize()})}function H(){const t=ee(ve.value);var e=$.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(re.value/666.67).toFixed(2)}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(t,a)}function Le(){const t=ee(he.value);console.log(C);let e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:we,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"},axisLabel:{color:"rgba(255, 255, 255, 0.7)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255, 255, 255, 0.7)"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(215, 25, 28, 1)",color:new te(0,0,0,1,[{offset:0,color:"rgba(215, 25, 28, 0.8)"},{offset:1,color:"rgba(215, 25, 28, 0.8)"}])}}}]};t.on("click",function(a){console.log(a.name)}),t.on("click",a=>He(a)),e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),me(t,e)}function se(t,e){let a=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:t,parameters:{service:"WMS",format:"image/png",transparent:!0}});a.customName=e;let o=n.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(n.imageryLayers.lowerToBottom(o),n.imageryLayers.raise(o))}function Ye(){delete g.value.XZQMC,M(["gbznt"],!0),M(["aaa"]),b.value="370211",j(),B.value==="1"&&(console.log(B.value),se("shuzisannong:huangdaoqu_town","tl")),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),B.value=!1,Q()}function He(t){delete g.value,M(["huangdaoqu_town"],!0),M(["tl"],!0);let e="shuzisannong:farmland",a=!1;const o=n.imageryLayers._layers;for(let s=o.length-1;s>=0;s--)o[s]&&o[s]._imageryProvider.customName&&o[s]._imageryProvider.customName===e+"gbznt"&&(a=!0);a||(se(e,e+"gbznt"),g.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),_e.value.forEach(s=>{console.log("it.properties.name:",s.properties.name),console.log("item.name:",t.name),s.properties.name===t.name&&(console.log("dingwei"),n.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),B.value="1",ne({x:642,y:312})}function q(){const t=ee(be.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return w.brr.forEach(r=>{r.type==a.seriesName&&r.streetName==a.name&&(console.log(r.area),o=r.area)}),a.seriesName+''+(o/666.67).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:R.title,inverse:!0}],series:[{type:"bar",name:"\u65E0\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u65E0\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:C.\u65E0\u51BB\u5BB3},{type:"bar",name:"\u8F7B\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:C.\u8F7B\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u4E2D\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:C.\u4E2D\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u91CD\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:C.\u91CD\u5EA6\u51BB\u5BB3}]};me(t,e)}function Ke(){let t=Te.value;console.log("fl:",t),ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res1111:",e),e.data.features.forEach((o,r)=>{const s=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),c=Cesium.Rectangle.center(s);let i=Cesium.Math.toDegrees(c.longitude),v=Cesium.Math.toDegrees(c.latitude);o.properties.XZDM==="370211011"?(i=120.0863,v=35.941):o.properties.XZDM==="370211003"&&(i=120.243682,v=35.97123201);const p=t[o.properties.XZMC];let u=[];p&&(u=p.map((m,d)=>m.properties)),n.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(i,v),point:new Cesium.PointGraphics({show:!0,pixelSize:10,color:Cesium.Color.fromCssColorString("rgba(255, 255, 26, 1)"),outlineColor:new Cesium.Color(0,0,0,0),outlineWidth:0,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),info:{label:u,...o.properties,lon:i,lat:v}})})}).catch(e=>{})}let Te=f({});function et(){ce({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(t=>{let e=t.data.features,a={};e.forEach(o=>{let r=o.properties.town;a[r]?a[r].push(o):a[r]=[o]}),Te.value=a,Ke()}).catch(t=>{})}function ie(){if(g.value&&g.value.lon&&g.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(n.scene,e);if(Cesium.defined(t)){const a=document.getElementById("pop");a&&(a.style.top=t.y-10+"px",a.style.left=t.x+10+"px")}}}function Q(){delete g.value.XZQMC,U="",M(["village_CQL"]),X("villageLine"),X("townLine");const t=document.getElementById("pop");t&&(t.style.display="none"),n.scene.postRender.removeEventListener(ie)}function ne(t){if(g.value.label.length){const e=document.getElementById("pop");e&&(e.style.display="block",e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.zIndex=99)}}return(t,e)=>{const a=k("el-table-column"),o=k("el-table"),r=k("el-tooltip"),s=k("el-option"),c=k("el-select"),i=k("el-checkbox"),v=k("el-checkbox-group"),p=k("el-collapse-item"),u=k("el-collapse"),m=k("el-button");return _(),L("div",vt,[ht,l("div",bt,[l("div",yt,[l("div",_t,[xt,l("p",{onClick:e[0]||(e[0]=d=>Je())},[E(" \u4E0B\u8F7D \xA0 "),wt])]),l("div",{ref_key:"areaDiv",ref:ge,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:Ne,class:"ProgressBar"},null,512)]),l("div",Ct,[l("div",St,[Dt,l("p",{onClick:e[1]||(e[1]=d=>$e())},[E(" \u4E0B\u8F7D \xA0 "),kt])]),l("div",{ref_key:"typesofDiv",ref:ve,class:"typesofDiv"},null,512),l("div",Lt,[x(o,{data:y(le),style:{width:"100%"}},{default:S(()=>[x(a,{prop:"date",label:"\u7C7B\u578B"}),x(a,{prop:"name",label:"\u9762\u79EF"}),x(a,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=d=>qe())},[x(r,{class:"box-item","show-arrow":!1,disabled:y(I),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[y(I)?F("v-if",!0):(_(),L("img",Tt))]),_:1},8,["disabled"]),x(r,{disabled:!y(I),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[y(I)?(_(),L("img",Mt)):F("v-if",!0)]),_:1},8,["disabled"])])]),l("div",zt,[l("div",Wt,[l("div",At,[It,l("p",{onClick:e[3]||(e[3]=d=>Ue())},[E(" \u4E0B\u8F7D \xA0 "),Nt])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),F(' ')]),l("div",Pt,[l("div",Ft,[Bt,l("p",{onClick:e[4]||(e[4]=d=>je())},[E(" \u4E0B\u8F7D \xA0 "),Et])]),x(c,{"popper-class":"select_city",onChange:e[5]||(e[5]=d=>j(t.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=d=>b.value=d),clearable:"",placeholder:"\u5168\u90E8"},{default:S(()=>[(_(!0),L(ue,null,fe(y(w).arr,d=>(_(),pe(s,{key:d.streetCode,label:d.streetName,value:d.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:be,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=d=>Qe())},[x(r,{disabled:!y(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[y(N)?(_(),L("img",Ot)):F("v-if",!0)]),_:1},8,["disabled"]),x(r,{disabled:y(N),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[y(N)?F("v-if",!0):(_(),L("img",Rt))]),_:1},8,["disabled"])])]),l("div",Zt,[x(gt)]),Xt,x(u,{class:"legend",accordion:""},{default:S(()=>[x(p,{name:"1"},{title:S(()=>[E("\u56FE\u4F8B")]),default:S(()=>[l("div",qt,[x(v,{modelValue:xe.value,"onUpdate:modelValue":e[8]||(e[8]=d=>xe.value=d),onChange:t.change},{default:S(()=>[(_(!0),L(ue,null,fe(y(Pe),(d,z,W)=>(_(),pe(i,{key:W,style:lt({backgroundColor:d.color,border:"1px solid value.color",width:"100%"}),"v-model":d.disabled,disabled:d.disabled,label:z},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Qt,[l("div",null,G(ye.value.name)+"\uFF1A",1),l("div",null,G(ye.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:Q},"X")]),l("div",Gt,[(_(!0),L(ue,null,fe(y(g).label,(d,z)=>(_(),L("div",{key:z},[l("div",null,G(d.crop)+"\uFF1A",1),l("div",null,G((d.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),y(g).XZQMC?(_(),L("div",Vt,[Jt,l("div",null,G(y(g).XZQMC),1)])):F("v-if",!0),l("div",{class:"cancel",onClick:Q},"X")]),B.value?(_(),pe(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=d=>Ye())},{default:S(()=>[E("\u8FD4\u56DE")]),_:1})):F("v-if",!0)])}}},oa=at($t,[["__scopeId","data-v-4e1915e9"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/freeze/index.vue"]]);export{oa as default};