import{_ as Xe,r as m,z as W,A as Ze,B as Fe,C as Y,d as M,o as C,c as A,l,m as x,e as T,w as R,g as $,F as fe,D as me,f as N,k as ge,x as k,y as We,p as Re,q as Ne}from"./index.0bad53d2.js";import K from"./downloads.e955445d.js";import{g as ye,a as Oe,b as Ge,c as Qe,u as ve,T as qe,_ as je,d as Je,e as Ue,f as Ve,h as Ye,i as $e}from"./linesGL.0ef36864.js";import{i as H,L as be}from"./index.c9f5bd8b.js";const h=z=>(Re("data-v-7527f9ca"),z=z(),Ne(),z),He={class:"center"},Ke=h(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ea={class:"leftWra"},aa={class:"leftTop"},ta={class:"title"},oa=h(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),ra=h(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),la=h(()=>l("div",{class:"production"},[l("div",{class:"leftProduction"},[l("p",null,[l("span",null,"900"),x(" \u5428 "),l("br"),x(" \u6700\u5C0F\u503C ")])]),l("div",{class:"rightProduction"},[l("p",null,[l("span",null,"960"),x(" \u5428 "),l("br"),x(" \u6700\u5C0F\u503C ")])])],-1)),sa={class:"rightWra"},ia={class:"rightTop"},na={class:"title"},ca=h(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ua=h(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"rightbottom"},pa={class:"title"},fa=h(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ma=h(()=>l("img",{src:K,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={class:"bottom_center"},ya=We('
',1),va={id:"popup"},ba={id:"pop"},ha={key:0},_a=h(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),xa={__name:"index",setup(z){let i=m(null);const ee=m(null),ae=m(null);m(null);const te=m(null),_=m("370211");m(null);let v=W({arr:[],brr:[],crr:[]});W({arr:[]});const oe=m({name:"",value:""});m([]);const re=m([]),I=m(!1);let O=m(!0),G=m(!0);m("{x:765,y:191}");let le=W({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]});Ze(()=>v.arr,e=>{console.log("val:",e)});var Q={title:[]};let q={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};Fe(()=>{ie(),Te(),ne(),Me(),_e(),ue(),ke(),B(),we()});const he={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 _e(){i=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({...he})}),i.cesiumWidget.creditContainer.style.display="none",U("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ce(),Pe()}function j(e,a,o){e.forEach(t=>{let s=[];t[0].forEach(r=>{s.push(r[0]),s.push(r[1])}),i.entities.add({name:a,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function xe(e){return e>48e6?0:e>24e6?1:e>12e6?2:e>6e6?3:e>3e6?4:e>15e5?5:e>75e4?6:e>375e3?7:e>187500?8:e>93750?9:e>46875?10:e>23437.5?11:e>11718.75?12:e>5859.38?13:e>2929.69?14:e>1464.84?15:e>732.42?16:e>366.21?17:18}function we(){Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(e=>{console.log("\u519C\u7530\uFF1A",e),re.value=e.data.features}).catch(e=>{})}let g=m({label:[]}),E="";function Ce(){var e=new Cesium.ScreenSpaceEventHandler(i.canvas);e.setInputAction(function(a){var o=i.camera.getPickRay(a.position),t=i.scene.globe.pick(o,i.scene);if(t){let s=Cesium.Cartographic.fromCartesian(t);if(s){let r=new Cesium.Cartesian2,u=i.camera.positionCartographic.height,c=xe(u);const n=i.imageryLayers._layers,p=n.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(p>-1){const d=n[p];let f=d._imageryProvider;if(f&&f.ready&&f._layers&&d.show===!0){r=f.tilingScheme.positionToTileXY(s,c,r);let D=f.pickFeatures(r.x,r.y,c,s.longitude,s.latitude);D&&D.then(Z=>{if(Z.length>0){let b=Z[0];if(b.properties&&b.properties.XZDM)if(E!==b.properties.XZDM){E=b.properties.XZDM,_.value=E,ce();let L=b.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(L.bbox[0],L.bbox[1],L.bbox[2],L.bbox[3]),duration:2}),S("townLine"),j(L.geometry&&L.geometry.coordinates,"townLine","yellow"),y(["village_CQL"]),se(`XZDM=${b.properties.XZDM}`,"village_CQL");let F=i.entities._entities._array;for(var w=F.length-1;w>=0;w--)if(F[w]._name&&F[w]._name==="point"+b.properties.XZDM){let Be=F[w]._info;g.value=Be,console.log(g.value,"------------------"),V(a.position),i.scene.postRender.addEventListener(pe)}S("villageLine"),P=""}else Se(n,r,c,s);else y(["village_CQL"]),X()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let P="";function Se(e,a,o,t){const s=e.findIndex(r=>r._imageryProvider._layers&&r._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const r=e[s];let u=r._imageryProvider;if(u&&u.ready&&u._layers&&r.show===!0){a=u.tilingScheme.positionToTileXY(t,o,a);let c=u.pickFeatures(a.x,a.y,o,t.longitude,t.latitude);c&&c.then(n=>{if(n.length>0){let p=n[0];if(p.properties&&p.properties.XZQDM&&P!==p.properties.XZQDM){P=p.properties.XZQDM;let d=p.data;if(S("villageLine"),j(d.geometry&&d.geometry.coordinates,"villageLine","yellow"),p.properties.XZQDM==="370211104217"){const f=Cesium.Rectangle.fromDegrees(d.bbox[0],d.bbox[1],d.bbox[2],d.bbox[3]),D=Cesium.Rectangle.center(f);let Z=Cesium.Math.toDegrees(D.longitude),w=Cesium.Math.toDegrees(D.latitude),b={lon:Z,lat:w,...d.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=b}}}})}}}function se(e,a){let o=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:e}});o.customName=a,i.imageryLayers.addImageryProvider(o)}function y(e,a){if(i){const o=i.imageryLayers._layers;for(let t=o.length-1;t>=0;t--)e.forEach(s=>{o[t]._imageryProvider&&o[t]._imageryProvider.customName&&(a?o[t]._imageryProvider.customName.indexOf(s)>-1&&i.imageryLayers.remove(o[t]):o[t]._imageryProvider.customName===s&&i.imageryLayers.remove(o[t]))})}}function S(e){if(i){let o=i.entities._entities._array;for(var a=o.length-1;a>=0;a--)o[a]._name&&o[a]._name===e&&i.entities.remove(o[a])}}function De(){if(O.value=!O.value,O.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function Le(){if(G.value=!G.value,G.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const ie=()=>{ye({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},ne=()=>{Oe().then(e=>{v.arr=e.features,v.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let a=[...e.features],o=[];a.splice(0,1),a.forEach(t=>{o.push(t.properties.XZMC)}),Q.title=[...Object.values(o)],B()})},Me=()=>{Ge().then(e=>{v.brr=e.features})},Te=()=>{Qe().then(e=>{v.crr=e.features,Q.title.forEach((a,o)=>{let t=e.features.map(s=>{if(a===s.properties.town)return s.properties});Object.keys(q).forEach(s=>{const r=t.findIndex(u=>u&&u.crop===s);r>-1?q[s].push(t[r].Shape_Area):q[s].push(null)})}),B()})},ce=()=>{ie(),le.arr=[{name:"\u5C0F\u9EA6",value:20,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:10,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:13,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:18,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u8336\u53F6",value:16,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}],_.value=="370211"&&(y(["village_CQL"]),y(["aaa"]),ne(),le=W({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),X());let e=[...v.arr];console.log("arr:",e),e.forEach(t=>{t.properties.XZDM==_.value&&i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),duration:2});let s=[...v.brr],r=[];s.forEach(u=>{u.properties.XZDM==_.value&&r.push(u.properties.XZQMC)}),Q.title=[...Object.values(r)]}),B(),ue();const o=[...v.arr].find(t=>t.properties.XZDM===_.value);o&&(S("townLine"),j(o.geometry.coordinates,"townLine","yellow")),y(["aaa"]),se(`XZDM=${_.value}`,"aaa"),ye({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(t=>{let s=[];t.data.map((r,u)=>{r.region==o.properties.XZMC&&s.push({crop:r.type,Shape_Area:r.area})}),g.value={label:s},console.log(),console.log(s),V({x:642,y:312})})},J=e=>{Ae(e)},Ae=e=>{let a=document.createElement("a");a.style.display="none",a.href=e,document.body.appendChild(a),a.click(),document.body.removeChild(a)};function ue(){const e=H(ee.value);for(var a=[2,8,5,8,10,12,11],o=[1,7,2,7,9,11,10],t={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:a,lowLine:[]}},s={chart0:{xcategory:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"],low:o,lowLine:[]}},r=[{coords:[]}],u=[{coords:[]}],c=0;c";return p.forEach(function(f){d+='',parseFloat(f.data)>=50?d+=f.seriesName+': '+f.data+"\u5428
":parseFloat(f.data)<50&&(d+=f.seriesName+': '+f.data+"\u5428
")}),d}},legend:{data:["\u6700\u5927\u503C","\u6700\u5C0F\u503C"],textStyle:{fontSize:12,color:"rgb(0,253,255,0.6)"},top:"5%",right:"5%"},grid:{bottom:50,left:70,right:50},xAxis:{axisLine:{show:!0,lineStyle:{color:"#15faff"}},axisTick:{show:!1},axisLabel:{show:!0},data:["2017\u5E74","2018\u5E74","2019\u5E74","2020\u5E74","2021\u5E74","2022\u5E74","2023\u5E74"]},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed",color:"#4b4d64"}},axisLabel:{formatter:"{value}",textStyle:{color:"#ffffff"}}},series:[{name:"\u6700\u5927\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new be(0,0,0,1,[{offset:0,color:"rgba(255, 204,1, .9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#ffcb00"}},data:a},{name:"\u6700\u5927\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,polyline:!0,smooth:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#ffcb00",width:0,opacity:0,curveness:0}},data:r},{name:"\u6700\u5C0F\u503C",type:"line",symbol:"none",symbolSize:10,areaStyle:{normal:{color:new be(0,0,0,1,[{offset:0,color:"rgba(21, 250, 255,.9)"},{offset:.8,color:"rgba(6, 8, 41,.1)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"#15faff"}},data:o},{name:"\u6700\u5C0F\u503C",type:"lines",coordinateSystem:"cartesian2d",zlevel:1,smooth:!0,polyline:!0,symbol:"circle",effect:{show:!0,trailLength:.4,symbol:"circle",period:8,symbolSize:8},lineStyle:{normal:{color:"#15faff",width:0,opacity:0,curveness:0}},data:u}]};n&&e.setOption(n),window.addEventListener("resize",function(){e.resize()})}function ke(){const e=H(ae.value);let o={tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(242, 252, 252, 0.5)"},{offset:.5,color:"rgba(242, 252, 252, 0.3)"},{offset:1,color:"rgba(242, 252, 252, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.5)"},{offset:.5,color:"rgba(143, 186, 243, 0.3)"},{offset:1,color:"rgba(143, 186, 243, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]};e.on("click",function(t){console.log(t.name)}),e.on("click",t=>Ie(t)),o&&e.setOption(o,{notMerge:!0,grid:{bottom:20}}),ve(e,o)}function U(e,a){let o=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});o.customName=a;let t=i.imageryLayers.addImageryProvider(o);a.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(t),i.imageryLayers.raise(t))}function ze(){y(["gbznt"],!0),U("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),I.value=!1}function Ie(e){console.log("item:",e),y(["huangdaoqu_town"],!0),y(["tl"],!0);let a="shuzisannong:farmland",o=!1;const t=i.imageryLayers._layers;for(let r=t.length-1;r>=0;r--)t[r]&&t[r]._imageryProvider.customName&&t[r]._imageryProvider.customName===a+"gbznt"&&(o=!0);o||U(a,a+"gbznt"),re.value.forEach(r=>{console.log("it.properties.name:",r.properties.name),console.log("item.name:",e.name),r.properties.name===e.name&&(console.log("dingwei"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(r.bbox[0],r.bbox[1],r.bbox[2],r.bbox[3]),duration:2}))}),I.value=!0,g.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(g.label),V({x:642,y:312})}function B(){const e=H(te.value);ve(e,{tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},calculable:!0,legend:{top:"7%",right:"5%",icon:"rect",textStyle:{color:"#fff"}},grid:{left:"15%",bottom:"16%",right:"2%"},xAxis:[{type:"category",axisLine:{lineStyle:{color:"rgba(255,255,255,.5)"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.7)",fontSize:14},data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94","\u533A\u57DF\u516D"]}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",nameTextStyle:{color:"rgba(255,255,255,0.8)",fontSize:14,padding:[0,60,0,10]},splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,color:"rgba(255,255,255,0.5)",fontSize:14},splitArea:{show:!1}}],series:[{name:"\u6700\u5927\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:.8,color:"rgba(4, 247, 227, 0.5)"},{offset:1,color:"rgba(4, 247, 227, 0.0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[709,1917,2455,2610,1719,1433]},{name:"\u6700\u5C0F\u503C",type:"bar",barWidth:14,barGap:"85%",label:{show:!1,position:"top",fontSize:14,color:"rgba(255, 255, 255, 1)"},itemStyle:{normal:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.5)"},{offset:.5,color:"rgba(33, 187, 251, 0.3)"},{offset:1,color:"rgba(33, 187, 251, 0)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}},data:[300,500,700,400,600,1200]}]})}function Ee(){let e=de.value;console.log("fl:",e),Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(a=>{console.log("res1111:",a),a.data.features.forEach((t,s)=>{const r=Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),u=Cesium.Rectangle.center(r);let c=Cesium.Math.toDegrees(u.longitude),n=Cesium.Math.toDegrees(u.latitude);t.properties.XZDM==="370211011"?(c=120.0863,n=35.941):t.properties.XZDM==="370211003"&&(c=120.243682,n=35.97123201);const p=e[t.properties.XZMC];let d=[];p&&(d=p.map((f,D)=>f.properties)),i.entities.add({name:"point"+t.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(c,n),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:d,...t.properties,lon:c,lat:n}})})}).catch(a=>{})}let de=m({});function Pe(){Y({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let a=e.data.features,o={};a.forEach(t=>{let s=t.properties.town;o[s]?o[s].push(t):o[s]=[t]}),de.value=o,Ee()}).catch(e=>{})}function pe(){if(g.value&&g.value.lon&&g.value.lat){const a=Cesium.Cartesian3.fromDegrees(Number(g.value.lon),Number(g.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,a);if(Cesium.defined(e)){const o=document.getElementById("pop");o.style.top=e.y-10+"px",o.style.left=e.x+10+"px"}}}function X(){E="",P="",y(["village_CQL"]),y(["aaa"]),S("villageLine"),S("townLine");const e=document.getElementById("pop");e.style.display="none",i.scene.postRender.removeEventListener(pe),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),y(["gbznt"],!0),I.value=!1}function V(e){console.log(e);const a=document.getElementById("pop");a.style.display="block",a.style.position="absolute",a.style.top=e.y-10+"px",a.style.left=e.x+10+"px",a.style.zIndex=99}return(e,a)=>{const o=M("ArrowRightBold"),t=M("el-icon"),s=M("el-option"),r=M("el-select"),u=M("ArrowLeftBold"),c=M("el-button");return C(),A("div",He,[Ke,l("div",ea,[l("div",aa,[l("div",ta,[oa,l("p",{onClick:a[0]||(a[0]=n=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[x(" \u4E0B\u8F7D \xA0 "),ra])]),la,l("div",{ref_key:"areaDiv",ref:ee,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:a[1]||(a[1]=n=>De())},[T(t,null,{default:R(()=>[T(o)]),_:1})])]),l("div",sa,[l("div",ia,[l("div",na,[ca,l("p",{onClick:a[2]||(a[2]=n=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[x(" \u4E0B\u8F7D \xA0 "),ua])]),l("div",{ref_key:"farmlandDiv",ref:ae,class:"farmlandDiv"},null,512),$(' ')]),l("div",da,[l("div",pa,[fa,l("p",{onClick:a[3]||(a[3]=n=>J("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[x(" \u4E0B\u8F7D \xA0 "),ma])]),T(r,{"popper-class":"select_city",onChange:a[4]||(a[4]=n=>ce(e.item)),modelValue:_.value,"onUpdate:modelValue":a[5]||(a[5]=n=>_.value=n),clearable:"",placeholder:"\u5168\u90E8"},{default:R(()=>[(C(!0),A(fe,null,me(N(v).arr,n=>(C(),ge(s,{key:n.properties.XZDM,label:n.properties.XZMC,value:n.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",{ref_key:"ASdivisionDiv",ref:te,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:a[6]||(a[6]=n=>Le())},[T(t,null,{default:R(()=>[T(u)]),_:1})])]),l("div",ga,[T(qe)]),ya,l("div",va,[l("div",null,k(oe.value.name)+"\uFF1A",1),l("div",null,k(oe.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:X},"X")]),l("div",ba,[(C(!0),A(fe,null,me(N(g).label,(n,p)=>(C(),A("div",{key:p},[l("div",null,k(n.crop)+"\uFF1A",1),l("div",null,k((n.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),N(g).XZQMC?(C(),A("div",ha,[_a,l("div",null,k(N(g).XZQMC),1)])):$("v-if",!0),l("div",{class:"cancel",onClick:X},"X")]),I.value?(C(),ge(c,{key:0,class:"back_button",onClick:a[7]||(a[7]=n=>ze())},{default:R(()=>[x("\u8FD4\u56DE")]),_:1})):$("v-if",!0)])}}},La=Xe(xa,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{La as default};