Agriculture-front-end/dist/assets/index.26dd9f5e.js
2023-07-04 10:08:33 +08:00

15 lines
28 KiB
JavaScript

import{H as P,_ as it,a as ut,r as n,A as dt,V as ct,W as pt,a1 as Q,d as b,o as g,c as _,l,m as V,e as d,w as h,f as c,g as C,x as U,L as R,N as G,k as q,G as ke,C as Ce,D as Le,y as mt,p as ht,q as ft}from"./index.ae0c781d.js";import ae from"./downloads.4cdbbcc5.js";import{_ as X}from"./close1.45635d81.js";import{_ as vt,a as gt,b as yt,c as bt,d as wt,e as _t}from"./linesGL.97ae14ae.js";import{_ as xt}from"./dow.f37c8d82.js";import{i as B,L as De}from"./index.c9f5bd8b.js";import{T as St}from"./TimeLine.64a8bde3.js";import{u as K,w as kt}from"./xlsx.86b9426e.js";import{u as ee}from"./useEcharts.dbdb546a.js";import{g as Ct}from"./site.4d8277bf.js";import{d as Lt}from"./download.8084913c.js";function Ve(y){return P({url:"equipment/wheatTotalYearValue",method:"get",params:y})}function Ne(y){return P({url:"equipment/wheatHeightStandardFarmland",method:"get",params:y})}function te(y){return P({url:"equipment/wheatGetAllTowns",method:"get",params:y})}function Dt(y){return P({url:"equipment/wheatGetAllVillages",method:"get",params:y})}function Vt(y){return P({url:"equipment/parameterEstimationYear",method:"get",params:y})}function Nt(y){return P({url:"equipment/parameterEstimation",method:"get",params:y})}const S=y=>(ht("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:X,alt:""},Ut={key:0,class:"imgrotate",src:X,alt:""},qt={class:"rightWra"},Bt={class:"rightTop"},Pt={class:"title"},Rt=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)),Yt=S(()=>l("img",{src:ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Xt={key:0,src:X,alt:""},jt={key:0,class:"imgrotate",src:X,alt:""},$t={class:"bottom_center"},Qt=mt('<div class="tool" data-v-7527f9ca><span data-v-7527f9ca><img src="'+vt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+gt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+yt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+bt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+wt+'" alt="" data-v-7527f9ca></span><span data-v-7527f9ca><img src="'+_t+'" alt="" data-v-7527f9ca></span></div>',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)),ra={class:"mt-4"},na={class:"tabulation"},sa={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"},ma={__name:"index",setup(y){const Oe=ut();let p=n(null);const le=n(null),oe=n(null),re=n(null),I=n("");let W=dt({arr:[],brr:[],crr:[]});const L=n({name:"",value:""}),Ie=n([]),ne=n(!1);let T=n(!0),z=n(!0),se=n([]),ie=n({}),ue=n([]);const A=n([]);let M=n(!0),de=n([]),N=n(1),O=n(12),j=n([]),ce=n([]),pe=n([]);const Te=n(1);let $=n(!0);const Z=n(null);let H=n(null),me=n(null),he=n("");n(!1);let x=n([{wheatUnitOutputValue:0,wheatOutput:0}]),w=n({time:"",statistical:"\u9547",droughtRating:"\u5C0F\u9EA6",area:Te.value});ct(()=>{ze()});function ze(){He(),Je(),Ye(),Ze(),Me(),ve(),ge(),Be()}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}),rt(),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,me.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"}});me=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),i=Cesium.Math.toDegrees(s.longitude),m=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,he.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:i,lat:m}}),Xe()),nt(e.position),p.scene.postRender.addEventListener(_e)}catch(u){console.error("Error occurred:",u)}})()},Cesium.ScreenSpaceEventType.LEFT_CLICK)};function qe(t,e,o){t.forEach(a=>{let s=[];a[0].forEach(i=>{s.push(i[0]),s.push(i[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 Be(){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=>{})}n({label:[]}),n([]);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 Pe(){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 Re(){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=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px";const e=B(t);window.addEventListener("resize",()=>{t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"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=>{se.value=e.data,ve()})},Ye=()=>{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()})},Xe=()=>{Ct().then(t=>{t.features.forEach(e=>{e.properties.XZDM==I.value&&(J("townLine"),qe(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=>{Y(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Qe=t=>{I.value===""?te().then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):Dt({divisions:I.value}).then(e=>{Y(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},Ke=()=>{let t=JSON.parse(JSON.stringify(x.value[0]));console.log(t),A.value.push(t),Y(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=document.querySelector(".app-main").offsetWidth-50+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px";const o=B(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",o.resize()}),ye()})},et=(t,e)=>t.map(a=>{const s={};for(const i in a)e[i]&&(s[e[i]]=a[i]);return s}),Y=(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)"}),i=K.json_to_sheet(s),m=K.book_new();K.book_append_sheet(m,i,o),kt(m,`${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=B(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=B(oe.value);let e=[],o=[],a=[];se.value.forEach(i=>{e.push(i.subName),o.push(i.wheatUnitOutputValue),a.push(i.wheatOutput)});let s={tooltip:{trigger:"axis",formatter:function(i,m,k){for(var f=i[0].name,u=0,v=i.length;u<v;u++)i[u].seriesType==="line"?f+="<br/>"+i[u].seriesName+" : "+(i[u].value?i[u].value:"-")+"h":f+="<br/>"+i[u].seriesName+" : "+(i[u].value?i[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}),ne.value=!1}function ge(){const t=B(re.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),i=[o,a],m=[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:m,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:i[0]},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",barWidth:5,data:i[1]}]};ee(t,k)}function ye(){const t=B(Z.value);let e=[],o=[],a=[];A.value.forEach(m=>{e.push(m.subName),m.wheatUnitOutputValue!==void 0?o.push(m.wheatUnitOutputValue):o.push(0),m.wheatOutput!==void 0?a.push(m.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(m,k,f){for(var u=m[0].name,v=0,F=m.length;v<F;v++)m[v].seriesType==="line"?u+="<br/>"+m[v].seriesName+" : "+(m[v].value?m[v].value:"-")+"h":u+="<br/>"+m[v].seriesName+" : "+(m[v].value?m[v].value:"-");return u}},grid:{top:"5%",bottom:"20%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"85%",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 i=Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),m=Cesium.Rectangle.center(i);Cesium.Math.toDegrees(m.longitude),Cesium.Math.toDegrees(m.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=n({});function rt(){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 nt(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"),i=b("el-checkbox-group"),m=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"),st=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]=r=>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]=r=>Pe())},[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:h(()=>[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:h(()=>[c(T)?(g(),_("img",Ut)):C("v-if",!0)]),_:1},8,["disabled"])])]),l("div",qt,[l("div",Bt,[l("div",Pt,[Rt,l("p",{onClick:e[2]||(e[2]=r=>$e())},[V(" \u4E0B\u8F7D \xA0 "),Gt])]),l("div",{ref_key:"farmlandDiv",ref:oe,class:"farmlandDiv"},null,512),C(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),l("div",Zt,[l("div",Ht,[Jt,l("p",{onClick:e[3]||(e[3]=r=>Qe())},[V(" \u4E0B\u8F7D \xA0 "),Yt])]),l("div",{ref_key:"ASdivisionDiv",ref:re,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[4]||(e[4]=r=>Re())},[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:h(()=>[c(z)?(g(),_("img",Xt)):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:h(()=>[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(he)),1)]),(g(!0),_(R,null,G(L.value.info,(r,D)=>(g(),_("div",{key:D,class:"rowWra"},[la,l("span",null,U(r.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(g(!0),_(R,null,G(L.value.info,(r,D)=>(g(),_("div",{key:D,class:"rowWra"},[oa,l("span",null,U(r.wheatOutput)+"\u4EA9",1)]))),128))]),l("div",{class:"cancel",onClick:xe},"X")]),ne.value?(g(),q(a,{key:0,class:"back_button",onClick:e[5]||(e[5]=r=>ot())},{default:h(()=>[V("\u8FD4\u56DE")]),_:1})):C("v-if",!0),d(k,{class:"legend",accordion:""},{default:h(()=>[d(m,{name:"1"},{title:h(()=>[V("\u56FE\u4F8B")]),default:h(()=>[l("div",ra,[d(i,{modelValue:t.checkList,"onUpdate:modelValue":e[11]||(e[11]=r=>t.checkList=r),onChange:t.change},{default:h(()=>[C(` <el-checkbox
v-for="(value, item, key) in dic"
:key="key"
:style="{
background: value.color,
border: \`1px solid \${value.color}\`,
width: \`100%\`,
}"
v-model="checked3"
:disabled="value.disabled"
:label="item"
/> `),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]=r=>t.checked3=r),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]=r=>t.checked4=r),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]=r=>t.checked3=r),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]=r=>t.checked4=r),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]=r=>t.checked3=r),label:"800-1000"},null,8,["modelValue"])]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})]),l("div",na,[l("div",sa,[d(F,{inline:!0,model:c(w),class:"demo-form-inline"},{default:h(()=>[d(v,{label:"\u65F6\u95F4:"},{default:h(()=>[d(u,{"popper-class":"selectCity",modelValue:c(w).time,"onUpdate:modelValue":e[12]||(e[12]=r=>c(w).time=r),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[(g(!0),_(R,null,G(c(de),(r,D)=>(g(),q(f,{key:D,label:t.Zitem,value:r},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),d(v,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:h(()=>[d(u,{"popper-class":"selectCity",modelValue:c(w).statistical,"onUpdate:modelValue":e[13]||(e[13]=r=>c(w).statistical=r),placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[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:h(()=>[d(u,{modelValue:c(w).droughtRating,"onUpdate:modelValue":e[14]||(e[14]=r=>c(w).droughtRating=r),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:h(()=>[d(f,{label:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"}),C(` <el-option label="\u7389\u7C73" value="\u7389\u7C73" />
<el-option label="\u5927\u8C46" value="\u5927\u8C46" />
<el-option label="\u82B1\u751F" value="\u82B1\u751F" /> `)]),_:1},8,["modelValue"])]),_:1}),d(v,null,{default:h(()=>[d(a,{type:"primary",onClick:fe},{default:h(()=>[V("\u67E5\u8BE2")]),_:1}),d(a,{plain:"",onClick:t.resetForm,disabled:!c(M)},{default:h(()=>[V(" \u91CD\u7F6E ")]),_:1},8,["onClick","disabled"]),c($)?C("v-if",!0):(g(),q(a,{key:0,type:"primary",text:"",onClick:Ke},{default:h(()=>[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(),q(Se,{key:0,data:c(x),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:h(()=>[d(E,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(g(!0),_(R,null,G(c(pe),(r,D)=>(g(),q(E,{key:D,prop:r.value,label:r.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:h(()=>[d(E,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:at}),(g(!0),_(R,null,G(c(ce),(r,D)=>(g(),q(E,{key:D,prop:r.value,label:r.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),l("div",ca,[V(" \u5171"+U(A.value.length)+"\u6761 ",1),d(st,{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(ma,[["__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};