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

4 lines
39 KiB
JavaScript
Raw Normal View History

2023-09-21 17:37:29 +08:00
import{_ as Lt,u as zt,r as m,D as At,t as Et,C as kt,Y as Ct,a5 as Ot,N as we,d as O,o as w,c as E,k as o,f as v,K as ie,G as U,H as Q,m as q,l as T,e as L,w as z,j as D,Q as W,R as G,x as J,A as Dt,p as Nt,q as Tt}from"./index.57224d07.js";import{_ as Ft}from"./fh.7489c25e.js";import Ae from"./downloads.4cdbbcc5.js";import{_ as It}from"./qx.88a5ecd3.js";import{_ as Vt,a as qt}from"./zhankaiss.dd067ea4.js";import{_ as Pt,a as Mt,b as Bt,c as Wt}from"./position.3b2b2301.js";import{_ as Gt,a as jt}from"./face.9a19de2e.js";import{_ as $t}from"./dow.b4b83e88.js";import"./index.b8675889.js";import{T as Rt}from"./TimeLine.dbdee48d.js";import{u as Se,w as Ut}from"./xlsx.86b9426e.js";import{u as _e}from"./useEcharts.c43bfe26.js";import{g as xe,a as Le,b as Qt,c as Qe,d as Jt,e as Yt}from"./wheat.ddfad8b6.js";import"./linesGL.901ceb35.js";import{d as Ht}from"./download.60adf562.js";import{e as ze}from"./element-resize-detector.ff2fdb0d.js";import{i as Y,ar as ue}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";const S=Z=>(Nt("data-v-3939b351"),Z=Z(),Tt(),Z),Xt={class:"fatherDiv"},Zt={class:"centerBox"},Kt=S(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ea=S(()=>o("div",{id:"labelText",title:"\u70B9\u6807\u6CE8"},"\u522B\u70B9\u6211",-1)),ta={class:"rightWra"},aa=S(()=>o("img",{src:Ft},null,-1)),oa=S(()=>o("span",null,"\u8FD4\u56DE",-1)),ra=[aa,oa],la={class:"tabar"},na={class:"leftTop"},sa={class:"title"},ia=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ua=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),da=S(()=>o("img",{src:Ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ca={class:"rightTop"},pa={class:"title"},ha=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ga=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ma=S(()=>o("img",{src:Ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),va={key:0},ya=S(()=>o("img",{src:It},null,-1)),fa=[ya],ba={class:"rightbottom"},wa={class:"title"},Sa=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),_a=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u884C\u653F\u533A\u5212",-1)),xa=S(()=>o("img",{src:Ae,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),La=S(()=>o("img",{src:Vt},null,-1)),za=S(()=>o("img",{src:qt},null,-1)),Aa={class:"bottom_center"},Ea=Dt('<div class="tool" data-v-3939b351><span data-v-3939b351><img src="'+Pt+'" alt="" data-v-3939b351></span><span data-v-3939b351><img src="'+Mt+'" alt="" data-v-3939b351></span><span data-v-3939b351><img src="'+Bt+'" alt="" data-v-3939b351></span><span data-v-3939b351><img src="'+Gt+'" alt="" data-v-3939b351></span><span data-v-3939b351><img src="'+jt+'" alt="" data-v-3939b351></span><span data-v-3939b351><img src="'+Wt+'" alt="" data-v-3939b351></span></div>',1),ka={id:"popup",class:"ol-popup"},Ca=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)),Oa={id:"popup-content",style:{padding:"30px"}},Da=S(()=>o("div",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),Na=S(()=>o("div",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),Ta=S(()=>o("div",{id:"popup-pagination"},null,-1)),Fa={id:"pop"},Ia={class:"rowWra"},Va=S(()=>o("span",null,"\u5730\u533A\uFF1A",-1)),qa=S(()=>o("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Pa=S(()=>o("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ma={class:"tabulation"},Ba={class:"searchDiv"},Wa=S(()=>o("img",{src:$t,alt:""},null,-1)),Ga={class:"tableBox"},ja={cla
2023-09-11 21:56:39 +08:00
`,n+=c}return n}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:u,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:r,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(s){var n=window.location.host,y=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!y.test(n)){document.querySelector(".tool").style.display="block",Ve.value=s.name;let f=["XJQY3702112019WGS84","CJQY3702112019WGS84"];ot(s.name),f.forEach(x=>{i.getLayers().getArray().forEach((V,R)=>{V.A.name==x&&i.getLayers().removeAt(R)})});for(var d=document.querySelectorAll(".alerDiv"),p=0;p<d.length;p++){var a=d[p];a.style.display="none"}["2019-2022gaobiaozhunnongtian"].forEach(x=>{i.getLayers().getArray().forEach((V,R)=>{V.A.name==x&&i.getLayers().removeAt(R)})});let b=i.getLayers().getArray().find(x=>x.get("id")==="gbz");i.removeLayer(b);var c=i.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliang");i.removeLayer(c);var c=i.getLayers().getArray().find(x=>x.get("id")==="dianjigaoliangs");i.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}),i.addLayer(X)}}),h&&t.setOption(h,{notMerge:!0,grid:{bottom:20}}),_e(t,h),ze().listenTo(ce.value,()=>{we(()=>{t.resize()})})}function St(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),Je.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ce.value=!1}function be(){const t=Y(pe.value);he.value.sort((n,y)=>n.subName.length-y.subName.length);let e=[],u=[],r=[];he.value.forEach(n=>{e.push(n.subName),u.push(n.wheatUnitOutputValue),r.push(n.wheatOutput)});var g=e.sort((n,y)=>n.length-y.length);let h=3/g.length*100;new ue(1,0,0,0,[{offset:0,color:"rgba(4, 247, 227, 1)"},{offset:1,color:"rgba(4, 247, 227, 1)"}],!1),new ue(1,0,0,0,[{offset:0,color:"rgba(33, 187, 251, 1)"},{offset:1,color:"rgba(33, 187, 251, 1)"}],!1),_e(t,{tooltip:{trigger:"axis",formatter:function(n,y,d){for(var p=n[0].name,a=0,c=n.length;a<c;a++)n[a].seriesType==="line"?p+="<br/>"+n[a].seriesName+" : "+(n[a].value?n[a].value:"-")+"h":p+="<br/>"+n[a].seriesName+" : "+(n[a].value?n[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
2023-09-21 17:37:29 +08:00
`,y+=f}return y}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:u,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:r,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}}}]}),ze().listenTo(pe.value,()=>{we(()=>{t.resize()})})}function Ue(){const t=Y(K.value);let e=[],u=[],r=[];M.value.forEach(l=>{e.push(l.subName),l.wheatUnitOutputValue!==void 0?u.push(l.wheatUnitOutputValue):u.push(0),l.wheatOutput!==void 0?r.push(l.wheatOutput):r.push(0)});let g=10/e.length*100;_e(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(l,s,n){for(var y=l[0].name,d=0,p=l.length;d<p;d++)l[d].seriesType==="line"?y+="<br/>"+l[d].seriesName+" : "+(l[d].value?l[d].value:"-")+"h":y+="<br/>"+l[d].seriesName+" : "+(l[d].value?l[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:u},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:r}]})}return(t,e)=>{const u=O("el-icon"),r=O("el-tooltip"),g=O("el-button"),h=O("el-option"),l=O("el-select"),s=O("el-form-item"),n=O("el-form"),y=O("el-table-column"),d=O("el-table"),p=O("el-pagination");return w(),E("div",Xt,[o("div",Zt,[Kt,ea,o("div",ta,[o("div",{class:"tool",onClick:e[0]||(e[0]=a=>v(rt)())},ra),o("div",la,[o("div",{class:ie(v($)?"tabarS":""),onClick:e[1]||(e[1]=a=>je(!0))},"\u9EC4\u5C9B\u533A",2),o("div",{class:ie(v($)?"":"tabarS"),onClick:e[2]||(e[2]=a=>je(!1))},"\u884C\u653F\u533A",2)]),U(o("div",na,[o("div",sa,[ia,ua,o("p",{onClick:e[3]||(e[3]=a=>ht())},[q(" \u4E0B\u8F7D \xA0 "),da])]),o("div",{ref_key:"areaDiv",ref:de,class:"areaDiv"},null,512)],512),[[Q,v($)]]),U(o("div",ca,[o("div",pa,[ha,ga,v(H)?(w(),E("p",{key:0,onClick:e[4]||(e[4]=a=>gt())},[q(" \u4E0B\u8F7D \xA0 "),ma])):T("",!0)]),U(o("div",{ref_key:"farm