Agriculture-front-end/dist/assets/Area.c9643e70.js

2 lines
33 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import e from"./downloads.e955445d.js";import{_ as a}from"./close1.62ba8f4e.js";import{_ as t,a as o,b as r,c as i}from"./position.3b2b2301.js";import{_ as s,a as l}from"./face.d3470a20.js";import"./index.2809c208.js";import{T as n}from"./TimeLine.89abb5b7.js";import{u as c}from"./useEcharts.31b48034.js";import{g as d,a as p,b as u}from"./classify.05fc4497.js";import{_ as m,r as g,I as f,x as h,aa as b,d as y,o as v,c as w,l as x,n as S,A as C,f as M,e as D,w as A,m as I,V as L,W as k,k as _,F as B,q as T,s as P}from"./index.e5c8b0d6.js";import"./linesGL.76a64914.js";import{ai as Z,aj as E}from"./linkSeriesData.e74eae00.js";/* empty css */const z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAOtSURBVEiJlZbPixxFFMc/71V193RPNru4GFFyyCEg5DpBMOSwf4Q3QUTBg7eIf4fBiwcVPIog+C/MIeYQ2HiIBMQcctiLgQR2x52Z7q6q52Gm53d24zt1d3V/P/VeVX9fCZthJlvPXhci9kavXQK4CLgEXAJbiqwDBOCIocIRI44XY3sMDIYMObI56FLYLogAOgA55ZkCBLwEvAB4gnmC5TRWMrFjBuky2CpE51d6i6c6ptKGQg/w2nCqCZWEiickR7SCOp1xNXqCXedmHC5BtglSzGQFIB2gYux7TLLEywIoKsa9Cno9pqUhhXGQe0JeMfbPee4HoLPyzie+Uv5OfJFZQy4TSjem8p4yE9xvOfpV4EoZqcuWrPL4qkHKinHPOMgL6uwfTvwLru0E+Y2y6T59t8+JH7HnS06LmupbSL8K4gT/GJo/lRgFa1uyFs6dIE2fc8ZUNpptiE7PZuIzmgJyE5zjr9zTzxKjwpAiR4qA/9Gwu/MP70fSzx5pHTZtyafCpFasNmga8na+Rt2GWJZrAPI2JxpxUjN1LZlzZL6GAta29z2HPjLcJxEtM5oekDsKP6Xn9jl1o1kma2sigEx4Kue80oRKhUgGvyjOFzgfiT9tbkZI9wweR+Tz2WSC7+O15bqc8kyPGC5AOsti+bMFvAZqBe5E4peJQhX9G3jIjjDk64h8UeC0ZayBl1suoQB7jBZ7eo9/ZSlgH+wS3gwhfTgl3X7duAKdRQBwTpU8hwl46PGfCuemFBG4szsT+1jQz4TykSOZ53DLWhYLX3LLMlpTko0ZmaHfBFJskDbRfDQr7+r3eh8YePgjoW1GiBlNyjixnMZWvA3fXRyD3eAwFdTJ049G+D0x7eWoi8jtTl6QBwF+8KQnik1rqD3aBCahpYw1RTrk5ZqX+ZWpmSfYW7wfGo51xHuhpGmFnEC8K6QHCb4DeZJhKaFtoGk9ZW1MmoBvp/TCO1yPx9xIywUTkxWPUUBu8NxPKN01XuSe0tf4e5Ak0n4PvXk2E0tom5MFY9IGXHtOP1zlLF7jRRpytPgRNyHCzCBdZ5BTei6n8S2ZK1FJiAA0hFjQxAm9eIV+OGMSK8ZpF6AT7oxskVHnxFc5c4F3ZcrIJbTrJ3OrP0ivaFOPadrnNF3UV3Y1LQWka1pds1ptWgAV41QysT1Gtjb7FfHF7Q7IonQza+ja7wA4BmYteLg+661GtRuyDdoeX491wQsOE9si/+dIdIn46yEXQd/wnLUZ/wEOXMcq4gqm8QAAAABJRU5ErkJggg==",R=e=>(T("data-v-cc50d6dc"),e=e(),P(),e),F={class:"center"},X=R((()=>x("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1))),W={class:"leftWra"},Q={class:"leftTop"},j={class:"title"},O=R((()=>x("span",null,"种植面积时间统计",-1))),G=R((()=>x("img",{src:e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),q={class:"leftbottom"},N={class:"title"},J=R((()=>x("span",null,"种植面积统计",-1))),U=R((()=>x("img",{src:e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),Y={class:"tableDiv"},V={class:"Crops"},H=R((()=>x("div",null,[x("img",{src:z,alt:""}),S(" 小麦 ")],-1))),K={style:{color:"rgba(110, 209, 84, 1)"}},$={style:{color:"rgba(110, 209, 84, 1)"}},ee={class:"Crops"},ae=R((()=>x("div",null,[x("img",{src:z,alt:""}),S(" 花生 ")],-1))),te={style:{color:"rgba(229, 205, 38, 1)"}},oe={style:{color:"rgba(229, 205, 38, 1)"}},re={class:"Crops"},ie=R((()=>x("div",null,[x("img",{src:z,alt:""}),S(" 大豆 ")],-1))),se={style:{color:"rgba(252, 169, 63, 1)"}},le={style:{color:"rgba(252, 169, 63, 1)"}},ne={class:"Crops"},ce=R((()=>x("div",null,[x("img",{src:z,alt:""}),S(" 地瓜 ")],-1))),de={style:{color:"rgba(103, 153, 242, 1)"}},pe={style:{color:"rgba(103, 153, 242, 1)"}},ue={class:"Crops"},me=R((()=>x("div",null,[x("img",{src:z,alt:""}),S(" 蓝莓 ")],-1))),ge={style:{color:"rgba(4, 179, 228, 1)"}},fe={style:{color:"rgba(4, 179, 228, 1)"}},he={key:0,src:a,alt:""},be={key:0,class:"imgrotate",src:a,alt:""},ye={class:"rightWra"},ve={class:"rightTop"},we={class:"title"},xe=R((()=>x("span",null,"种植面积统计-高标准农田",-1))),Se=R((()=>x("img",{src:e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),Ce={class:"rightbottom"},Me={class:"title"},De=R((()=>x("span",null,"种植面积统计-行政区划",-1))),Ae=R((()=>x("img",{src:e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),Ie={key:0,src:a,alt:""},Le={key:0,class:"imgrotate",src:a,alt:""},ke={class:"bottom_center"},_e=B('<div class="tool" data-v-cc50d6dc><span data-v-cc50d6dc><img src="'+t+'" alt="" data-v-cc50d6dc></span><span data-v-cc50d6dc><img src="'+o+'" alt="" data-v-cc50d6dc></span><span data-v-cc50d6dc><img src="'+r+'" alt="" data-v-cc50d6dc></span><span data-v-cc50d6dc><img src="'+s+'" alt="" data-v-cc50d6dc></span><span data-v-cc50d6dc><img src="'+l+'" alt="" data-v-cc50d6dc></span><span data-v-cc50d6dc><img src="'+i+'" alt="" data-v-cc50d6dc></span></div>',1),Be={id:"popup"},Te={id:"pop"},Pe={key:0},Ze=R((()=>x("div",null,"村名:",-1))),Ee=m({__name:"Area",setup(e){let a=g(null);const t=g(null),o=g(null),r=g(null);g(null);const i=g(null),s=g("370211"),l=g(null);let m=f({arr:[],brr:[],crr:[]});f({arr:[]});const B=g({name:"",value:""});g([]);const T=g([]),P=g(!1);let z=g(!1),R=g(!1);g("{x:765,y:191}");let Ee=f({arr:[{name:"小麦",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"花生",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"大豆",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"地瓜",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"蓝莓",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"茶叶",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),ze={"小麦":{value:"12364",percent:"20%"},"花生":{value:"12364",percent:"20%"},"大豆":{value:"12364",percent:"20%"},"地瓜":{value:"12364",percent:"20%"},"花生":{value:"12364",percent:"20%"}};var Re={title:[]};let Fe={"小麦":[],"玉米":[],"大豆":[],"地瓜":[],"花生":[],"蓝莓":[],"茶叶":[],"马铃薯":[],"白菜和萝卜":[],"其他":[]},Xe={"大豆":[1100,1395,1948,2203,3402,1860,2934,2490,2323],"小麦":[1283,2883,2939,1233,1992,1928,3949,1929,3434],"地瓜":[1823,1948,1928,2294,2302,3903,3493,2323,2545],"花生":[2374,1934,3943,3493,2083,1928,2984,3279,1739]};h((()=>{Ue(),Ye(),a=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({...We})}),a.cesiumWidget.creditContainer.style.display="none",aa("shuzisannong:huangdaoqu_town","tl"),a.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),new Cesium.ScreenSpaceEventHandler(a.canvas).setInputAction((function(e){var t,o=a.camera.getPickRay(e.position),r=a.scene.globe.pick(o,a.scene);if(r){let o=Cesium.Cartographic.fromCartesian(r);if(o){let r=new Cesium.Cartesian2,i=a.camera.positionCartographic.height,l=(t=i)>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;const n=a.imageryLayers._layers,c=n.findIndex((e=>e._imageryProvider._layers&&"shuzisannong:huangdaoqu_town"===e._imageryProvider._layers));if(c>-1){const t=n[c];let i=t._imageryProvider;if(i&&i.ready&&i._layers&&!0===t.show){r=i.tilingScheme.positionToTileXY(o,l,r);let t=i.pickFeatures(r.x,r.y,l,o.longitude,o.latitude);t&&t.then((t=>{if(t.length>0){let c=t[0];if(c.properties&&c.properties.XZDM)if(Oe!==c.properties.XZDM){P.value=!0,Oe=c.properties.XZDM,s.value=Oe,Ve&&Ve();let t=c.data;a.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),duration:2}),Je("townLine"),Qe(t.geometry&&t.geometry.coordinates,"townLine","yellow"),Ne(["village_CQL"]),qe(`XZDM=${c.properties.XZDM}`,"village_CQL");let o=a.entities._entities._array;for(var i=o.length-1;i>=0;i--)if(o[i]._name&&o[i]._name==="point"+c.properties.XZDM){let t=o[i]._info;je.value=t,sa(e.position),a.scene.postRender.addEventListener(ra)}Je("villageLine"),Ge=""}else!function(e,t,o,r,i){const s=e.findIndex((e=>e._imageryProvider._layers&&"shuzisannong:huangdaoqu_village"===e._imageryProvider._layers));if(s>-1){const l=e[s];let n=l._imageryProvider;if(n&&n.ready&&n._layers&&!0===l.show){t=n.tilingScheme.positionToTileXY(r,o,t);let e=n.pickFeatures(t.x,t.y,o,r.longitude,r.latitude);e&&e.then((e=>{if(e.length>0){let t=e[0];if(a.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(t.data.bbox[0],t.data.bbox[1],t.data.bbox[2],t.data.bbox[3]),duration:2}),t.properties&&t.properties.XZQDM&&Ge!==t.properties.XZQDM){Ge=t.properties.XZQDM;let e=t.data;if(Je("villageLine"),Qe(e.geometry&&e.geometry.coordinates,"villageLine","yellow"),"370211104217"===t.properties.XZQDM){const t=Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),o=Cesium.Rectangle.center(t);let r={lon:Cesium.Math.toDegrees(o.longitude),lat:Cesium.Math.toDegrees(o.latitude),...e.properties,label:[{crop:"茶叶",Shape_Area:2820},{crop:"大豆",Shape_Area:2767},{crop:"花生",Shape_Area:62356},{crop:"蓝莓",Shape_Area:5443},{crop:"地瓜",Shape_Area:897},{crop:"小麦",Shape_Area:20111}]};je.value=r,sa(i.position),a.scene.postRender.addEventListener(ra)}}}}))}}}(n,r,l,o,e);else Ne(["village_CQL"]),ia()}}))}}}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),b({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,o={};t.forEach((e=>{let a=e.properties.town;o[a]?o[a].push(e):o[a]=[e]})),oa.value=o,function(){let e=oa.value;b({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then((t=>{t.data.features.forEach(((t,o)=>{const r=Cesium.Rectangle.fromDegrees(t.bbox[0],t.bbox[1],t.bbox[2],t.bbox[3]),i=Cesium.Rectangle.center(r);let s=Cesium.Math.toDegrees(i.longitude),l=Cesium.Math.toDegrees(i.latitude);"370211011"===t.properties.XZDM?(s=120.0863,l=35.941):"370211003"===t.properties.XZDM&&(s=120.243682,l=35.97123201);const n=e[t.properties.XZMC];let c=[];n&&(c=n.map(((e,a)=>e.properties))),a.entities.add({name:"point"+t.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(s,l),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:c,...t.properties,lon:s,lat:l}})}))})).catch((e=>{}))}()})).catch((e=>{})),$e(),ea(),function(){const e=Z(r.value);var a={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:["片区7","片区6","片区5","片区4","片区3","片区2","片区1"],axisLabel:{color:"rgba(255,255,255,0.8)"},axisTick:{lineStyle:{color:"#668092",width:1},show:!1}},series:[{name:"小麦",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new E(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:"花生",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 E(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:"大豆",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 E(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:"地瓜",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 E(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"}}]};a&&e.setOption(a,{notMerge:!0,grid:{bottom:20}}),c(e,a)}(),ta(),b({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=>{T.value=e.data.features})).catch((e=>{}));let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)"),document.querySelector(".rightWra").style.transform="translate(101%,0)"}));const We={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};function Qe(e,t,o){e.forEach((e=>{let r=[];e[0].forEach((e=>{r.push(e[0]),r.push(e[1])})),a.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})}))}Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";let je=g({label:[]}),Oe="";let Ge="";function qe(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:`${serverAPI.geoserverUrl}/shuzisannong/wms`,layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:e}});o.customName=t,a.imageryLayers.addImageryProvider(o)}function Ne(e,t){if(a){const o=a.imageryLayers._layers;for(let r=o.length-1;r>=0;r--)e.forEach((e=>{o[r]._imageryProvider&&o[r]._imageryProvider.customName&&(t?o[r]._imageryProvider.customName.indexOf(e)>-1&&a.imageryLayers.remove(o[r]):o[r]._imageryProvider.customName===e&&a.imageryLayers.remove(o[r]))}))}}function Je(e){if(a){let o=a.entities._entities._array;for(var t=o.length-1;t>=0;t--)o[t]._name&&o[t]._name===e&&a.entities.remove(o[t])}}const Ue=()=>{d().then((e=>{m.arr=e.features,m.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"全部"}});let a=[...e.features],t=[];a.splice(0,1),a.forEach((e=>{t.push(e.properties.XZMC)})),Re.title=[...Object.values(t)],ta()}))},Ye=()=>{p().then((e=>{m.brr=e.features}))},Ve=()=>{if(getArea(),Xe={"大豆":[1034,1295,1348,1203,2402,1160,1934,1490],"小麦":[1083,1883,2139,1033,992,1328,2949,1529],"地瓜":[1223,1548,1828,2094,2202,2903,3293,2023],"花生":[1374,1734,3143,2493,1983,1728,2584,3079]},ze={"小麦":{value:"2435",percent:"20%"},"花生":{value:"2435",percent:"20%"},"大豆":{value:"2435",percent:"20%"},"地瓜":{value:"2435",percent:"20%"},"花生":{value:"2435",percent:"20%"}},Ee.arr=[{name:"小麦",value:20,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"花生",value:10,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"大豆",value:13,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"地瓜",value:18,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"茶叶",value:16,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}],"370211"==s.value)return Ne(["village_CQL"]),Oe=null,Ne(["aaa"]),Ue(),Xe={"大豆":[1100,1395,1948,2203,3402,1860,2934,2490],"小麦":[1283,2883,2939,1233,1992,1928,3949,1929],"地瓜":[1823,1948,1928,2294,2302,3903,3493,2323],"花生":[2374,1934,3943,3493,2083,1928,2984,3279]},areatext="8383894",ze={"小麦":{value:30111,percent:"20%"},"花生":{value:52590,percent:"20%"},"大豆":{value:1767,percent:"20%"},"地瓜":{value:797,percent:"20%"},"花生":{value:1820,percent:"20%"}},Ee=f({arr:[{name:"小麦",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"花生",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"大豆",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"地瓜",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"蓝莓",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"茶叶",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),ia(),ta(),$e(),void ea();areatext="1293842",[...m.arr].forEach((e=>{e.properties.XZDM==s.value&&a.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]),duration:2});let t=[...m.brr],o=[];t.forEach((e=>{e.properties.XZDM==s.value&&o.push(e.properties.XZQMC)})),Re.title=[...Object.values(o)]})),ta(),$e(),ea();const e=[...m.arr].find((e=>e.properties.XZDM===s.value));e&&(Je("townLine"),Qe(e.geometry.coordinates,"townLine","yellow")),Ne(["aaa"]),qe(`XZDM=${s.value}`,"aaa"),u({time:"2023-04-26",subregion:"1",parent:"黄岛区"}).then((a=>{let t=[];a.data.map(((a,o)=>{a.region==e.properties.XZMC&&t.push({crop:a.type,Shape_Area:a.area})})),je.value={label:t},sa({x:642,y:312})}))},He=e=>{Ke(e)},Ke=e=>{let a=document.createElement("a");a.style.display="none",a.href=e,document.body.appendChild(a),a.click(),document.body.removeChild(a)};function $e(){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"],a=Z(t.value);var o={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:(a,t)=>0===t||t===e.length-1?"":a},axisLine:{show:!1},axisTick:{show:!1}},yAxis:{name:"面积(亩)",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:"大豆",data:Xe.大豆,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 E(0,0,0,1,[{offset:0,color:"rgba(252, 169, 63, 0.8)"},{offset:1,color:"rgba(252, 169, 63, 0)"}],!1)}}},{name:"小麦",data:Xe.小麦,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 E(0,0,0,1,[{offset:0,color:"rgba(110, 209, 84, 0.8)"},{offset:1,color:"rgba(110, 209, 84, 0)"}],!1)}}},{name:"地瓜",data:Xe.地瓜,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 E(0,0,0,1,[{offset:0,color:"rgba(103, 153, 242, 0.8)"},{offset:1,color:"rgba(103, 153, 242, 0)"}],!1)}}},{name:"花生",data:Xe.花生,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 E(0,0,0,1,[{offset:0,color:"rgba(4, 199, 247, 0.9)"},{offset:1,color:"rgba(4, 199, 247, 0)"}],!1)}}},{name:"玉米",data:Xe.玉米,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 E(0,0,0,1,[{offset:0,color:"rgba(229, 205, 38, 0.8)"},{offset:1,color:"rgba(229, 205, 38, 0)"}],!1)}}}]};o&&a.setOption(o),window.addEventListener("resize",(function(){a.resize()}))}function ea(){const e=Z(o.value);let a="",t="",r="",i=function(e,a){const t=[];let o=0,r=0,i=0;const l=[],n=void 0!==a?(1-a)/(1+a):1/3;for(let s=0;s<e.length;s+=1){o+=e[s].value;const a={name:void 0===e[s].name?`series${s}`:e[s].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[s],pieStatus:{selected:!1,hovered:!1,k:n}};if(void 0!==e[s].itemStyle){const{itemStyle:t}=e[s];void 0!==e[s].itemStyle.color&&(t.color=e[s].itemStyle.color),void 0!==e[s].itemStyle.opacity&&(t.opacity=e[s].itemStyle.opacity),a.itemStyle=t}t.push(a)}for(let d=0;d<t.length;d+=1)i=r+t[d].pieData.value,t[d].pieData.startRatio=r/o,t[d].pieData.endRatio=i/o,t[d].parametricEquation=s(t[d].pieData.startRatio,t[d].pieData.endRatio,!1,!1,n,t[d].pieData.value===t[0].pieData.value?35:10),r=i,l.push(t[d].name);const c={legend:{orient:"vertical",right:0,show:!0,top:20,textStyle:{color:"rgba(255,255,255,.9)"}},tooltip:{formatter:e=>{if("mouseoutSeries"!==e.seriesName)return`${e.seriesName}<br/><span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${e.color};"></span>${c.series[e.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:t};return c}(Ee.arr,.7);function s(e,a,t,o,r,i){const s=(e+a)/2,l=e*Math.PI*2,n=a*Math.PI*2,c=s*Math.PI*2;0===e&&1===a&&(t=!1),r=void 0!==r?r:1/3;const d=t?.1*Math.cos(c):0,p=t?.1*Math.sin(c):0,u=o?1.05:1;return{u:{min:-Math.PI,max:3*Math.PI,step:Math.PI/32},v:{min:0,max:2*Math.PI,step:Math.PI/20},x:(e,a)=>e<l?d+Math.cos(l)*(1+Math.cos(a)*r)*u:e>n?d+Math.cos(n)*(1+Math.cos(a)*r)*u:d+Math.cos(e)*(1+Math.cos(a)*r)*u,y:(e,a)=>e<l?p+Math.sin(l)*(1+Math.cos(a)*r)*u:e>n?p+Math.sin(n)*(1+Math.cos(a)*r)*u:p+Math.sin(e)*(1+Math.cos(a)*r)*u,z:(e,a)=>e<.5*-Math.PI?Math.sin(e):e>2.5*Math.PI?Math.sin(e)*i*.1:Math.sin(a)>0?1*i*.1:-1}}e.on("mouseover",(function(a){let t,o,l,n,c,d;r!==a.seriesIndex&&(""!==r&&(t=i.series[r].pieStatus.selected,o=!1,l=i.series[r].pieData.startRatio,n=i.series[r].pieData.endRatio,c=i.series[r].pieStatus.k,d=i.series[r].pieData.value===i.series[0].pieData.value?35:10,i.series[r].parametricEquation=s(l,n,t,o,c,d),i.series[r].pieStatus.hovered=o,r=""),"mouseoutSeries"!==a.seriesName&&(t=i.series[a.seriesIndex].pieStatus.selected,o=!0,l=i.series[a.seriesIndex].pieData.startRatio,n=i.series[a.seriesIndex].pieData.endRatio,c=i.series[a.seriesIndex].pieStatus.k,i.series[a.seriesIndex].parametricEquation=s(l,n,t,o,c,i.series[a.seriesIndex].pieData.value+5),i.series[a.seriesIndex].pieStatus.hovered=o,r=a.seriesIndex),e.setOption(i))})),e.on("globalout",(function(){if(""!==r){a=i.series[r].pieStatus.selected,t=!1;let e=i.series[r].pieStatus.k,o=i.series[r].pieData.startRatio,l=i.series[r].pieData.endRatio,n=i.series[r].pieData.value===i.series[0].pieData.value?35:10;i.series[r].parametricEquation=s(o,l,a,t,e,n),i.series[r].pieStatus.hovered=t,r=""}e.setOption(i)})),c(e,i)}function aa(e,t){let o=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});o.customName=t;let r=a.imageryLayers.addImageryProvider(o);t.indexOf("gbznt")>-1&&(a.imageryLayers.lowerToBottom(r),a.imageryLayers.raise(r))}function ta(){const e=Z(i.value);var a={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(e){return e.seriesName+'<span style="font-size: 14px; color: #f00;">'+(e.value/66.72).toFixed(2)+"</span>亩"}},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:Re.title,inverse:!0}],series:[{type:"bar",name:"玉米",stack:"总量",barMaxWidth:30,label:{show:!1,position:"玉米",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:Fe.玉米},{type:"bar",name:"大豆",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"大豆",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:Fe.大豆},{type:"bar",name:"花生",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"花生",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:Fe.花生},{type:"bar",name:"小麦",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"小麦",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:Fe.小麦},{type:"bar",name:"蓝莓",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"蓝莓",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:Fe.蓝莓}]};c(e,a)}let oa=g({});function ra(){if(je.value&&je.value.lon&&je.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(je.value.lon),Number(je.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(a.scene,t);if(Cesium.defined(e)){const a=document.getElementById("pop");a&&(a.style.top=e.y-10+"px",a.style.left=e.x+10+"px")}}}function ia(){delete je.value.XZQMC,Ge="",Ne(["village_CQL"]),Je("villageLine"),Je("townLine");const e=document.getElementById("pop");e&&(e.style.display="none"),a.scene.postRender.removeEventListener(ra)}function sa(e){if(je.value.label.length){const a=document.getElementById("pop");a&&(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,c)=>{const d=y("el-tooltip"),p=y("el-option"),u=y("el-select"),g=y("el-button");return v(),w("div",F,[X,x("div",W,[x("div",Q,[x("div",j,[O,x("p",{onClick:c[0]||(c[0]=e=>He("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianj_zuoshang.xlsx"))},[S(" 下载   "),G])]),x("div",{ref_key:"areaDiv",ref:t,class:"areaDiv"},null,512),x("div",{ref_key:"leftProgressBarDiv",ref:l,class:"ProgressBar"},null,512)]),x("div",q,[x("div",N,[J,x("p",{onClick:c[1]||(c[1]=e=>He("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[S(" 下载   "),U])]),x("div",{ref_key:"typesofDiv",ref:o,class:"typesofDiv"},null,512),x("div",Y,[x("div",V,[H,x("div",K,C(M(ze).小麦.value)+"亩 ",1),x("div",$,C(M(ze).小麦.percent),1)]),x("div",ee,[ae,x("div",te,C(M(ze).花生.value)+"亩 ",1),x("div",oe,C(M(ze).花生.percent),1)]),x("div",re,[ie,x("div",se,C(M(ze).大豆.value)+"亩 ",1),x("div",le,C(M(ze).大豆.percent),1)]),x("div",ne,[ce,x("div",de,C(M(ze).地瓜.value)+"亩 ",1),x("div",pe,C(M(ze).地瓜.percent),1)]),x("div",ue,[me,x("div",ge,C(M(ze).花生.value)+"亩 ",1),x("div",fe,C(M(ze).花生.percent),1)])])]),x("div",{class:"leftFoldDiv",onClick:c[2]||(c[2]=e=>function(){if(z.value=!z.value,z.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)")}}())},[D(d,{class:"box-item","show-arrow":!1,disabled:M(z),"hide-after":"0","show-after":"200",effect:"dark",content:"展开",placement:"top"},{default:A((()=>[M(z)?I("",!0):(v(),w("img",he))])),_:1},8,["disabled"]),D(d,{disabled:!M(z),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"收起",placement:"top"},{default:A((()=>[M(z)?(v(),w("img",be)):I("",!0)])),_:1},8,["disabled"])])]),x("div",ye,[x("div",ve,[x("div",we,[xe,x("p",{onClick:c[3]||(c[3]=e=>He("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"))},[S(" 下载   "),Se])]),x("div",{ref_key:"farmlandDiv",ref:r,class:"farmlandDiv"},null,512)]),x("div",Ce,[x("div",Me,[De,x("p",{onClick:c[4]||(c[4]=e=>He("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"))},[S(" 下载   "),Ae])]),D(u,{"popper-class":"select_city",onChange:c[5]||(c[5]=a=>Ve(e.item)),modelValue:s.value,"onUpdate:modelValue":c[6]||(c[6]=e=>s.value=e),placeholder:"全部"},{default:A((()=>[(v(!0),w(L,null,k(M(m).arr,(e=>(v(),_(p,{key:e.properties.XZDM,label:e.properties.XZMC,value:e.properties.XZDM},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),x("div",{ref_key:"ASdivisionDiv",ref:i,class:"ASdivision"},null,512)]),x("div",{class:"rightFoldDiv",onClick:c[7]||(c[7]=e=>(R.value=!R.value,void(R.value?document.querySelector(".rightWra").style.transform="translate(0,0)":document.querySelector(".rightWra").style.transform="translate(101%,0)")))},[D(d,{disabled:!M(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"收起",placement:"top"},{default:A((()=>[M(R)?(v(),w("img",Ie)):I("",!0)])),_:1},8,["disabled"]),D(d,{disabled:M(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"展开",placement:"top"},{default:A((()=>[M(R)?I("",!0):(v(),w("img",Le))])),_:1},8,["disabled"])])]),x("div",ke,[D(n)]),_e,x("div",Be,[x("div",null,C(B.value.name)+"",1),x("div",null,C(B.value.value)+"亩",1),x("div",{class:"cancel",onClick:ia},"X")]),x("div",Te,[(v(!0),w(L,null,k(M(je).label,((e,a)=>(v(),w("div",{key:a},[x("div",null,C(e.crop)+"",1),x("div",null,C((e.Shape_Area/666.67).toFixed(2))+" 亩",1)])))),128)),M(je).XZQMC?(v(),w("div",Pe,[Ze,x("div",null,C(M(je).XZQMC),1)])):I("",!0),x("div",{class:"cancel",onClick:ia},"X")]),P.value?(v(),_(g,{key:0,class:"back_button",onClick:c[8]||(c[8]=e=>(delete je.value.XZQMC,Ne(["gbznt"],!0),Ne(["aaa"]),s.value="370211",Ve(),"1"===P.value&&aa("shuzisannong:huangdaoqu_town","tl"),a.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),P.value=!1,void ia()))},{default:A((()=>[S("返回")])),_:1})):I("",!0)])}}},[["__scopeId","data-v-cc50d6dc"]]);export{Ee as default};