Agriculture-front-end/dist/assets/index.b0b59514.js

3 lines
35 KiB
JavaScript
Raw Normal View History

2023-07-26 17:29:34 +08:00
import{_ as bt,u as wt,r as h,D as _t,t as St,X as xt,x as Lt,v as kt,M as ce,d as C,o as w,c as L,k as l,m as T,e as S,w as k,f as m,l as D,j as M,P as j,Q as G,y as Q,J as Te,G as Me,H as Be,B as zt,p as At,q as Et}from"./index.1974707a.js";import ve from"./downloads.4cdbbcc5.js";import{_ as ee}from"./linesGL.99030c5a.js";import{a as Ot,_ as Dt}from"./fh.cf269d4d.js";import{_ as Nt,a as Ct,b as Vt,c as qt}from"./position.a021215f.js";import{_ as Tt,a as Mt}from"./face.2eec3bdc.js";import{_ as We}from"./icon.d0cb5387.js";import{_ as Bt}from"./dow.b4b83e88.js";import"./index.e2d056fa.js";import{T as Ft}from"./TimeLine.50b18dc6.js";import{u as pe,w as It}from"./xlsx.86b9426e.js";import{u as he}from"./useEcharts.2e9d7b11.js";import{g as me,a as fe,b as Wt,c as Fe,d as jt,e as Gt}from"./wheat.75f6c070.js";import{d as Pt}from"./download.b14e0d1d.js";import{e as ge}from"./element-resize-detector.d8720798.js";import{i as J,L as Ie}from"./install.49294472.js";/* empty css */const x=U=>(At("data-v-afbc95d6"),U=U(),Et(),U),Qt={class:"fatherDiv"},Jt={class:"centerBox"},$t=x(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ut={class:"leftWra"},Yt={class:"leftTop"},Rt={class:"title"},Xt=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Ht=x(()=>l("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Zt={key:0,src:ee,alt:""},Kt={key:0,class:"imgrotate",src:ee,alt:""},ea={class:"rightWra"},ta=x(()=>l("img",{src:Ot},null,-1)),aa=x(()=>l("span",null,"\u8FD4\u56DE",-1)),oa=[ta,aa],la={class:"rightTop"},ra={class:"title"},na=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),sa=x(()=>l("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ia={key:0},ua=x(()=>l("img",{src:Dt},null,-1)),da=[ua],ca={class:"rightbottom"},pa={class:"title"},ha=x(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ma=x(()=>l("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),fa={key:0,src:ee,alt:""},ga={key:0,class:"imgrotate",src:ee,alt:""},va={class:"bottom_center"},ya=zt('<div class="tool" data-v-afbc95d6><span data-v-afbc95d6><img src="'+Nt+'" alt="" data-v-afbc95d6></span><span data-v-afbc95d6><img src="'+Ct+'" alt="" data-v-afbc95d6></span><span data-v-afbc95d6><img src="'+Vt+'" alt="" data-v-afbc95d6></span><span data-v-afbc95d6><img src="'+Tt+'" alt="" data-v-afbc95d6></span><span data-v-afbc95d6><img src="'+Mt+'" alt="" data-v-afbc95d6></span><span data-v-afbc95d6><img src="'+qt+'" alt="" data-v-afbc95d6></span></div>',1),ba={id:"popup",class:"ol-popup"},wa=x(()=>l("div",{class:"pophead",style:{width:"100%"}},[l("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),l("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),_a={id:"popup-content",style:{padding:"30px"}},Sa=x(()=>l("img",{src:We},null,-1)),xa=x(()=>l("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),La=x(()=>l("img",{src:We},null,-1)),ka=x(()=>l("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),za=x(()=>l("div",{id:"popup-pagination"},null,-1)),Aa={id:"pop"},Ea={class:"rowWra"},Oa=x(()=>l("span",null,"\u5730\u533A\uFF1A",-1)),Da=x(()=>l("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Na=x(()=>l("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ca={class:"tabulation"},Va={class:"searchDiv"},qa=x(()=>l("img",{src:Bt,alt:""},null,-1)),Ta={class:"tableBox"},Ma={class:"tableBorder"},Ba={class:"example-pagination-block"},Fa={class:"chartMode"},Ia={__name:"index",setup(U){const je=wt();let Ge=h(null);const te=h(null),ae=h(null),oe=h(null),N=h("");N.value=window.localStorage.getItem("divisions");let P=_t({arr:[],brr:[],crr:[]});const ye=h({name:"",value:""});h([]);const be=h(!1);let B=h(!0),F=h(!0),we=h([]),_e=h({}),le=h([]);const I=h([]);let W=h(!0),Se=h([]),V=h(1),q=h(12),re=h([]),xe=h([]),Le=h([]);const
`,g+=y}return g}else return n}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 1)"}},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:{formatter:n=>(n&&(n=n/1e4+"\u4E07"),n)},axisLine:{lineStyle:{color:"#fff"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:s,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:r,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}}}]};t.on("click",function(n){document.querySelector(".tool").style.display="block",ze.value=n.name;let g=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Re(n.name),g.forEach(_=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==_&&i.getLayers().removeAt(A)})}),["2019-2022gaobiaozhunnongtian"].forEach(_=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==_&&i.getLayers().removeAt(A)})});for(var d=document.querySelectorAll(".alerDiv"),a=0;a<d.length;a++){var p=d[a];p.style.display="none"}let y=i.getLayers().getArray().find(_=>_.get("id")==="gbz");i.removeLayer(y);var v=i.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliang");i.removeLayer(v);var v=i.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliangs");i.removeLayer(v),$=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian",cacheEnabled:!1}),name:"2019-2022gaobiaozhunnongtian",projection:"EPSG:4326",zIndex:9999}),i.addLayer($)}),c&&t.setOption(c,{notMerge:!0,grid:{bottom:20}}),he(t,c),ge().listenTo(ae.value,()=>{ce(()=>{t.resize()})})}function vt(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),Ge.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),be.value=!1}function Ce(){const t=J(oe.value);le.value.sort((f,d)=>f.subName.length-d.subName.length);let e=[],s=[],r=[];le.value.forEach(f=>{e.push(f.subName),s.push(f.wheatUnitOutputValue),r.push(f.wheatOutput)});var u=e.sort((f,d)=>f.length-d.length),c=[s,r],o=[new Ie(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new Ie(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1)];let n={color:o,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: