Agriculture-front-end/dist/assets/index.35b9f718.js

4 lines
38 KiB
JavaScript
Raw Normal View History

2024-05-30 09:20:30 +08:00
import{_ as _t,u as xt,r as m,G as Lt,t as zt,F as At,a1 as kt,a9 as Et,R as be,d as N,o as w,c as k,k as o,f as v,N as ne,I as Q,K as R,m as q,l as F,e as L,w as z,j as O,U as B,V as W,y as J,C as Ct,p as Dt,q as Nt}from"./index.9c864c60.js";import{_ as Ot}from"./fh.7489c25e.js";import ze from"./downloads.4cdbbcc5.js";import{_ as Ft}from"./qx.88a5ecd3.js";import{_ as Vt,a as It}from"./zhankaiss.dd067ea4.js";import{_ as Tt,a as qt,b as Pt,c as Mt}from"./position.3b2b2301.js";import{_ as jt,a as Bt}from"./face.9a19de2e.js";import{_ as Wt}from"./dow.b4b83e88.js";import"./index.5edff79b.js";import{T as Gt}from"./TimeLine.a8e7fc26.js";import{u as we,w as $t}from"./xlsx.86b9426e.js";import{u as Se}from"./useEcharts.b0697ce5.js";import{g as _e,a as xe,b as Ut,c as Qe,d as Qt,e as Rt}from"./wheat.b58b9299.js";import"./linesGL.ef5bef0f.js";import{d as Jt}from"./download.71b1811b.js";import{e as Le}from"./element-resize-detector.ff2fdb0d.js";import{ai as Y,bj as se}from"./linkSeriesData.77e8a68a.js";/* empty css */import"./browser-detector.e77caf03.js";const S=Z=>(Dt("data-v-c8cc75b3"),Z=Z(),Nt(),Z),Yt={class:"fatherDiv"},Ht={class:"centerBox"},Xt=S(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Zt={class:"rightWra"},Kt=S(()=>o("img",{src:Ot},null,-1)),ea=S(()=>o("span",null,"\u8FD4\u56DE",-1)),ta=[Kt,ea],aa={class:"tabar"},oa={class:"leftTop"},la={class:"title"},ra=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),na=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),sa=S(()=>o("img",{src:ze,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ia={class:"rightTop"},ua={class:"title"},da=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ca=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),pa=S(()=>o("img",{src:ze,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ha={key:0},ga=S(()=>o("img",{src:Ft},null,-1)),ma=[ga],va={class:"rightbottom"},ya={class:"title"},fa=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ba=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u884C\u653F\u533A\u5212",-1)),wa=S(()=>o("img",{src:ze,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Sa=S(()=>o("img",{src:Vt},null,-1)),_a=S(()=>o("img",{src:It},null,-1)),xa={class:"bottom_center"},La=Ct('<div class="tool" data-v-c8cc75b3><span data-v-c8cc75b3><img src="'+Tt+'" alt="" data-v-c8cc75b3></span><span data-v-c8cc75b3><img src="'+qt+'" alt="" data-v-c8cc75b3></span><span data-v-c8cc75b3><img src="'+Pt+'" alt="" data-v-c8cc75b3></span><span data-v-c8cc75b3><img src="'+jt+'" alt="" data-v-c8cc75b3></span><span data-v-c8cc75b3><img src="'+Bt+'" alt="" data-v-c8cc75b3></span><span data-v-c8cc75b3><img src="'+Mt+'" alt="" data-v-c8cc75b3></span></div>',1),za={id:"popup",class:"ol-popup"},Aa=S(()=>o("div",{class:"pophead",style:{width:"100%"}},[o("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"15px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),o("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),ka={id:"popup-content",style:{padding:"30px"}},Ea=S(()=>o("div",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),Ca=S(()=>o("div",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),Da=S(()=>o("div",{id:"popup-pagination"},null,-1)),Na={id:"pop"},Oa={class:"rowWra"},Fa=S(()=>o("span",null,"\u5730\u533A\uFF1A",-1)),Va=S(()=>o("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Ia=S(()=>o("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ta={class:"tabulation"},qa={class:"searchDiv"},Pa=S(()=>o("img",{src:Wt,alt:""},null,-1)),Ma={class:"tableBox"},ja={class:"tableBorder"},Ba={class:"example-pagination-block"},Wa={class:"chartMode"}
`,s+=c}return s}else return n}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(153, 153, 153, 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:"rgba(153, 153, 153, 1)"}},splitLine:{lineStyle:{type:"dashed",color:"rgba(153, 153, 153, 1)"}},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:"rgba(153, 153, 153, 1)"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:i,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(64, 192, 87, 0.5)"},{offset:1,color:"rgba(64, 192, 87, 0.2)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}},{name:"\u603B\u4EA7\u91CF",type:"bar",yAxisIndex:1,barWidth:"10%",data:l,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.5)"},{offset:1,color:"rgba(143, 186, 243, 0.2)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}}]};t.on("click",function(n){var s=window.location.host,y=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!y.test(s)){document.querySelector(".tool").style.display="block",Ie.value=n.name;let f=["XJQY3702112019WGS84","CJQY3702112019WGS84"];et(n.name),f.forEach(x=>{u.getLayers().getArray().forEach((T,U)=>{T.A.name==x&&u.getLayers().removeAt(U)})}),["2019-2022gaobiaozhunnongtian"].forEach(x=>{u.getLayers().getArray().forEach((T,U)=>{T.A.name==x&&u.getLayers().removeAt(U)})});for(var d=document.querySelectorAll(".alerDiv"),p=0;p<d.length;p++){var a=d[p];a.style.display="none"}let b=u.getLayers().getArray().find(x=>x.get("id")==="gbz");u.removeLayer(b);var c=u.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliang");u.removeLayer(c);var c=u.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliangs");u.removeLayer(c),X=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:`${serverAPI.geoserverUrl}/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}),u.addLayer(X)}}),h&&t.setOption(h,{notMerge:!0,grid:{bottom:20}}),Se(t,h),Le().listenTo(ue.value,()=>{be(()=>{t.resize()})})}function wt(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),Re.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ee.value=!1}function fe(){const t=Y(de.value);ce.value.sort((s,y)=>s.subName.length-y.subName.length);let e=[],i=[],l=[];ce.value.forEach(s=>{e.push(s.subName),i.push(s.wheatUnitOutputValue),l.push(s.wheatOutput)});var g=e.sort((s,y)=>s.length-y.length);let h=3/g.length*100;new se(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new se(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1),Se(t,{tooltip:{trigger:"axis",formatter:function(s,y,d){for(var p=s[0].name,a=0,c=s.length;a<c;a++)s[a].seriesType==="line"?p+="<br/>"+s[a].seriesName+" : "+(s[a].value?s[a].value:"-")+"h":p+="<br/>"+s[a].seriesName+" : "+(s[a].value?s[a].value:"-");return p}},grid:{top:"15%",bottom:"15%",left:"15%",right:"15%"},dataZoom:[{show:!1,type:"slider",width:"40%",zoomLock:!1,top:"90%",start:0,end:h,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"35%",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"}],legend:{data:["\u5355\u4EA7\u91CF","\u603B\u4EA7\u91CF"],textStyle:{color:"rgba(1
`,y+=f}return y}else return s}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(153, 153, 153, 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:"rgba(153, 153, 153, 1)"}},splitLine:{lineStyle:{type:"dashed",color:"rgba(153, 153, 153, 1)"}},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:"rgba(153, 153, 153, 1)"}}}],series:[{name:"\u5355\u4EA7\u91CF",type:"bar",barWidth:"10%",yAxisIndex:0,data:i,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 211, 81, 0.5)"},{offset:1,color:"rgba(255, 211, 81, 0.2)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}},{name:"\u603B\u4EA7\u91CF",type:"bar",yAxisIndex:1,barWidth:"10%",data:l,itemStyle:{normal:{barBorderRadius:2,color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.5)"},{offset:1,color:"rgba(33, 187, 251, 0.2)"}],global:!1},shadowColor:"rgba(255, 255, 255, 0.5)",shadowBlur:10}}}]}),Le().listenTo(de.value,()=>{be(()=>{t.resize()})})}function Ue(){const t=Y(K.value);let e=[],i=[],l=[];M.value.forEach(r=>{e.push(r.subName),r.wheatUnitOutputValue!==void 0?i.push(r.wheatUnitOutputValue):i.push(0),r.wheatOutput!==void 0?l.push(r.wheatOutput):l.push(0)});let g=10/e.length*100;Se(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(r,n,s){for(var y=r[0].name,d=0,p=r.length;d<p;d++)r[d].seriesType==="line"?y+="<br/>"+r[d].seriesName+" : "+(r[d].value?r[d].value:"-")+"h":y+="<br/>"+r[d].seriesName+" : "+(r[d].value?r[d].value:"-");return y}},grid:{top:"5%",bottom:"20%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"85%",start:0,end:g,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:i},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:l}]})}return(t,e)=>{const i=N("el-icon"),l=N("el-tooltip"),g=N("el-button"),h=N("el-option"),r=N("el-select"),n=N("el-form-item"),s=N("el-form"),y=N("el-table-column"),d=N("el-table"),p=N("el-pagination");return w(),k("div",Yt,[o("div",Ht,[Xt,o("div",Zt,[o("div",{class:"tool",onClick:e[0]||(e[0]=a=>v(nt)())},ta),o("div",aa,[o("div",{class:ne(v($)?"tabarS":""),onClick:e[1]||(e[1]=a=>We(!0))},"\u9EC4\u5C9B\u533A",2),o("div",{class:ne(v($)?"":"tabarS"),onClick:e[2]||(e[2]=a=>We(!1))},"\u884C\u653F\u533A",2)]),Q(o("div",oa,[o("div",la,[ra,na,o("p",{onClick:e[3]||(e[3]=a=>pt())},[q(" \u4E0B\u8F7D \xA0 "),sa])]),o("div",{ref_key:"areaDiv",ref:ie,class:"areaDiv"},null,512)],512),[[R,v($)]]),Q(o("div",ia,[o("div",ua,[da,ca,v(H)?(w(),k("p",{key:0,onClick:e[4]||(e[4]=a=>ht())},[q(" \u4E0B\u8F7D \xA0 "),pa])):F("",!0)]),Q(o("div",{ref_key:"farmlan