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

3 lines
36 KiB
JavaScript
Raw Normal View History

2023-07-24 18:07:54 +08:00
import{_ as _t,u as St,r as p,D as xt,t as Lt,X as kt,x as zt,v as At,M as he,d as O,o as _,c as k,k as l,m as q,e as S,w as L,f as g,l as N,j as B,P as G,Q as j,y as J,J as Be,G as Me,H as Fe,B as Et,p as Ct,q as Dt}from"./index.db81687b.js";import be from"./downloads.4cdbbcc5.js";import{_ as te}from"./linesGL.99030c5a.js";import{_ as Nt}from"./fh.5fefbcf9.js";import{_ as Ot,a as Vt,b as Tt,c as qt}from"./position.a021215f.js";import{_ as Bt,a as Mt}from"./face.2eec3bdc.js";import{_ as Ge}from"./icon.d0cb5387.js";import{_ as Ft}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as It}from"./TimeLine.5d80dd5c.js";import{u as me,w as Wt}from"./xlsx.86b9426e.js";import{u as ge}from"./useEcharts.7cdde45a.js";import{g as ve,a as fe,b as Gt,c as Ie,d as jt,e as Qt}from"./wheat.01c24abe.js";import{d as Pt}from"./download.67ee05d3.js";import{e as ye}from"./element-resize-detector.d8720798.js";import{i as $,L as We}from"./install.49294472.js";/* empty css */const x=Y=>(Ct("data-v-d05dce38"),Y=Y(),Dt(),Y),Jt={class:"fatherDiv"},$t={class:"centerBox"},Ut=x(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Yt={class:"leftWra"},Rt={class:"leftTop"},Xt={class:"title"},Ht=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Zt=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Kt={key:0,src:te,alt:""},ea={key:0,class:"imgrotate",src:te,alt:""},ta={class:"rightWra"},aa=x(()=>l("img",{src:Nt},null,-1)),oa=x(()=>l("span",null,"\u8FD4\u56DE",-1)),la=[aa,oa],ra={class:"rightTop"},na={class:"title"},sa=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ia=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ua={class:"rightbottom"},da={class:"title"},ca=x(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),pa=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ha={key:0,src:te,alt:""},ma={key:0,class:"imgrotate",src:te,alt:""},ga={class:"bottom_center"},va=Et('<div class="tool" data-v-d05dce38><span data-v-d05dce38><img src="'+Ot+'" alt="" data-v-d05dce38></span><span data-v-d05dce38><img src="'+Vt+'" alt="" data-v-d05dce38></span><span data-v-d05dce38><img src="'+Tt+'" alt="" data-v-d05dce38></span><span data-v-d05dce38><img src="'+Bt+'" alt="" data-v-d05dce38></span><span data-v-d05dce38><img src="'+Mt+'" alt="" data-v-d05dce38></span><span data-v-d05dce38><img src="'+qt+'" alt="" data-v-d05dce38></span></div>',1),fa={id:"popup",class:"ol-popup"},ya=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)),ba={id:"popup-content",style:{padding:"30px"}},wa=x(()=>l("img",{src:Ge},null,-1)),_a=x(()=>l("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),Sa=x(()=>l("img",{src:Ge},null,-1)),xa=x(()=>l("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),La=x(()=>l("div",{id:"popup-pagination"},null,-1)),ka={id:"pop"},za={class:"rowWra"},Aa=x(()=>l("span",null,"\u5730\u533A\uFF1A",-1)),Ea=x(()=>l("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Ca=x(()=>l("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Da={class:"tabulation"},Na={class:"searchDiv"},Oa=x(()=>l("img",{src:Ft,alt:""},null,-1)),Va={class:"tableBox"},Ta={class:"tableBorder"},qa={class:"example-pagination-block"},Ba={class:"chartMode"},Ma={__name:"index",setup(Y){const je=St();let ae=p(null);const oe=p(null),le=p(null),re=p(null),C=p("");C.value=window.localStorage.getItem("divisions");let Q=xt({arr:[],brr:[],crr:[]});const P=p({name:"",value:""});p([]);const we=p(!1);let M=p(!0),F=p(!0),_e=p([]),Se=p({}),ne=p([]);const I=p([]);let W=p(!0),xe=p([]),V=p(1),T=p(12),se=p([]),Le=p([]),ke=p([]);const ze=p(1);let ie=p(!0);const R=p(null);let Qe=p(""),ue=p([]),E=p("
`,v+=y}return v}else return s}},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:s=>(s&&(s=s/1e4+"\u4E07"),s)},axisLine:{lineStyle:{color:"#fff"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:n,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(s){document.querySelector(".tool").style.display="block",Ae.value=s.name;let v=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ze(s.name),v.forEach(w=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})}),["2019-2022gaobiaozhunnongtian"].forEach(w=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})});for(var d=document.querySelectorAll(".alerDiv"),a=0;a<d.length;a++){var h=d[a];h.style.display="none"}let y=i.getLayers().getArray().find(w=>w.get("id")==="gbz");i.removeLayer(y);var f=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");i.removeLayer(f);var f=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliangs");i.removeLayer(f),U=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(U)}),c&&t.setOption(c,{notMerge:!0,grid:{bottom:20}}),ge(t,c),ye().listenTo(le.value,()=>{he(()=>{t.resize()})})}function ft(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),ae.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),we.value=!1}function Ve(){const t=$(re.value);ne.value.sort((m,d)=>m.subName.length-d.subName.length);let e=[],n=[],r=[];ne.value.forEach(m=>{e.push(m.subName),n.push(m.wheatUnitOutputValue),r.push(m.wheatOutput)});var u=e.sort((m,d)=>m.length-d.length),c=[n,r],o=[new We(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new We(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1)];let s={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: