import{z as J,_ as at,r as u,A as ot,B as rt,C as lt,D as ce,d as k,o as _,c as L,l,m as E,e as x,w as C,f as y,g as B,I as ue,J as fe,k as pe,Q as st,x as Q,y as it,p as nt,q as dt}from"./index.b3a66a9e.js";import ee from"./downloads.e955445d.js";import{_ as te}from"./close1.45635d81.js";import{_ as ct,a as ut,b as ft,c as pt,d as mt,e as gt}from"./linesGL.90f708a5.js";import{i as K,L as G}from"./index.c9f5bd8b.js";import{T as vt}from"./TimeLine.6cac5abc.js";import{u as me}from"./useEcharts.83442be8.js";import{d as V}from"./download.a6a18203.js";function Te(h){return J({url:"equipment/areaStatisticsDrought",method:"get",params:h})}function We(h){return J({url:"equipment/proportionOfArea",method:"get",params:h})}function ze(h){return J({url:"equipment/statisticsOfArea",method:"get",params:h})}function Ie(h){return J({url:"equipment/township",method:"get",params:h})}function Ne(h){return J({url:"equipment/administrative",method:"get",params:h})}const M=h=>(nt("data-v-e73613e6"),h=h(),dt(),h),ht={class:"center"},bt=M(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),yt={class:"leftWra"},_t={class:"leftTop"},xt={class:"title"},wt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Ct=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),St={class:"leftbottom"},Dt={class:"title"},kt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Lt=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Mt={class:"tableDiv"},Tt={key:0,src:te,alt:""},Wt={key:0,class:"imgrotate",src:te,alt:""},zt={class:"rightWra"},It={class:"rightTop"},Nt={class:"title"},Pt=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),At=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Bt={class:"rightbottom"},Ft={class:"title"},Et=M(()=>l("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Rt=M(()=>l("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ot={key:0,src:te,alt:""},Zt={key:0,class:"imgrotate",src:te,alt:""},Xt={class:"bottom_center"},qt=it('
',1),Qt={class:"mt-4"},Gt={id:"popup"},Vt={id:"pop"},Jt={key:0},$t=M(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),Ut={__name:"index",setup(h){let i=u(null);const ge=u(null),ve=u(null),he=u(null);u(null);const be=u(null),b=u("370211"),Pe=u(null);let S=ot({arr:[],brr:[],crr:[]});const ye=u({name:"",value:""}),_e=u([]),F=u(!1);let P=u(!1),A=u(!1);const xe=u(["false"]);let ae=u([]),$=u([]),oe=u([]),re=u(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"],I={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Ae={\u9002\u5B9C:{color:"rgba(9, 187, 222, 0.8)",disabled:!1},\u6E7F\u6DA6:{color:"rgba(255, 235, 59, 0.8)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(234, 165, 93, 0.8)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(205, 92, 92, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"red",disabled:!1}};rt(()=>S.arr,t=>{console.log("val:",t)});var R={title:[]};let w={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},le=u([]);lt(()=>{Se("370211"),De("370211"),Ge(),ke("370211"),Fe(),Y(),Le(),X(),Re();let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"});const Be={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 Fe(){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({...Be})}),i.cesiumWidget.creditContainer.style.display="none",ie("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),Oe(),et()}function Ce(t,e,a){t.forEach(o=>{let r=[];o[0].forEach(s=>{r.push(s[0]),r.push(s[1])}),i.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 Re(){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=u({label:[]}),O="";function Oe(){var t=new Cesium.ScreenSpaceEventHandler(i.canvas);t.setInputAction(function(e){var a=i.camera.getPickRay(e.position),o=i.scene.globe.pick(a,i.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let s=new Cesium.Cartesian2,d=i.camera.positionCartographic.height,n=Ee(d);const v=i.imageryLayers._layers,p=v.findIndex(f=>f._imageryProvider._layers&&f._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(p>-1){const f=v[p];let m=f._imageryProvider;if(m&&m.ready&&m._layers&&f.show===!0){s=m.tilingScheme.positionToTileXY(r,n,s);let c=m.pickFeatures(s.x,s.y,n,r.longitude,r.latitude);c&&c.then(W=>{if(W.length>0){let D=W[0];if(D.properties&&D.properties.XZDM)if(console.log("XZDM:",O),console.log("newData.properties.XZDM:",D.properties.XZDM),O!==D.properties.XZDM){F.value=!0,O=D.properties.XZDM,b.value=O,j&&j();let N=D.data;i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(N.bbox[0],N.bbox[1],N.bbox[2],N.bbox[3]),duration:2}),Z("townLine"),Ce(N.geometry&&N.geometry.coordinates,"townLine","yellow"),T(["village_CQL"]),Xe(`XZDM=${D.properties.XZDM}`,"village_CQL");let H=i.entities._entities._array;for(var z=H.length-1;z>=0;z--)if(H[z]._name&&H[z]._name==="point"+D.properties.XZDM){let tt=H[z]._info;g.value=tt,console.log(g.value,"------------------"),de(e.position),i.scene.postRender.addEventListener(ne)}Z("villageLine"),U=""}else Ze(v,s,n,r,e);else T(["village_CQL"]),q()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let U="";function Ze(t,e,a,o,r){const s=t.findIndex(d=>d._imageryProvider._layers&&d._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(s>-1){const d=t[s];let n=d._imageryProvider;if(n&&n.ready&&n._layers&&d.show===!0){e=n.tilingScheme.positionToTileXY(o,a,e);let v=n.pickFeatures(e.x,e.y,a,o.longitude,o.latitude);v&&v.then(p=>{if(p.length>0){let f=p[0];if(console.log(f),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(f.data.bbox[0],f.data.bbox[1],f.data.bbox[2],f.data.bbox[3]),duration:2}),f.properties&&f.properties.XZQDM&&U!==f.properties.XZQDM){U=f.properties.XZQDM;let m=f.data;if(Z("villageLine"),Ce(m.geometry&&m.geometry.coordinates,"villageLine","yellow"),f.properties.XZQDM==="370211104217"){const c=Cesium.Rectangle.fromDegrees(m.bbox[0],m.bbox[1],m.bbox[2],m.bbox[3]),W=Cesium.Rectangle.center(c);let z=Cesium.Math.toDegrees(W.longitude),D=Cesium.Math.toDegrees(W.latitude),N={lon:z,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=N,de(r.position),i.scene.postRender.addEventListener(ne)}}}})}}}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,i.imageryLayers.addImageryProvider(a)}function T(t,e){if(i){const a=i.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&&i.imageryLayers.remove(a[o]):a[o]._imageryProvider.customName===r&&i.imageryLayers.remove(a[o]))})}}function Z(t){if(i){let a=i.entities._entities._array;for(var e=a.length-1;e>=0;e--)a[e]._name&&a[e]._name===t&&i.entities.remove(a[e])}}function qe(){if(P.value=!P.value,P.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(A.value=!A.value,A.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=>{ae=u([]),$=u([]),Te({divisions:t}).then(e=>{e.data.forEach(a=>{ae.value.push(a.level),$.value.push((a.area/666.67).toFixed(2))}),se()})},De=t=>{oe=u([]),le=u([]),re=u(0),We({divisions:t}).then(e=>{e.data.forEach(a=>{re.value+=Number(a.area),oe.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)}%`})}),Y()})},Ge=()=>{ze().then(t=>{console.log(t.data),we.forEach((e,a)=>{let o=t.data.map(r=>{if(e===r.region)return r});Object.keys(I).forEach(r=>{let s=0;o.findIndex(n=>(n&&n.level===r&&(s=n.area),n&&n.level===r))>-1?I[r].push(s):I[r].push(0)})}),Le()})},ke=t=>{Ie({divisions:t}).then(e=>{S.brr=e.data,S.arr=e.data.sort((d,n)=>d.streetName.length-n.streetName.length),S.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],o=[];S.arr.forEach(d=>{a.indexOf(d.streetName)==-1&&(a.push(d.streetName),o.push({streetName:d.streetName,streetCode:d.streetCode,area:d.area,type:d.type}))}),S.arr=o;let r=[...e.data],s=[];r.splice(0,1),r.forEach(d=>{s.indexOf(d.streetName)==-1&&s.push(d.streetName)}),R.title=[...Object.values(s)],R.title.forEach((d,n)=>{let v=e.data.map(p=>{if(d===p.streetName)return p});Object.keys(w).forEach(p=>{v.findIndex(m=>m&&m.type===p)>-1?w[p].push(1):w[p].push(null)})}),X()})},Ve=t=>{Ne({divisions:t}).then(e=>{S.brr=e.data;let a=[...e.data],o=[];a.forEach(r=>{o.indexOf(r.streetName)==-1&&o.push(r.streetName)}),R.title=[...Object.values(o)],R.title.forEach((r,s)=>{let d=e.data.map(n=>{if(r===n.streetName)return n});Object.keys(w).forEach(n=>{d.findIndex(p=>p&&p.type===n)>-1?w[n].push(1):w[n].push(null)})}),X()})},j=()=>{if(Se(b.value),De(b.value),b.value=="370211"){T(["village_CQL"]),O=null,T(["aaa"]),ke(),q(),X(),se(),Y();return}Ve(b.value),X(),se(),Y(),[...S.arr]},Je=t=>{Te({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},$e=t=>{We({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},Ue=t=>{ze({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})},je=t=>{b.value==="370211"?Ie({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)}):Ne({divisions:b.value,whetherToDownload:!0}).then(e=>{V(e.data[e.data.length-1].downloadPath)})};function se(){console.log($.value);const t=K(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:ae.value,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:$.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 Y(){const t=K(ve.value);var e=oe.value;let a={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(205, 92, 92, 1)","red"],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}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\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%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};me(t,a)}function Le(){const t=K(he.value);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:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new G(0,0,0,1,[{offset:0,color:"rgba(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"red",color:new G(0,0,0,1,[{offset:0,color:"red"},{offset:1,color:"red"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(9, 187, 222, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:I.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 235, 59, 1)",color:new G(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 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 ie(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=i.imageryLayers.addImageryProvider(a);e.indexOf("gbznt")>-1&&(i.imageryLayers.lowerToBottom(o),i.imageryLayers.raise(o))}function Ye(){delete g.value.XZQMC,T(["gbznt"],!0),T(["aaa"]),b.value="370211",j(),F.value==="1"&&(console.log(F.value),ie("shuzisannong:huangdaoqu_town","tl")),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),F.value=!1,q()}function He(t){delete g.value,T(["huangdaoqu_town"],!0),T(["tl"],!0);let e="shuzisannong:farmland",a=!1;const o=i.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||(ie(e,e+"gbznt"),g.value.label=[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]),_e.value.forEach(s=>{s.properties.name===t.name&&(console.log("dingwei"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(s.bbox[0],s.bbox[1],s.bbox[2],s.bbox[3]),duration:2}))}),F.value="1",de({x:642,y:312})}function X(){const t=K(be.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let o=0;return S.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:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",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(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}]}},data:w.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}]}},data:w.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",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(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}]}},data:w.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",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(205, 92, 92, 1)"},{offset:1,color:"rgba(205, 92, 92, 1)"}]}},data:w.\u4E2D\u5EA6\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",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:"red"},{offset:1,color:"red"}]}},data:w.\u91CD\u5EA6\u5E72\u65F1}]};me(t,e)}function Ke(){let t=Me.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]),d=Cesium.Rectangle.center(s);let n=Cesium.Math.toDegrees(d.longitude),v=Cesium.Math.toDegrees(d.latitude);o.properties.XZDM==="370211011"?(n=120.0863,v=35.941):o.properties.XZDM==="370211003"&&(n=120.243682,v=35.97123201);const p=t[o.properties.XZMC];let f=[];p&&(f=p.map((m,c)=>m.properties)),i.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(n,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:f,...o.properties,lon:n,lat:v}})})}).catch(e=>{})}let Me=u({});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]}),Me.value=a,Ke()}).catch(t=>{})}function ne(){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(i.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="",T(["village_CQL"]),Z("villageLine"),Z("townLine");const t=document.getElementById("pop");t&&(t.style.display="none"),i.scene.postRender.removeEventListener(ne)}function de(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"),d=k("el-select"),n=k("el-checkbox"),v=k("el-checkbox-group"),p=k("el-collapse-item"),f=k("el-collapse"),m=k("el-button");return _(),L("div",ht,[bt,l("div",yt,[l("div",_t,[l("div",xt,[wt,l("p",{onClick:e[0]||(e[0]=c=>Je())},[E(" \u4E0B\u8F7D \xA0 "),Ct])]),l("div",{ref_key:"areaDiv",ref:ge,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:Pe,class:"ProgressBar"},null,512)]),l("div",St,[l("div",Dt,[kt,l("p",{onClick:e[1]||(e[1]=c=>$e())},[E(" \u4E0B\u8F7D \xA0 "),Lt])]),l("div",{ref_key:"typesofDiv",ref:ve,class:"typesofDiv"},null,512),l("div",Mt,[x(o,{data:y(le),style:{width:"100%"}},{default:C(()=>[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]=c=>qe())},[x(r,{class:"box-item","show-arrow":!1,disabled:y(P),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[y(P)?B("v-if",!0):(_(),L("img",Tt))]),_:1},8,["disabled"]),x(r,{disabled:!y(P),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[y(P)?(_(),L("img",Wt)):B("v-if",!0)]),_:1},8,["disabled"])])]),l("div",zt,[l("div",It,[l("div",Nt,[Pt,l("p",{onClick:e[3]||(e[3]=c=>Ue())},[E(" \u4E0B\u8F7D \xA0 "),At])]),l("div",{ref_key:"farmlandDiv",ref:he,class:"farmlandDiv"},null,512),B(' ')]),l("div",Bt,[l("div",Ft,[Et,l("p",{onClick:e[4]||(e[4]=c=>je())},[E(" \u4E0B\u8F7D \xA0 "),Rt])]),x(d,{"popper-class":"select_city",onChange:e[5]||(e[5]=c=>j(t.item)),modelValue:b.value,"onUpdate:modelValue":e[6]||(e[6]=c=>b.value=c),clearable:"",placeholder:"\u5168\u90E8"},{default:C(()=>[(_(!0),L(ue,null,fe(y(S).arr,c=>(_(),pe(s,{key:c.streetCode,label:c.streetName,value:c.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]=c=>Qe())},[x(r,{disabled:!y(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:C(()=>[y(A)?(_(),L("img",Ot)):B("v-if",!0)]),_:1},8,["disabled"]),x(r,{disabled:y(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:C(()=>[y(A)?B("v-if",!0):(_(),L("img",Zt))]),_:1},8,["disabled"])])]),l("div",Xt,[x(vt)]),qt,x(f,{class:"legend",accordion:""},{default:C(()=>[x(p,{name:"1"},{title:C(()=>[E("\u56FE\u4F8B")]),default:C(()=>[l("div",Qt,[x(v,{modelValue:xe.value,"onUpdate:modelValue":e[8]||(e[8]=c=>xe.value=c),onChange:t.change},{default:C(()=>[(_(!0),L(ue,null,fe(y(Ae),(c,W,z)=>(_(),pe(n,{key:z,style:st({backgroundColor:c.color,border:"1px solid value.color",width:"100%"}),"v-model":c.disabled,disabled:c.disabled,label:W},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",Gt,[l("div",null,Q(ye.value.name)+"\uFF1A",1),l("div",null,Q(ye.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:q},"X")]),l("div",Vt,[(_(!0),L(ue,null,fe(y(g).label,(c,W)=>(_(),L("div",{key:W},[l("div",null,Q(c.crop)+"\uFF1A",1),l("div",null,Q((c.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),y(g).XZQMC?(_(),L("div",Jt,[$t,l("div",null,Q(y(g).XZQMC),1)])):B("v-if",!0),l("div",{class:"cancel",onClick:q},"X")]),F.value?(_(),pe(m,{key:0,class:"back_button",onClick:e[9]||(e[9]=c=>Ye())},{default:C(()=>[E("\u8FD4\u56DE")]),_:1})):B("v-if",!0)])}}},ra=at(Ut,[["__scopeId","data-v-e73613e6"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/drought/index.vue"]]);export{ra as default};