import se from"./downloads.4cdbbcc5.js";import{_ as j}from"./crops.d314ada0.js";import{_ as le}from"./linesGL.99030c5a.js";import{_ as Ve,a as $e,b as Ge,c as je}from"./position.a021215f.js";import{_ as Je,a as Ue}from"./face.2eec3bdc.js";import"./index.e2d056fa.js";import{T as Ye}from"./TimeLine.5d80dd5c.js";import{u as pe}from"./useEcharts.7cdde45a.js";import{g as Me,a as He,b as Ke}from"./classify.74645469.js";import{_ as et,r as b,D as oe,x as tt,t as ot,v as me,d as ae,o as k,c as B,k as a,m as L,y as w,f as g,e as O,w as q,l as Q,P as De,Q as ke,j as Ie,B as at,p as rt,q as st}from"./index.db81687b.js";import{i as re,L as z}from"./install.49294472.js";/* empty css */const x=J=>(rt("data-v-4d906ac8"),J=J(),st(),J),lt={class:"center"},it=x(()=>a("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),nt={class:"leftWra"},ct={class:"leftTop"},dt={class:"title"},ut=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u65F6\u95F4\u7EDF\u8BA1",-1)),ft=x(()=>a("img",{src:se,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pt={class:"leftbottom"},mt={class:"title"},gt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1",-1)),ht=x(()=>a("img",{src:se,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),yt={class:"tableDiv"},vt={class:"Crops"},bt=x(()=>a("div",null,[a("img",{src:j,alt:""}),L(" \u5C0F\u9EA6 ")],-1)),_t={style:{color:"rgba(110, 209, 84, 1)"}},wt={style:{color:"rgba(110, 209, 84, 1)"}},xt={class:"Crops"},St=x(()=>a("div",null,[a("img",{src:j,alt:""}),L(" \u82B1\u751F ")],-1)),Ct={style:{color:"rgba(229, 205, 38, 1)"}},Mt={style:{color:"rgba(229, 205, 38, 1)"}},Dt={class:"Crops"},kt=x(()=>a("div",null,[a("img",{src:j,alt:""}),L(" \u5927\u8C46 ")],-1)),It={style:{color:"rgba(252, 169, 63, 1)"}},Lt={style:{color:"rgba(252, 169, 63, 1)"}},At={class:"Crops"},Pt=x(()=>a("div",null,[a("img",{src:j,alt:""}),L(" \u5730\u74DC ")],-1)),Tt={style:{color:"rgba(103, 153, 242, 1)"}},Bt={style:{color:"rgba(103, 153, 242, 1)"}},zt={class:"Crops"},Rt=x(()=>a("div",null,[a("img",{src:j,alt:""}),L(" \u84DD\u8393 ")],-1)),Et={style:{color:"rgba(4, 179, 228, 1)"}},Wt={style:{color:"rgba(4, 179, 228, 1)"}},Zt={key:0,src:le,alt:""},Xt={key:0,class:"imgrotate",src:le,alt:""},Ft={class:"rightWra"},Nt={class:"rightTop"},Ot={class:"title"},qt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Qt=x(()=>a("img",{src:se,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Vt={class:"rightbottom"},$t={class:"title"},Gt=x(()=>a("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),jt=x(()=>a("img",{src:se,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Jt={key:0,src:le,alt:""},Ut={key:0,class:"imgrotate",src:le,alt:""},Yt={class:"bottom_center"},Ht=at('
',1),Kt={id:"popup"},eo={id:"pop"},to={key:0},oo=x(()=>a("div",null,"\u6751\u540D\uFF1A",-1)),ao={__name:"Area",setup(J){let u=b(null);const ge=b(null),he=b(null),ye=b(null);b(null);const ve=b(null),A=b("370211"),Le=b(null);let R=oe({arr:[],brr:[],crr:[]});oe({arr:[]});const be=b({name:"",value:""});b([]);const _e=b([]),X=b(!1);let E=b(!1),W=b(!1);b("{x:765,y:191}");let U=oe({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}}]}),S={\u5C0F\u9EA6:{value:"12364",percent:"20%"},\u82B1\u751F:{value:"12364",percent:"20%"},\u5927\u8C46:{value:"12364",percent:"20%"},\u5730\u74DC:{value:"12364",percent:"20%"},\u82B1\u751F:{value:"12364",percent:"20%"}};tt(()=>R.arr,e=>{console.log("val:",e)});var ie={title:[]};let V={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},Z={\u5927\u8C46:[1100,1395,1948,2203,3402,1860,2934,2490,2323],\u5C0F\u9EA6:[1283,2883,2939,1233,1992,1928,3949,1929,3434],\u5730\u74DC:[1823,1948,1928,2294,2302,3903,3493,2323,2545],\u82B1\u751F:[2374,1934,3943,3493,2083,1928,2984,3279,1739]};ot(()=>{xe(),Se(),Ze(),Pe(),ce(),de(),Fe(),ee(),Be();let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"});const Ae={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 Pe(){u=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({...Ae})}),u.cesiumWidget.creditContainer.style.display="none",ue("shuzisannong:huangdaoqu_town","tl"),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),ze(),Qe()}function ne(e,t,r){e.forEach(o=>{let s=[];o[0].forEach(n=>{s.push(n[0]),s.push(n[1])}),u.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Te(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 Be(){me({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),_e.value=e.data.features}).catch(e=>{})}let y=b({label:[]}),$="";function ze(){var e=new Cesium.ScreenSpaceEventHandler(u.canvas);e.setInputAction(function(t){var r=u.camera.getPickRay(t.position),o=u.scene.globe.pick(r,u.scene);if(o){let s=Cesium.Cartographic.fromCartesian(o);if(s){let n=new Cesium.Cartesian2,f=u.camera.positionCartographic.height,l=Te(f);const m=u.imageryLayers._layers,c=m.findIndex(p=>p._imageryProvider._layers&&p._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(c>-1){const p=m[c];let d=p._imageryProvider;if(d&&d.ready&&d._layers&&p.show===!0){n=d.tilingScheme.positionToTileXY(s,l,n);let v=d.pickFeatures(n.x,n.y,l,s.longitude,s.latitude);v&&v.then(C=>{if(C.length>0){let h=C[0];if(h.properties&&h.properties.XZDM)if(console.log("XZDM:",$),console.log("newData.properties.XZDM:",h.properties.XZDM),$!==h.properties.XZDM){X.value=!0,$=h.properties.XZDM,A.value=$,H&&H();let i=h.data;u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(i.bbox[0],i.bbox[1],i.bbox[2],i.bbox[3]),duration:2}),F("townLine"),ne(i.geometry&&i.geometry.coordinates,"townLine","yellow"),I(["village_CQL"]),we(`XZDM=${h.properties.XZDM}`,"village_CQL");let D=u.entities._entities._array;for(var _=D.length-1;_>=0;_--)if(D[_]._name&&D[_]._name==="point"+h.properties.XZDM){let P=D[_]._info;y.value=P,console.log(y.value,"------------------"),te(t.position),u.scene.postRender.addEventListener(fe)}F("villageLine"),Y=""}else Re(m,n,l,s,t);else I(["village_CQL"]),G()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let Y="";function Re(e,t,r,o,s){const n=e.findIndex(f=>f._imageryProvider._layers&&f._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(n>-1){const f=e[n];let l=f._imageryProvider;if(l&&l.ready&&l._layers&&f.show===!0){t=l.tilingScheme.positionToTileXY(o,r,t);let m=l.pickFeatures(t.x,t.y,r,o.longitude,o.latitude);m&&m.then(c=>{if(c.length>0){let p=c[0];if(console.log(p),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(p.data.bbox[0],p.data.bbox[1],p.data.bbox[2],p.data.bbox[3]),duration:2}),p.properties&&p.properties.XZQDM&&Y!==p.properties.XZQDM){Y=p.properties.XZQDM;let d=p.data;if(F("villageLine"),ne(d.geometry&&d.geometry.coordinates,"villageLine","yellow"),p.properties.XZQDM==="370211104217"){const v=Cesium.Rectangle.fromDegrees(d.bbox[0],d.bbox[1],d.bbox[2],d.bbox[3]),C=Cesium.Rectangle.center(v);let _=Cesium.Math.toDegrees(C.longitude),h=Cesium.Math.toDegrees(C.latitude),i={lon:_,lat:h,...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}]};y.value=i,te(s.position),u.scene.postRender.addEventListener(fe)}}}})}}}function we(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});r.customName=t,u.imageryLayers.addImageryProvider(r)}function I(e,t){if(u){const r=u.imageryLayers._layers;for(let o=r.length-1;o>=0;o--)e.forEach(s=>{r[o]._imageryProvider&&r[o]._imageryProvider.customName&&(t?r[o]._imageryProvider.customName.indexOf(s)>-1&&u.imageryLayers.remove(r[o]):r[o]._imageryProvider.customName===s&&u.imageryLayers.remove(r[o]))})}}function F(e){if(u){let r=u.entities._entities._array;for(var t=r.length-1;t>=0;t--)r[t]._name&&r[t]._name===e&&u.entities.remove(r[t])}}function Ee(){if(E.value=!E.value,E.value){let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(0,0)")}else{let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)")}}function We(){if(W.value=!W.value,W.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 xe=()=>{Me({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},Se=()=>{He().then(e=>{R.arr=e.features,R.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],r=[];t.splice(0,1),t.forEach(o=>{r.push(o.properties.XZMC)}),ie.title=[...Object.values(r)],ee()})},Ze=()=>{Ke().then(e=>{R.brr=e.features})},H=()=>{if(xe(),Z={\u5927\u8C46:[1034,1295,1348,1203,2402,1160,1934,1490],\u5C0F\u9EA6:[1083,1883,2139,1033,992,1328,2949,1529],\u5730\u74DC:[1223,1548,1828,2094,2202,2903,3293,2023],\u82B1\u751F:[1374,1734,3143,2493,1983,1728,2584,3079]},S={\u5C0F\u9EA6:{value:"2435",percent:"20%"},\u82B1\u751F:{value:"2435",percent:"20%"},\u5927\u8C46:{value:"2435",percent:"20%"},\u5730\u74DC:{value:"2435",percent:"20%"},\u82B1\u751F:{value:"2435",percent:"20%"}},U.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}}],A.value=="370211"){console.log("sssssssssssssssssssss"),I(["village_CQL"]),$=null,I(["aaa"]),Se(),Z={\u5927\u8C46:[1100,1395,1948,2203,3402,1860,2934,2490],\u5C0F\u9EA6:[1283,2883,2939,1233,1992,1928,3949,1929],\u5730\u74DC:[1823,1948,1928,2294,2302,3903,3493,2323],\u82B1\u751F:[2374,1934,3943,3493,2083,1928,2984,3279]},S={\u5C0F\u9EA6:{value:30111,percent:"20%"},\u82B1\u751F:{value:52590,percent:"20%"},\u5927\u8C46:{value:1767,percent:"20%"},\u5730\u74DC:{value:797,percent:"20%"},\u82B1\u751F:{value:1820,percent:"20%"}},U=oe({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}}]}),G(),ee(),ce(),de();return}let e=[...R.arr];console.log("arr:",e),e.forEach(o=>{o.properties.XZDM==A.value&&u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),duration:2});let s=[...R.brr],n=[];s.forEach(f=>{f.properties.XZDM==A.value&&n.push(f.properties.XZQMC)}),ie.title=[...Object.values(n)]}),ee(),ce(),de();const r=[...R.arr].find(o=>o.properties.XZDM===A.value);r&&(F("townLine"),ne(r.geometry.coordinates,"townLine","yellow")),I(["aaa"]),we(`XZDM=${A.value}`,"aaa"),Me({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(o=>{let s=[];o.data.map((n,f)=>{n.region==r.properties.XZMC&&s.push({crop:n.type,Shape_Area:n.area})}),y.value={label:s},console.log(),console.log(s),te({x:642,y:312})})},K=e=>{Xe(e)},Xe=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function ce(){const e=["2023/01/06","2023/02/06","2023/03/06","2023/04/06","2023/05/06","2023/06/06","2023/07/06","2023/08/06"],t=re(ge.value);var r={textStyle:{fontFamily:"Din-Light"},color:["rgba(252, 169, 63, 0.8)","rgba(110, 209, 84, 0.8)","rgba(103, 153, 242, 0.8)","rgba(4, 199, 247, 0.9)","rgba(229, 205, 38, 0.8)","#46caff","#a1e867","#10b2b2","#ec87f7","#f4905a","#00baba","#facf24","#e89d67","#23c6c6","#fa8699","#40b7fc","#006d75","#595959","#f4764f","#a640fc","#fda23f","#2d7ae4","#5092ff","#9351ed","#8a89fe","#df89e8","#2797ff","#6ad089","#7c92e8 "],title:{text:"",left:"47%",textStyle:{fontSize:24}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(0, 255, 233,0)"},{offset:.5,color:"rgba(255, 255, 255,1)"},{offset:1,color:"rgba(0, 255, 233,0)"}],global:!1}}}},grid:{left:60,right:10,top:60,bottom:50},dataZoom:[{type:"slider",zoomLock:!0,show:!1,handleSize:0,startValue:0,endValue:6,height:10,left:"5%",right:"4%",bottom:5,borderColor:"#000",fillerColor:"#269cdb",borderRadius:5,backgroundColor:"#33384b",showDataShadow:!1,showDetail:!1,realtime:!0,filterMode:"filter"},{type:"inside",show:!0,start:1,end:100}],xAxis:{type:"category",boundaryGap:!1,data:e,axisLabel:{color:"rgba(255,255,255,0.7)",formatter:(o,s)=>s===0||s===e.length-1?"":o},axisLine:{show:!1},axisTick:{show:!1}},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:[{name:"\u5927\u8C46",data:Z.\u5927\u8C46,type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{color:"rgba(252, 169, 63, 0.8)",shadowColor:"rgba(18,61,172,0.5)",shadowBlur:10},areaStyle:{normal:{color:new z(0,0,0,1,[{offset:0,color:"rgba(252, 169, 63, 0.8)"},{offset:1,color:"rgba(252, 169, 63, 0)"}],!1)}}},{name:"\u5C0F\u9EA6",data:Z.\u5C0F\u9EA6,type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{color:"rgba(110, 209, 84, 0.8)",shadowColor:"rgba(115,226,226,0.5)",shadowBlur:10},areaStyle:{normal:{color:new z(0,0,0,1,[{offset:0,color:"rgba(110, 209, 84, 0.8)"},{offset:1,color:"rgba(110, 209, 84, 0)"}],!1)}}},{name:"\u5730\u74DC",data:Z.\u5730\u74DC,type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{color:"rgba(103, 153, 242, 0.8)",shadowColor:"rgba(255,126,133,0.5)",shadowBlur:10},areaStyle:{normal:{color:new z(0,0,0,1,[{offset:0,color:"rgba(103, 153, 242, 0.8)"},{offset:1,color:"rgba(103, 153, 242, 0)"}],!1)}}},{name:"\u82B1\u751F",data:Z.\u82B1\u751F,type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{color:"rgba(4, 199, 247, 0.9)",shadowColor:"rgba(255,120,168,0.5)",shadowBlur:10},areaStyle:{normal:{color:new z(0,0,0,1,[{offset:0,color:"rgba(4, 199, 247, 0.9)"},{offset:1,color:"rgba(4, 199, 247, 0)"}],!1)}}},{name:"\u7389\u7C73",data:Z.\u7389\u7C73,type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{color:"rgba(229, 205, 38, 0.8)",shadowColor:"rgba(255,120,168,0.5)",shadowBlur:10},areaStyle:{normal:{color:new z(0,0,0,1,[{offset:0,color:"rgba(229, 205, 38, 0.8)"},{offset:1,color:"rgba(229, 205, 38, 0)"}],!1)}}}]};r&&t.setOption(r),window.addEventListener("resize",function(){t.resize()})}function de(){console.log(U.arr);const e=re(he.value);let t="",r="",o="",s=f(U.arr,.7);function n(l,m,c,p,d,v){const C=(l+m)/2,_=l*Math.PI*2,h=m*Math.PI*2,i=C*Math.PI*2;l===0&&m===1&&(c=!1),d=typeof d<"u"?d:1/3;const D=c?Math.cos(i)*.1:0,P=c?Math.sin(i)*.1:0,N=p?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x(M,T){return M<_?D+Math.cos(_)*(1+Math.cos(T)*d)*N:M>h?D+Math.cos(h)*(1+Math.cos(T)*d)*N:D+Math.cos(M)*(1+Math.cos(T)*d)*N},y(M,T){return M<_?P+Math.sin(_)*(1+Math.cos(T)*d)*N:M>h?P+Math.sin(h)*(1+Math.cos(T)*d)*N:P+Math.sin(M)*(1+Math.cos(T)*d)*N},z(M,T){return M<-Math.PI*.5?Math.sin(M):M>Math.PI*2.5?Math.sin(M)*v*.1:Math.sin(T)>0?1*v*.1:-1}}}function f(l,m){const c=[];let p=0,d=0,v=0;const C=[],_=typeof m<"u"?(1-m)/(1+m):1/3;for(let i=0;i"u"?`series${i}`:l[i].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:l[i],pieStatus:{selected:!1,hovered:!1,k:_}};if(typeof l[i].itemStyle<"u"){const{itemStyle:P}=l[i];typeof l[i].itemStyle.color<"u"&&(P.color=l[i].itemStyle.color),typeof l[i].itemStyle.opacity<"u"&&(P.opacity=l[i].itemStyle.opacity),D.itemStyle=P}c.push(D)}for(let i=0;i{if(i.seriesName!=="mouseoutSeries")return`${i.seriesName}
${h.series[i.seriesIndex].pieData.value}`}},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:10,top:"-5%",left:"-25",viewControl:{alpha:40,beta:30,rotateSensitivity:1,zoomSensitivity:0,panSensitivity:0,autoRotate:!0,distance:170},postEffect:{enable:!0,bloom:{enable:!0,bloomIntensity:1},SSAO:{enable:!0,quality:"medium",radius:2}}},series:c};return h}e.on("mouseover",function(l){let m,c,p,d,v,C;o!==l.seriesIndex&&(o!==""&&(m=s.series[o].pieStatus.selected,c=!1,p=s.series[o].pieData.startRatio,d=s.series[o].pieData.endRatio,v=s.series[o].pieStatus.k,C=s.series[o].pieData.value===s.series[0].pieData.value?35:10,s.series[o].parametricEquation=n(p,d,m,c,v,C),s.series[o].pieStatus.hovered=c,o=""),l.seriesName!=="mouseoutSeries"&&(m=s.series[l.seriesIndex].pieStatus.selected,c=!0,p=s.series[l.seriesIndex].pieData.startRatio,d=s.series[l.seriesIndex].pieData.endRatio,v=s.series[l.seriesIndex].pieStatus.k,s.series[l.seriesIndex].parametricEquation=n(p,d,m,c,v,s.series[l.seriesIndex].pieData.value+5),s.series[l.seriesIndex].pieStatus.hovered=c,o=l.seriesIndex),e.setOption(s))}),e.on("globalout",function(){if(o!==""){t=s.series[o].pieStatus.selected,r=!1;let l=s.series[o].pieStatus.k,m=s.series[o].pieData.startRatio,c=s.series[o].pieData.endRatio,p=s.series[o].pieData.value===s.series[0].pieData.value?35:10;s.series[o].parametricEquation=n(m,c,t,r,l,p),s.series[o].pieStatus.hovered=r,o=""}e.setOption(s)}),pe(e,s)}function Fe(){const e=re(ye.value);var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{top:"7%",left:"17%",icon:"rect",textStyle:{color:"#fff"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"value",axisLine:{lineStyle:{color:"rgba(255,255,255,0.8)"}},splitLine:{lineStyle:{color:"rgba(255,255,255,0.3)"}}},yAxis:{type:"category",data:["\u7247\u533A7","\u7247\u533A6","\u7247\u533A5","\u7247\u533A4","\u7247\u533A3","\u7247\u533A2","\u7247\u533A1"],axisLabel:{color:"rgba(255,255,255,0.8)"},axisTick:{lineStyle:{color:"#668092",width:1},show:!1}},series:[{name:"\u5C0F\u9EA6",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new z(0,0,1,0,[{offset:0,color:"rgba(33, 187, 251, 0.05)"},{offset:1,color:"rgba(33, 187, 251, 0.9)"}]),shadowBlur:16,shadowColor:"rgba(7,165,255,1)"}},{name:"\u82B1\u751F",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new z(0,0,1,0,[{offset:0,color:"rgba(4, 247, 227, 0.05)"},{offset:1,color:"rgba(4, 247, 227, 0.9)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}},{name:"\u5927\u8C46",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521,232,343],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new z(0,0,1,0,[{offset:0,color:"rgba(143, 186, 243, 0.05)"},{offset:1,color:"rgba(143, 186, 243, 0.9)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}},{name:"\u5730\u74DC",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521,234,321],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new z(0,0,1,0,[{offset:0,color:"rgba(255, 225, 104, 0.05)"},{offset:1,color:"rgba(255, 225, 104, 1)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}}]};e.on("click",function(r){console.log(r.name)}),e.on("click",r=>Oe(r)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),pe(e,t)}function ue(e,t){let r=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});r.customName=t;let o=u.imageryLayers.addImageryProvider(r);t.indexOf("gbznt")>-1&&(u.imageryLayers.lowerToBottom(o),u.imageryLayers.raise(o))}function Ne(){delete y.value.XZQMC,I(["gbznt"],!0),I(["aaa"]),A.value="370211",H(),X.value==="1"&&(console.log(X.value),ue("shuzisannong:huangdaoqu_town","tl")),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),X.value=!1,G()}function Oe(e){delete y.value,I(["huangdaoqu_town"],!0),I(["tl"],!0);let t="shuzisannong:farmland",r=!1;const o=u.imageryLayers._layers;for(let n=o.length-1;n>=0;n--)o[n]&&o[n]._imageryProvider.customName&&o[n]._imageryProvider.customName===t+"gbznt"&&(r=!0);r||(ue(t,t+"gbznt"),y.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),_e.value.forEach(n=>{console.log("it.properties.name:",n.properties.name),console.log("item.name:",e.name),n.properties.name===e.name&&(console.log("dingwei"),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(n.bbox[0],n.bbox[1],n.bbox[2],n.bbox[3]),duration:2}))}),X.value="1",te({x:642,y:312})}function ee(){const e=re(ve.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(r){return r.seriesName+''+(r.value/66.72).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:ie.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u7389\u7C73",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:V.\u7389\u7C73},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5927\u8C46",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:V.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u82B1\u751F",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:V.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5C0F\u9EA6",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:V.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u84DD\u8393",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(14, 223, 255, 0.9)"},{offset:1,color:"rgba(14, 223, 255, 0.25)"}]}},data:V.\u84DD\u8393}]};pe(e,t)}function qe(){let e=Ce.value;console.log("fl:",e),me({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("res1111:",t),t.data.features.forEach((o,s)=>{const n=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),f=Cesium.Rectangle.center(n);let l=Cesium.Math.toDegrees(f.longitude),m=Cesium.Math.toDegrees(f.latitude);o.properties.XZDM==="370211011"?(l=120.0863,m=35.941):o.properties.XZDM==="370211003"&&(l=120.243682,m=35.97123201);const c=e[o.properties.XZMC];let p=[];c&&(p=c.map((d,v)=>d.properties)),u.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(l,m),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:p,...o.properties,lon:l,lat:m}})})}).catch(t=>{})}let Ce=b({});function Qe(){me({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let t=e.data.features,r={};t.forEach(o=>{let s=o.properties.town;r[s]?r[s].push(o):r[s]=[o]}),Ce.value=r,qe()}).catch(e=>{})}function fe(){if(y.value&&y.value.lon&&y.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(y.value.lon),Number(y.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(u.scene,t);if(Cesium.defined(e)){const r=document.getElementById("pop");r&&(r.style.top=e.y-10+"px",r.style.left=e.x+10+"px")}}}function G(){delete y.value.XZQMC,Y="",I(["village_CQL"]),F("villageLine"),F("townLine");const e=document.getElementById("pop");e&&(e.style.display="none"),u.scene.postRender.removeEventListener(fe)}function te(e){if(y.value.label.length){const t=document.getElementById("pop");t&&(t.style.display="block",t.style.position="absolute",t.style.top=e.y-10+"px",t.style.left=e.x+10+"px",t.style.zIndex=99)}}return(e,t)=>{const r=ae("el-tooltip"),o=ae("el-option"),s=ae("el-select"),n=ae("el-button");return k(),B("div",lt,[it,a("div",nt,[a("div",ct,[a("div",dt,[ut,a("p",{onClick:t[0]||(t[0]=f=>K("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianj_zuoshang.xlsx"))},[L(" \u4E0B\u8F7D \xA0 "),ft])]),a("div",{ref_key:"areaDiv",ref:ge,class:"areaDiv"},null,512),a("div",{ref_key:"leftProgressBarDiv",ref:Le,class:"ProgressBar"},null,512)]),a("div",pt,[a("div",mt,[gt,a("p",{onClick:t[1]||(t[1]=f=>K("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[L(" \u4E0B\u8F7D \xA0 "),ht])]),a("div",{ref_key:"typesofDiv",ref:he,class:"typesofDiv"},null,512),a("div",yt,[a("div",vt,[bt,a("div",_t,w(g(S).\u5C0F\u9EA6.value)+"\u4EA9 ",1),a("div",wt,w(g(S).\u5C0F\u9EA6.percent),1)]),a("div",xt,[St,a("div",Ct,w(g(S).\u82B1\u751F.value)+"\u4EA9 ",1),a("div",Mt,w(g(S).\u82B1\u751F.percent),1)]),a("div",Dt,[kt,a("div",It,w(g(S).\u5927\u8C46.value)+"\u4EA9 ",1),a("div",Lt,w(g(S).\u5927\u8C46.percent),1)]),a("div",At,[Pt,a("div",Tt,w(g(S).\u5730\u74DC.value)+"\u4EA9 ",1),a("div",Bt,w(g(S).\u5730\u74DC.percent),1)]),a("div",zt,[Rt,a("div",Et,w(g(S).\u82B1\u751F.value)+"\u4EA9 ",1),a("div",Wt,w(g(S).\u82B1\u751F.percent),1)])])]),a("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=f=>Ee())},[O(r,{class:"box-item","show-arrow":!1,disabled:g(E),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:q(()=>[g(E)?Q("",!0):(k(),B("img",Zt))]),_:1},8,["disabled"]),O(r,{disabled:!g(E),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:q(()=>[g(E)?(k(),B("img",Xt)):Q("",!0)]),_:1},8,["disabled"])])]),a("div",Ft,[a("div",Nt,[a("div",Ot,[qt,a("p",{onClick:t[3]||(t[3]=f=>K("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"))},[L(" \u4E0B\u8F7D \xA0 "),Qt])]),a("div",{ref_key:"farmlandDiv",ref:ye,class:"farmlandDiv"},null,512)]),a("div",Vt,[a("div",$t,[Gt,a("p",{onClick:t[4]||(t[4]=f=>K("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"))},[L(" \u4E0B\u8F7D \xA0 "),jt])]),O(s,{"popper-class":"select_city",onChange:t[5]||(t[5]=f=>H(e.item)),modelValue:A.value,"onUpdate:modelValue":t[6]||(t[6]=f=>A.value=f),placeholder:"\u5168\u90E8"},{default:q(()=>[(k(!0),B(De,null,ke(g(R).arr,f=>(k(),Ie(o,{key:f.properties.XZDM,label:f.properties.XZMC,value:f.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a("div",{ref_key:"ASdivisionDiv",ref:ve,class:"ASdivision"},null,512)]),a("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=f=>We())},[O(r,{disabled:!g(W),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:q(()=>[g(W)?(k(),B("img",Jt)):Q("",!0)]),_:1},8,["disabled"]),O(r,{disabled:g(W),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:q(()=>[g(W)?Q("",!0):(k(),B("img",Ut))]),_:1},8,["disabled"])])]),a("div",Yt,[O(Ye)]),Ht,a("div",Kt,[a("div",null,w(be.value.name)+"\uFF1A",1),a("div",null,w(be.value.value)+"\u4EA9",1),a("div",{class:"cancel",onClick:G},"X")]),a("div",eo,[(k(!0),B(De,null,ke(g(y).label,(f,l)=>(k(),B("div",{key:l},[a("div",null,w(f.crop)+"\uFF1A",1),a("div",null,w((f.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),g(y).XZQMC?(k(),B("div",to,[oo,a("div",null,w(g(y).XZQMC),1)])):Q("",!0),a("div",{class:"cancel",onClick:G},"X")]),X.value?(k(),Ie(n,{key:0,class:"back_button",onClick:t[8]||(t[8]=f=>Ne())},{default:q(()=>[L("\u8FD4\u56DE")]),_:1})):Q("",!0)])}}},yo=et(ao,[["__scopeId","data-v-4d906ac8"]]);export{yo as default};