import{H as R,_ as it,a as ut,r as i,A as dt,V as ct,W as pt,X as Q,d as b,o as g,c as _,l,m as V,e as d,w as m,f as c,g as C,x as U,L as q,N as G,k as B,G as ke,C as Ce,D as Le,y as ht,p as mt,q as ft}from"./index.9172db1d.js";import ae from"./downloads.e955445d.js";import{_ as Y}from"./close1.45635d81.js";import{_ as vt,a as gt,b as yt,c as bt,d as wt,e as _t}from"./linesGL.90f708a5.js";import{_ as xt}from"./dow.f37c8d82.js";import{i as P,L as De}from"./index.c9f5bd8b.js";import{T as St}from"./TimeLine.6ff87a01.js";import{u as K,w as kt}from"./xlsx.86b9426e.js";import{u as ee}from"./useEcharts.963c5809.js";import{g as Ct}from"./site.c6d6d51a.js";import{d as Lt}from"./download.f7ec50f1.js";function Ve(y){return R({url:"equipment/wheatTotalYearValue",method:"get",params:y})}function Ne(y){return R({url:"equipment/wheatHeightStandardFarmland",method:"get",params:y})}function te(y){return R({url:"equipment/wheatGetAllTowns",method:"get",params:y})}function Dt(y){return R({url:"equipment/wheatGetAllVillages",method:"get",params:y})}function Vt(y){return R({url:"equipment/parameterEstimationYear",method:"get",params:y})}function Nt(y){return R({url:"equipment/parameterEstimation",method:"get",params:y})}const S=y=>(mt("data-v-7527f9ca"),y=y(),ft(),y),Ot={class:"fatherDiv"},It={class:"centerBox"},Tt=S(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),zt={class:"leftWra"},At={class:"leftTop"},Mt={class:"title"},Et=S(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Wt=S(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ft={key:0,src:Y,alt:""},Ut={key:0,class:"imgrotate",src:Y,alt:""},Bt={class:"rightWra"},Pt={class:"rightTop"},Rt={class:"title"},qt=S(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Gt=S(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Zt={class:"rightbottom"},Ht={class:"title"},Jt=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Xt=S(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Yt={key:0,src:Y,alt:""},jt={key:0,class:"imgrotate",src:Y,alt:""},$t={class:"bottom_center"},Qt=ht('
',1),Kt={id:"popup"},ea={id:"pop"},ta={class:"rowWra"},aa=S(()=>l("span",null,"\u5730\u533A\uFF1A",-1)),la=S(()=>l("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),oa=S(()=>l("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),na={class:"mt-4"},sa={class:"tabulation"},ra={class:"searchDiv"},ia=S(()=>l("img",{src:xt,alt:""},null,-1)),ua={class:"tableBox"},da={class:"tableBorder"},ca={class:"example-pagination-block"},pa={class:"chartMode"},ha={__name:"index",setup(y){const Oe=ut();let p=i(null);const le=i(null),oe=i(null),ne=i(null),I=i("");let W=dt({arr:[],brr:[],crr:[]});const L=i({name:"",value:""}),Ie=i([]),se=i(!1);let T=i(!0),z=i(!0),re=i([]),ie=i({}),ue=i([]);const A=i([]);let M=i(!0),de=i([]),N=i(1),O=i(12),j=i([]),ce=i([]),pe=i([]);const Te=i(1);let $=i(!0);const Z=i(null);let H=i(null),he=i(null),me=i(""),x=i([{wheatUnitOutputValue:0,wheatOutput:0}]),w=i({time:"",statistical:"\u9547",droughtRating:"\u5C0F\u9EA6",area:Te.value});ct(()=>{ze()});function ze(){He(),Je(),Xe(),Ze(),Me(),ve(),ge(),Pe()}pt(()=>{localStorage.getItem(Oe.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"});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 Me(){p=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})}),p.cesiumWidget.creditContainer.style.display="none",p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),nt(),be(),p.scene.screenSpaceCameraController.minimumZoomDistance=450,p.scene.screenSpaceCameraController.maximumZoomDistance=72e4,p.scene.screenSpaceCameraController._minimumZoomRate=3e4,p.scene.screenSpaceCameraController._maximumZoomRate=5906376272e3,We(),Fe(),Ee(),Ue()}const Ee=()=>{p.scene.preRender.addEventListener(()=>{p.camera.positionCartographic.height<=13e3?H.show=!0:(H.show=!1,he.show=!0)})},We=()=>{var t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/map-huangdaoqu_village/wms111/",layers:"huangdaoqu_village@huangdaoqu_village",tileWidth:"256",tileHeight:"256",enablePickFeatures:!0,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});H=p.imageryLayers.addImageryProvider(t),H.show=!1},Fe=()=>{var t=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/map-huangdaoqu_town/wms111/",layers:"huangdaoqu_town@huangdaoqu_town",tileWidth:"256",tileHeight:"256",enablePickFeatures:!0,parameters:{service:"WMS",format:"image/png",srs:"EPSG:4326",VERSION:"1.1.1",transparent:!0,exceptions:"application/vnd.ogc.se_inimage"}});he=p.imageryLayers.addImageryProvider(t)},Ue=()=>{new Cesium.ScreenSpaceEventHandler(p.scene.canvas).setInputAction(e=>{let o=p.scene.globe.pick(p.camera.getPickRay(e.position),p.scene),s=p.scene.globe.ellipsoid.cartesianToCartographic(o),r=Cesium.Math.toDegrees(s.longitude),h=Cesium.Math.toDegrees(s.latitude);p.selectedEntity=void 0;var k=p.camera.getPickRay(e.position),f=p.imageryLayers.pickImageryLayerFeatures(k,p.scene);(async()=>{if(!Cesium.defined(f))console.log("No features picked.");else try{const u=await f;u[u.length-1].properties.XZQDM||(I.value=u[u.length-1].properties.XZDM,me.value=u[u.length-1].properties.XZMC,te({divisions:I.value}).then(v=>{let F=[];v.data.forEach(E=>{E.subName==u[u.length-1].properties.XZMC&&F.push(E)}),L.value={info:F,lon:r,lat:h}}),Ye()),st(e.position),p.scene.postRender.addEventListener(_e)}catch(u){console.error("Error occurred:",u)}})()},Cesium.ScreenSpaceEventType.LEFT_CLICK)};function Be(t,e,o){t.forEach(a=>{let s=[];a[0].forEach(r=>{s.push(r[0]),s.push(r[1])}),p.entities.add({name:e,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:o?Cesium.Color.fromCssColorString(o):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Pe(){Q({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),Ie.value=t.data.features}).catch(t=>{})}i({label:[]}),i([]);function J(t){if(p){let o=p.entities._entities._array;for(var e=o.length-1;e>=0;e--)o[e]._name&&o[e]._name===t&&p.entities.remove(o[e])}}function Re(){if(T.value=!T.value,T.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(z.value=!z.value,z.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 Ge=()=>{M.value=!M.value;const t=Z.value;t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px";const e=P(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",e.resize()}),ye()},Ze=()=>{Vt().then(t=>{console.log(t.data),w.value.time=t.data[t.data.length-1],de.value=t.data,fe()})},He=t=>{Ve({divisions:t}).then(e=>{ie.value=e.data,lt()})},Je=t=>{Ne({divisions:t}).then(e=>{re.value=e.data,ve()})},Xe=()=>{te().then(t=>{ue.value=t.data,W.brr=JSON.parse(JSON.stringify(t.data)),W.arr=W.brr.sort((a,s)=>a.subName.length-s.subName.length),W.arr.unshift({subregion:"",subName:"\u5168\u90E8"});let e=[],o=[];W.arr.forEach(a=>{e.indexOf(a.subName)==-1&&(e.push(a.subName),o.push({subName:a.subName,subregion:a.subregion,area:a.area,type:a.type}))}),W.arr=o,ge()})},Ye=()=>{Ct().then(t=>{t.features.forEach(e=>{e.properties.XZDM==I.value&&(J("townLine"),Be(e.geometry.coordinates,"townLine","yellow"))})})},je=t=>{Ve({divisions:I.value,whetherToDownload:!0}).then(e=>{Lt(e.data[e.data.length-1].excelPath)})},$e=t=>{Ne().then(e=>{X(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Qe=t=>{I.value===""?te().then(e=>{X(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):Dt({divisions:I.value}).then(e=>{X(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},Ke=()=>{let t=JSON.parse(JSON.stringify(x.value[0]));console.log(t),A.value.push(t),X(A.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},fe=()=>{N.value=1,Nt({year:w.value.time,statistical:w.value.statistical,type:w.value.droughtRating,area:w.value.area}).then(t=>{ce.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],pe.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],$.value=!1,A.value=t.data,j.value=t.data.slice((N.value-1)*O.value,(N.value-1)*O.value+O.value),x.value[0].wheatUnitOutputValue=0,x.value[0].wheatOutput=0,x.value[0].subName="\u5408\u8BA1",t.data.forEach(a=>{a.wheatUnitOutputValue&&(x.value[0].wheatUnitOutputValue+=Number(a.wheatUnitOutputValue)!==NaN?Number(a.wheatUnitOutputValue):0),a.wheatOutput&&(x.value[0].wheatOutput+=Number(a.wheatOutput)!==NaN?Number(a.wheatOutput):0)});for(const a in x.value[0])x.value[0][a]!=="\u5408\u8BA1"&&(x.value[0][a]=x.value[0][a].toFixed(2));const e=Z.value;e.style.width=window.innerWidth-100+"px",e.style.height=window.innerHeight-100+"px";const o=P(e);window.addEventListener("resize",()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",o.resize()}),ye()})},et=(t,e)=>t.map(a=>{const s={};for(const r in a)e[r]&&(s[e[r]]=a[r]);return s}),X=(t,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const s=et(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),r=K.json_to_sheet(s),h=K.book_new();K.book_append_sheet(h,r,o),kt(h,`${e}.xlsx`)},tt=t=>{N.value=t,j.value=A.value.slice((N.value-1)*O.value,(N.value-1)*O.value+O.value)},at=t=>{const e=N.value,o=O.value;return t+1+(e-1)*o};function lt(){const t=P(le.value);let e={title:["\u5355\u4EA7\u91CF","\u603B\u4EA7\u91CF"],xData:[],yData:[{data:[],name:"\u5355\u4EA7\u91CF",type:"line",yAxisIndex:0,symbolSize:2},{data:[],name:"\u603B\u4EA7\u91CF",type:"line",yAxisIndex:1,symbolSize:2}]};ie.value.forEach(a=>{e.xData.push(a.year),e.yData[0].data.push(a.wheatUnitOutputValue),e.yData[1].data.push(a.wheatOutput)});let o={grid:{left:"15%",right:"22%",bottom:"14%",top:"22%"},color:["rgba(205, 92, 92, 1)","rgba(0, 191, 255, 1)"],tooltip:{trigger:"axis",axisPointer:{}},legend:{icon:"rect",textStyle:{color:"rgba(255, 255, 255, 0.7)"},data:e.title,top:40,x:"center"},xAxis:[{type:"category",data:e.xData,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"rgba(255, 255, 255, 0.7)"}},boundaryGap:!1}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",axisLabel:{formatter:"{value}"},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}}},{type:"value",name:"\u4EA7\u91CF(\u5428)",axisLabel:{formatter:"{value}"},axisTick:{show:!1},splitLine:{lineStyle:{opacity:0}}}],series:e.yData};o&&t.setOption(o),window.addEventListener("resize",function(){t.resize()})}function ve(){const t=P(oe.value);let e=[],o=[],a=[];re.value.forEach(r=>{e.push(r.subName),o.push(r.wheatUnitOutputValue),a.push(r.wheatOutput)});let s={tooltip:{trigger:"axis",formatter:function(r,h,k){for(var f=r[0].name,u=0,v=r.length;u"+r[u].seriesName+" : "+(r[u].value?r[u].value:"-")+"h":f+="
"+r[u].seriesName+" : "+(r[u].value?r[u].value:"-");return f}},grid:{top:"15%",bottom:"15%",left:"15%",right:"20%"},legend:{data:["\u5355\u4EA7\u91CF","\u603B\u4EA7\u91CF"],textStyle:{color:"#fff",fontSize:12},type:"scroll",top:"3%"},xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,textStyle:{color:"rgba(255, 255, 255, 0.7)"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},axisPointer:{type:"shadow"},data:e}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u5428)",splitLine:{show:!0},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)"}},min:0,position:"top"},{type:"value",name:"\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",min:0,position:"bottom",splitLine:{show:!1},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"#fff"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:o,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(242, 252, 252, 1)"},{offset:.8,color:"rgba(242, 252, 252, 0.2)"},{offset:1,color:"rgba(242, 252, 252, 0.1)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}},{name:"\u603B\u4EA7\u91CF",type:"bar",yAxisIndex:1,barWidth:"10%",data:a,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243,1)"},{offset:.8,color:"rgba(143, 186, 243, 0.2)"},{offset:1,color:"rgba(143, 186, 243, 0.1)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}}]};s&&t.setOption(s,{notMerge:!0,grid:{bottom:20}}),ee(t,s)}function ot(){J("townLine"),J("villageLine"),p.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),se.value=!1}function ge(){const t=P(ne.value);let e=[],o=[],a=[];ue.value.forEach(f=>{e.push(f.subName),o.push(f.wheatUnitOutputValue),a.push(f.wheatOutput)});var s=e.sort((f,u)=>f.length-u.length),r=[o,a],h=[new De(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new De(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1)];let k={color:h,tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"5%",right:"2%",bottom:"3%",top:"10%",containLabel:!0},calculable:!0,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:100,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:[{type:"value",boundaryGap:[0,.01],axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"category",name:"",inverse:!0,data:s,axisLabel:{textStyle:{fontSize:13,color:"rgba(255, 255, 255, 0.7)"}},axisTick:{show:!1},axisLine:{show:!1}}],series:[{name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",type:"bar",barWidth:5,data:r[0]},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",barWidth:5,data:r[1]}]};ee(t,k)}function ye(){const t=P(Z.value);let e=[],o=[],a=[];A.value.forEach(h=>{e.push(h.subName),h.wheatUnitOutputValue!==void 0?o.push(h.wheatUnitOutputValue):o.push(0),h.wheatOutput!==void 0?a.push(h.wheatOutput):a.push(0)});let s=10/e.length*100;ee(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(h,k,f){for(var u=h[0].name,v=0,F=h.length;v"+h[v].seriesName+" : "+(h[v].value?h[v].value:"-")+"h":u+="
"+h[v].seriesName+" : "+(h[v].value?h[v].value:"-");return u}},grid:{top:"15%",bottom:"15%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:s,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"30%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}},axisPointer:{type:"shadow"},data:e}],yAxis:[{type:"value",name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",splitLine:{show:!0,lineStyle:{type:"dashed"}},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}},min:0,position:"top"},{type:"value",name:"\u603B\u4EA7\u91CF(\u5428)",min:0,position:"bottom",splitLine:{show:!1},nameTextStyle:{fontSize:12},axisLabel:{fontSize:14,relativeSize:-2,formatter:"{value}"},axisLine:{lineStyle:{color:"rgba(102, 102, 102, 1)"}}}],series:[{name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",type:"bar",yAxisIndex:0,data:o},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:a}]})}function be(){let t=we.value;Q({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{e.data.features.forEach((a,s)=>{const r=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),h=Cesium.Rectangle.center(r);Cesium.Math.toDegrees(h.longitude),Cesium.Math.toDegrees(h.latitude),a.properties.XZDM==="370211011"||a.properties.XZDM;const k=t[a.properties.XZMC];k&&k.map((f,u)=>f.properties)})}).catch(e=>{})}let we=i({});function nt(){Q({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,o={};e.forEach(a=>{let s=a.properties.town;o[s]?o[s].push(a):o[s]=[a]}),we.value=o,be(),console.log("11")}).catch(t=>{})}function _e(){if(L.value.lon&&L.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(L.value.lon),Number(L.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(p.scene,e);if(Cesium.defined(t)){const o=document.getElementById("pop");o.style.top=t.y-10+"px",o.style.left=t.x+10+"px"}}}function xe(){const t=document.getElementById("pop");t.style.display="none",I.value="370211",p.scene.postRender.removeEventListener(_e),J("townLine")}function st(t){const e=document.getElementById("pop");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 o=b("el-tooltip"),a=b("el-button"),s=b("el-checkbox"),r=b("el-checkbox-group"),h=b("el-collapse-item"),k=b("el-collapse"),f=b("el-option"),u=b("el-select"),v=b("el-form-item"),F=b("el-form"),E=b("el-table-column"),Se=b("el-table"),rt=b("el-pagination");return g(),_("div",Ot,[l("div",It,[Tt,l("div",zt,[l("div",At,[l("div",Mt,[Et,l("p",{onClick:e[0]||(e[0]=n=>je())},[V(" \u4E0B\u8F7D \xA0 "),Wt])]),l("div",{ref_key:"areaDiv",ref:le,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=n=>Re())},[d(o,{class:"box-item","show-arrow":!1,disabled:c(T),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[c(T)?C("v-if",!0):(g(),_("img",Ft))]),_:1},8,["disabled"]),d(o,{disabled:!c(T),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[c(T)?(g(),_("img",Ut)):C("v-if",!0)]),_:1},8,["disabled"])])]),l("div",Bt,[l("div",Pt,[l("div",Rt,[qt,l("p",{onClick:e[2]||(e[2]=n=>$e())},[V(" \u4E0B\u8F7D \xA0 "),Gt])]),l("div",{ref_key:"farmlandDiv",ref:oe,class:"farmlandDiv"},null,512),C('
')]),l("div",Zt,[l("div",Ht,[Jt,l("p",{onClick:e[3]||(e[3]=n=>Qe())},[V(" \u4E0B\u8F7D \xA0 "),Xt])]),l("div",{ref_key:"ASdivisionDiv",ref:ne,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[4]||(e[4]=n=>qe())},[d(o,{disabled:!c(z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[c(z)?(g(),_("img",Yt)):C("v-if",!0)]),_:1},8,["disabled"]),d(o,{disabled:c(z),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[c(z)?C("v-if",!0):(g(),_("img",jt))]),_:1},8,["disabled"])])]),l("div",$t,[d(St)]),Qt,l("div",Kt,[l("div",null,U(L.value.name)+"\uFF1A",1),l("div",null,U(L.value.value)+"\u4EA9",1),l("div",{class:"cancel",onClick:xe},"X")]),l("div",ea,[l("div",null,[l("div",ta,[aa,l("span",null,U(c(me)),1)]),(g(!0),_(q,null,G(L.value.info,(n,D)=>(g(),_("div",{key:D,class:"rowWra"},[la,l("span",null,U(n.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(g(!0),_(q,null,G(L.value.info,(n,D)=>(g(),_("div",{key:D,class:"rowWra"},[oa,l("span",null,U(n.wheatOutput)+"\u4EA9",1)]))),128))]),l("div",{class:"cancel",onClick:xe},"X")]),se.value?(g(),B(a,{key:0,class:"back_button",onClick:e[5]||(e[5]=n=>ot())},{default:m(()=>[V("\u8FD4\u56DE")]),_:1})):C("v-if",!0),d(k,{class:"legend",accordion:""},{default:m(()=>[d(h,{name:"1"},{title:m(()=>[V("\u56FE\u4F8B")]),default:m(()=>[l("div",na,[d(r,{modelValue:t.checkList,"onUpdate:modelValue":e[11]||(e[11]=n=>t.checkList=n),onChange:t.change},{default:m(()=>[C(` `),d(s,{style:{background:"rgba(255, 238, 204, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[6]||(e[6]=n=>t.checked3=n),label:"0-200"},null,8,["modelValue"]),d(s,{style:{background:"rgba(255, 220, 153, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[7]||(e[7]=n=>t.checked4=n),label:"200-400"},null,8,["modelValue"]),d(s,{style:{background:"rgba(255, 203, 102, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[8]||(e[8]=n=>t.checked3=n),label:"400-600"},null,8,["modelValue"]),d(s,{style:{background:"rgba(255, 185, 51, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:t.checked4,"onUpdate:modelValue":e[9]||(e[9]=n=>t.checked4=n),label:"600-800"},null,8,["modelValue"]),d(s,{style:{background:"rgba(255, 168, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:t.checked3,"onUpdate:modelValue":e[10]||(e[10]=n=>t.checked3=n),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})]),l("div",sa,[l("div",ra,[d(F,{inline:!0,model:c(w),class:"demo-form-inline"},{default:m(()=>[d(v,{label:"\u65F6\u95F4:"},{default:m(()=>[d(u,{"popper-class":"selectCity",modelValue:c(w).time,"onUpdate:modelValue":e[12]||(e[12]=n=>c(w).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(g(!0),_(q,null,G(c(de),(n,D)=>(g(),B(f,{key:D,label:t.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(v,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:m(()=>[d(u,{"popper-class":"selectCity",modelValue:c(w).statistical,"onUpdate:modelValue":e[13]||(e[13]=n=>c(w).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[d(f,{label:"\u9547\u7EA7",value:"\u9547"}),d(f,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),d(v,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:m(()=>[d(u,{modelValue:c(w).droughtRating,"onUpdate:modelValue":e[14]||(e[14]=n=>c(w).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[d(f,{label:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"}),C(` `)]),_:1},8,["modelValue"])]),_:1}),d(v,null,{default:m(()=>[d(a,{type:"primary",onClick:fe},{default:m(()=>[V("\u67E5\u8BE2")]),_:1}),d(a,{plain:"",onClick:t.resetForm,disabled:!c(M)},{default:m(()=>[V(" \u91CD\u7F6E ")]),_:1},8,["onClick","disabled"]),c($)?C("v-if",!0):(g(),B(a,{key:0,type:"primary",text:"",onClick:Ke},{default:m(()=>[ia,V(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:Ge},[l("div",{class:ke(c(M)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:ke(c(M)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Ce(l("div",ua,[l("div",da,[c($)?C("v-if",!0):(g(),B(Se,{key:0,data:c(x),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:m(()=>[d(E,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(g(!0),_(q,null,G(c(pe),(n,D)=>(g(),B(E,{key:D,prop:n.value,label:n.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),d(Se,{data:c(j),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:m(()=>[d(E,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:at}),(g(!0),_(q,null,G(c(ce),(n,D)=>(g(),B(E,{key:D,prop:n.value,label:n.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),l("div",ca,[V(" \u5171"+U(A.value.length)+"\u6761 ",1),d(rt,{background:"",layout:"prev, pager, next",total:A.value.length,"current-page":c(N),"page-size":c(O),onCurrentChange:tt},null,8,["total","current-page","page-size"])])],512),[[Le,c(M)]]),Ce(l("div",pa,[l("div",{ref_key:"chartModeDiv",ref:Z,class:"chartModeDiv"},null,512)],512),[[Le,!c(M)]])])])}}},Ca=it(ha,[["__scopeId","data-v-7527f9ca"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/output/wheat/index.vue"]]);export{Ca as default};