import{_ as _t,u as St,r as p,D as xt,t as Lt,X as zt,x as kt,v as At,M as pe,d as N,o as _,c as z,k as r,m as q,e as S,w as L,f as g,l as O,j as B,P as G,Q as j,y as P,J as Be,G as Fe,H as Me,B as Et,p as Ct,q as Ot}from"./index.db81687b.js";import ye from"./downloads.4cdbbcc5.js";import{_ as ae}from"./linesGL.99030c5a.js";import{_ as Dt}from"./fh.5fefbcf9.js";import{_ as Nt,a as Vt,b as Tt,c as qt}from"./position.a021215f.js";import{_ as Bt,a as Ft}from"./face.2eec3bdc.js";import{_ as Ge}from"./icon.d0cb5387.js";import{_ as Mt}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as It}from"./TimeLine.5d80dd5c.js";import{u as he,w as Wt}from"./xlsx.86b9426e.js";import{u as fe}from"./useEcharts.7cdde45a.js";import{g as ge,a as me,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 ve}from"./element-resize-detector.d8720798.js";import{i as J,L as We}from"./install.49294472.js";/* empty css */const x=U=>(Ct("data-v-ecf333f1"),U=U(),Ot(),U),Jt={class:"fatherDiv"},$t={class:"centerBox"},Ut=x(()=>r("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Yt=x(()=>r("div",{id:"labelText",title:"\u70B9\u6807\u6CE8"},"\u522B\u70B9\u6211",-1)),Rt={class:"leftWra"},Xt={class:"leftTop"},Ht={class:"title"},Zt=x(()=>r("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Kt=x(()=>r("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ea={key:0,src:ae,alt:""},ta={key:0,class:"imgrotate",src:ae,alt:""},aa={class:"rightWra"},oa=x(()=>r("img",{src:Dt},null,-1)),ra=x(()=>r("span",null,"\u8FD4\u56DE",-1)),la=[oa,ra],na={class:"rightTop"},sa={class:"title"},ia=x(()=>r("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ua=x(()=>r("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"rightbottom"},ca={class:"title"},pa=x(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ha=x(()=>r("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),fa={key:0,src:ae,alt:""},ga={key:0,class:"imgrotate",src:ae,alt:""},ma={class:"bottom_center"},va=Et('
',1),ya={id:"popup",class:"ol-popup"},ba=x(()=>r("div",{class:"pophead",style:{width:"100%"}},[r("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"}}),r("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),wa={id:"popup-content",style:{padding:"30px"}},_a=x(()=>r("img",{src:Ge},null,-1)),Sa=x(()=>r("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),xa=x(()=>r("img",{src:Ge},null,-1)),La=x(()=>r("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),za=x(()=>r("div",{id:"popup-pagination"},null,-1)),ka={id:"pop"},Aa={class:"rowWra"},Ea=x(()=>r("span",null,"\u5730\u533A\uFF1A",-1)),Ca=x(()=>r("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Oa=x(()=>r("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Da={class:"tabulation"},Na={class:"searchDiv"},Va=x(()=>r("img",{src:Mt,alt:""},null,-1)),Ta={class:"tableBox"},qa={class:"tableBorder"},Ba={class:"example-pagination-block"},Fa={class:"chartMode"},Ma={__name:"index",setup(U){const je=St();let Qe=p(null);const oe=p(null),re=p(null),le=p(null),D=p("");D.value=window.localStorage.getItem("divisions");let Q=xt({arr:[],brr:[],crr:[]});const be=p({name:"",value:""});p([]);const we=p(!1);let F=p(!0),M=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([]),ze=p([]);const ke=p(1);let ie=p(!0);const Y=p(null);let Pe=p(""),ue=p([]),E=p(""),R=p([]),Ae=p(""),de=!(window.localStorage.getItem("divisions").length>6),Ee=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),C=p([{wheatUnitOutputValue:0,wheatOutput:0}]),Ce=p(""),k=p({time:"",statistical:"\u9547",droughtRating:"\u5C0F\u9EA6",area:ke.value}),$=p(null);Lt(()=>{Je()});function Je(){rt(),lt(),Ue(),Ye(),Re(),Ve()}zt(()=>{localStorage.getItem(je.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F")}),kt(()=>E.value,(t,e)=>{D.value=window.localStorage.getItem("divisions"),nt(D.value,E.value.name),st(D.value,E.value.name)});let i=p(null);p(null),p(null);let Oe=p(null),X=p(null),$e=[{\u6D77\u6E05\u9547:[119.55673590487976,35.65921960953274]},{\u5927\u573A\u9547:[119.62381239722713,35.66588089759648]},{\u6CCA\u91CC\u9547:[119.74667707697716,35.64649984120179]},{\u7405\u740A\u9547:[119.87030449159289,35.66431631585516]},{\u5927\u6751\u9547:[119.69265171077753,35.81549722988757]},{\u85CF\u9A6C\u9547:[119.78396543008807,35.76160172256371]},{\u5F20\u5BB6\u697C\u8857\u9053:[119.87512724002988,35.80195653922014]},{\u6EE8\u6D77\u8857\u9053:[119.97581635161251,35.77818590595386]},{\u9690\u73E0\u8857\u9053:[120.02465043714614,35.86822190145625]},{\u73E0\u6D77\u8857\u9053:[119.9054471577447,35.868205749221545]},{\u516D\u6C6A\u9547:[119.76550614744232,35.952002955399706]},{\u94C1\u5C71\u8857\u9053:[119.9003966708421,35.940916580021934]},{\u80F6\u5357\u8857\u9053:[119.99585866840519,35.92909063508609]},{\u7075\u5C71\u5C9B\u7701\u7EA7\u81EA\u7136\u4FDD\u62A4\u533A:[120.16665402696374,35.76466422432871]},{\u7075\u5C71\u536B\u8857\u9053:[120.09901058402102,35.93194068930856]},{\u5B9D\u5C71\u9547:[119.87425420478907,36.00930267491887]},{\u738B\u53F0\u8857\u9053:[119.99939657505232,36.055865563101804]},{\u7EA2\u77F3\u5D16\u8857\u9053:[120.09213798349893,36.069986617313006]},{\u8F9B\u5B89\u8857\u9053:[120.14491642202691,36.008342604564874]},{\u957F\u6C5F\u8DEF\u8857\u9053:[120.16674794518045,35.961185596094154]},{\u9EC4\u5C9B\u8857\u9053:[120.19699376304628,36.04732099123903]},{\u7075\u73E0\u5C71\u8857\u9053:[120.07050399805128,36.00779971701293]},{\u859B\u5BB6\u5C9B\u8857\u9053:[120.2165772076387,35.95291190919208]}];function Ue(){var t=document.querySelector(".center"),e=document.getElementById("cesiumContainer");i=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),Ne(),i.on("singleclick",function(l){var d=l.coordinate;if(de){var c=d[0],o=d[1],n=i.getView();n.animate({center:[c,o],duration:1e3});let m=!1;if(["XJQY3702112019WGS84"].forEach(u=>{i.getLayers().getArray().forEach((a,f)=>{if(u==a.A.name){m=!0;return}})}),m)H(l,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547");else{let u="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",a=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Ae.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(u).getFeaturesBySQL(a,function(f){let v=new ol.format.GeoJSON().readFeatures(f.result.features),y=new ol.source.Vector;y.addFeatures(v);let b=new ol.layer.Vector({source:y}).getSource().getFeatures();for(var A=0;A{i.getLayers().getArray().forEach((wt,Wa)=>{if(bt==wt.A.name){te=!0;return}})}),te?H(l,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547"):H(l,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian","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","\u9AD8\u6807\u51C6")}})}});var s=new ResizeObserver(function(l){l.forEach(function(d){var c=d.contentRect.width,o=d.contentRect.height;e.style.width=c+"px",e.style.height=o+"px",i.updateSize()})});s.observe(t),Xe(Ee)}function H(t,e,s,l){let d=[];var c=new ol.geom.Point(t.coordinate),o=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:c});let n=document.querySelector("#popup-title"),m=p(null),h=p(null);new ol.supermap.QueryService(s).queryByGeometry(o,function(u){h=i.getLayers().getArray().find(v=>v.get("id")==="zhezhao"),i.removeLayer(h);let a="";if(l=="\u9547"&&u.result.recordsets[0].features.features[0].properties.XJQYDM){let v=u.result.recordsets[0].features.features[0].properties.XJQYDM;D.value=v;let y=[];ge({divisions:"370211",yearMonth:E.value.name,type:"\u5C0F\u9EA6"}).then(w=>{w.data.forEach(b=>{b.subregion==v&&(a=b.subName,y.push(b))}),R.value=y,f()})}else if(l=="\u9AD8\u6807\u51C6"&&u.result.recordsets[0].features.features[0].properties.DKMC){let v=u.result.recordsets[0].features.features[0].properties.DKMC,y=[];me({yearMonth:E.value.name,type:"\u5C0F\u9EA6"}).then(w=>{w.data.forEach(b=>{b.subName==v&&y.push(b)}),a=v,R.value=y,f()})}function f(){if(u.result.currentCount>0){u.result.recordsets[0].features&&(X.setPosition(c.flatCoordinates),n.innerHTML=a),m=i.getLayers().getArray().find(te=>te.get("id")==="dianjigaoliang"),i.removeLayer(m);var v=new ol.format.GeoJSON().readFeatures(u.result.recordsets[0].features);d=u.result.recordsets[0].features.features[0].geometry.coordinates,Z(u.result.recordsets[0].features.features[0].geometry.coordinates);var y=new ol.source.Vector;y.addFeatures(v);const qe=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var w=new ol.layer.Vector({id:"dianjigaoliang",source:y,zIndex:9999});w.setStyle(qe),i.addLayer(w);for(var b=document.querySelectorAll(".alerDiv"),A=0;Av.get("id")==="zhezhao"),i.removeLayer(h),De(d),D.value=window.localStorage.getItem("divisions"),m=i.getLayers().getArray().find(v=>v.get("id")==="dianjigaoliang"),i.removeLayer(m),m=i.getLayers().getArray().find(v=>v.get("id")==="gao"),i.removeLayer(m),X.setPosition(void 0);for(var u=document.querySelectorAll(".alerDiv"),a=0;a{const s=new ol.format.GeoJSON().readFeatures(t)[0];Z(s.getGeometry().getCoordinates(),"huandao")})}function De(t){const e=[-180,-90,180,90],s=ol.geom.Polygon.fromExtent(e);return t.forEach(d=>{const c=new ol.geom.LinearRing(d[0]);s.appendLinearRing(c)}),s}const Re=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Oe=document.getElementById("popup-closer"),X=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(X)};function Xe(t){let e="",s="",l="",d="",c="";s="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",e=t,l="XJQY3702112019WGS84",d="huangdaoqu_bianjie",c="XJQYMC";var o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${d}`,attributeFilter:`${c} like '%${e}%'`},datasetNames:[`${d}:${l}`]});new ol.supermap.FeatureService(s).getFeaturesBySQL(o,function(n){if(n.result.featureCount!=0){var m=i.getLayers().getArray().find(y=>y.get("id")==="zhezhao");i.removeLayer(m);var h=i.getLayers().getArray().find(y=>y.get("id")==="dianjigaoliang");i.removeLayer(h);var u=new ol.format.GeoJSON().readFeatures(n.result.features);Z(n.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var a=new ol.source.Vector;a.addFeatures(u);const v=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var f=new ol.layer.Vector({id:"dianjigaoliang",source:a});f.setStyle(v),i.addLayer(f),i.getView().fit(a.getExtent())}})}const He=()=>{$=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),i.addLayer($)},Ne=()=>{var t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});i.addLayer(t)};function Ze(t){let e="",s="",l="",d="",c="";s="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",e=t,l="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",d="2019-2022gaobiaozhunnongtian",c="DKMC";var o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${d}`,attributeFilter:`${c} like '%${e}%'`},datasetNames:[`${d}:${l}`]});new ol.supermap.FeatureService(s).getFeaturesBySQL(o,function(n){if(n.result.featureCount!=0){var m=i.getLayers().getArray().find(b=>b.get("id")==="zhezhao");i.removeLayer(m);var h=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang");i.removeLayer(h);var u=i.getLayers().getArray().find(b=>b.get("id")==="gbz");i.removeLayer(u);var a=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliangs");i.removeLayer(a);var f=new ol.format.GeoJSON().readFeatures(n.result.features);Z(n.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var v=new ol.source.Vector;v.addFeatures(f);const w=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var y=new ol.layer.Vector({id:"dianjigaoliang",source:v});y.setStyle(w),i.addLayer(y),i.getView().fit(v.getExtent())}})}let Ke=()=>{document.querySelector(".tool").style.display="none",He(),$.setVisible(!1),Ne(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(c=>{i.getLayers().getArray().forEach((o,n)=>{(o.A.name==c||o.A.id==c)&&i.getLayers().removeAt(n)})});var e=i.getView();e.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11});for(var s=document.querySelectorAll(".alerDiv"),l=0;l{W.value=!W.value;const t=Y.value;t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px";const e=J(t);window.addEventListener("resize",()=>{t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px",e.resize()}),Te()},ot=()=>{k.value.year=Ce.value,k.value.statistical="\u9547",k.value.droughtRating="\u5C0F\u9EA6",k.value.area=ke.value,ce()},rt=()=>{Gt({type:"\u5C0F\u9EA6"}).then(t=>{Ce.value={name:t.data[0]},E.value={name:t.data[0]},t.data.forEach(e=>{ue.value.push({name:e})}),k.value.time=t.data[t.data.length-1],xe.value=t.data,ce()})},lt=(t,e)=>{Ie({divisions:t,type:"\u5C0F\u9EA6"}).then(s=>{Se.value=s.data,mt()})},nt=(t,e)=>{me({divisions:t,yearMonth:e,type:"\u5C0F\u9EA6"}).then(s=>{_e.value=s.data,s.data.length>0&&vt()})},st=(t,e)=>{ge({divisions:t,yearMonth:e,type:"\u5C0F\u9EA6"}).then(s=>{ne.value=s.data,Q.brr=JSON.parse(JSON.stringify(s.data)),Q.arr=Q.brr.sort((o,n)=>o.subName.length-n.subName.length),Q.arr.unshift({subregion:"",subName:"\u5168\u90E8"});let l=[],d=[];Q.arr.forEach(o=>{l.indexOf(o.subName)==-1&&(l.push(o.subName),d.push({subName:o.subName,subregion:o.subregion,area:o.area,type:o.type}))}),Q.arr=d,Ve();let c=[];$e.forEach(o=>{s.data.forEach((n,m)=>{o[n.subName]&&c.push({weizhi:o[n.subName],dom1:`popup${m}`,dom2:`popup-content${m}`,subName:n.subName,subregion:n.subRegion,wheatOutput:n.wheatOutput,wheatUnitOutputValue:n.wheatUnitOutputValue})})}),c.forEach((o,n)=>{var m=document.createElement("div");m.setAttribute("class","alerDiv"),m.id=o.dom2,m.style.display="block";var h=document.createElement("div");h.id=o.dom1,h.style.display="block",h.appendChild(m),document.body.appendChild(h);var u=document.getElementById(o.dom1),a=document.getElementById(o.dom2);a.innerHTML='\u5355\u4EA7\u91CF: '+o.wheatUnitOutputValue+'\u516C\u65A4/\u4EA9
\u603B\u4EA7\u91CF: '+o.wheatOutput+'\u5428
';var f=new ol.Overlay({element:u,autoPan:!0,positioning:"bottom-center",stopEvent:!0,offset:[0,-10],autoPanAnimation:{duration:250}});i.addOverlay(f),f.setPosition(o.weizhi)})})},it=t=>{Ie({divisions:D.value,yearMonth:E.value.name,whetherToDownload:!0,type:"\u5C0F\u9EA6"}).then(e=>{Pt(e.data[e.data.length-1].excelPath)})},ut=t=>{me({yearMonth:E.value.name,type:"\u5C0F\u9EA6"}).then(e=>{K(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},dt=t=>{D.value===""?ge({yearMonth:E.value.name,type:"\u5C0F\u9EA6"}).then(e=>{K(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):Qt({divisions:D.value,yearMonth:E.value.name,type:"\u5C0F\u9EA6"}).then(e=>{K(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},ct=()=>{let t=JSON.parse(JSON.stringify(C.value[0]));I.value.push(t),K(I.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ce=()=>{V.value=1,jt({year:k.value.time,statistical:k.value.statistical,type:k.value.droughtRating,area:k.value.area}).then(t=>{Le.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],ze.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],ie.value=!1,I.value=t.data,se.value=t.data.slice((V.value-1)*T.value,(V.value-1)*T.value+T.value),C.value[0].wheatUnitOutputValue=0,C.value[0].wheatOutput=0,C.value[0].subName="\u5408\u8BA1",t.data.forEach(l=>{l.wheatUnitOutputValue&&(C.value[0].wheatUnitOutputValue+=Number(l.wheatUnitOutputValue)!==NaN?Number(l.wheatUnitOutputValue)/t.data.length:0),l.wheatOutput&&(C.value[0].wheatOutput+=Number(l.wheatOutput)!==NaN?Number(l.wheatOutput):0)});for(const l in C.value[0])C.value[0][l]!=="\u5408\u8BA1"&&(C.value[0][l]=C.value[0][l].toFixed(2));const e=Y.value;e.style.width=document.querySelector(".app-main").offsetWidth-50+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px";const s=J(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",s.resize()}),Te()})},pt=(t,e)=>t.map(l=>{const d={};for(const c in l)e[c]&&(d[e[c]]=l[c]);return d}),K=(t,e="\u7528\u6237\u5217\u8868",s="Sheet1")=>{const d=pt(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),c=he.json_to_sheet(d),o=he.book_new();he.book_append_sheet(o,c,s),Wt(o,`${e}.xlsx`)},ht=t=>{V.value=t,se.value=I.value.slice((V.value-1)*T.value,(V.value-1)*T.value+T.value)},ft=t=>{const e=V.value,s=T.value;return t+1+(e-1)*s},gt=t=>{E.value=t};function mt(){const t=J(oe.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}]};Se.value.forEach(d=>{e.xData.push(d.dataTime),e.yData[0].data.push(d.wheatUnitOutputValue),e.yData[1].data.push(d.wheatOutput)});let s={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:"#fff"},data:e.title,top:40,x:"center"},xAxis:[{type:"category",data:e.xData,axisLine:{lineStyle:{color:"#fff"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"#fff"}},boundaryGap:!1}],yAxis:[{type:"value",name:"\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",axisLine:{lineStyle:{color:"rgba(255, 255, 255, 1)"}},axisLabel:{formatter:"{value}",color:"#fff"},axisTick:{show:!1},splitLine:{lineStyle:{color:"#fff"}}},{type:"value",name:"\u4EA7\u91CF(\u5428)",axisLabel:{formatter:"{value}",color:"#fff"},axisLine:{lineStyle:{color:"rgba(255, 255, 255, 1)"}},axisTick:{show:!1},splitLine:{lineStyle:{opacity:0}}}],series:e.yData};s&&t.setOption(s),ve().listenTo(oe.value,()=>{pe(()=>{t.resize()})})}function vt(){const t=J(re.value);let e=[],s=[],l=[];_e.value.forEach(n=>{e.push(n.subName),s.push(n.wheatUnitOutputValue),l.push(n.wheatOutput)});let d=3/e.length*100,c={tooltip:{trigger:"axis",formatter:function(n,m,h){for(var u=n[0].name,a=0,f=n.length;a"+n[a].seriesName+" : "+(n[a].value?n[a].value:"-")+"h":u+="
"+n[a].seriesName+" : "+(n[a].value?n[a].value:"-");return u}},grid:{top:"15%",bottom:"15%",left:"15%",right:"15%"},dataZoom:[{show:!1,type:"slider",width:"40%",zoomLock:!1,top:"90%",start:0,end:d,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:"#fff",fontSize:12},type:"scroll",top:"3%"},xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{interval:0,formatter:function(n){var m="",h=5,u=n.length,a=Math.ceil(u/h);if(a>1){for(var f=0;f(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:l,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",Ae.value=n.name;let m=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ze(n.name),m.forEach(w=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})});for(var h=document.querySelectorAll(".alerDiv"),u=0;u{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})});let v=i.getLayers().getArray().find(w=>w.get("id")==="gbz");i.removeLayer(v);var y=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");i.removeLayer(y);var y=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliangs");i.removeLayer(y),$=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}}),fe(t,c),ve().listenTo(re.value,()=>{pe(()=>{t.resize()})})}function yt(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),Qe.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),we.value=!1}function Ve(){const t=J(le.value);ne.value.sort((h,u)=>h.subName.length-u.subName.length);let e=[],s=[],l=[];ne.value.forEach(h=>{e.push(h.subName),s.push(h.wheatUnitOutputValue),l.push(h.wheatOutput)});var d=e.sort((h,u)=>h.length-u.length),c=[s,l],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 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:{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:d,axisLabel:{textStyle:{fontSize:13,color:"#fff"}},axisTick:{show:!1},axisLine:{show:!1}}],series:[{name:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",type:"bar",barWidth:5,data:c[0]},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",barWidth:5,data:c[1]}]};fe(t,n),ve().listenTo(le.value,()=>{pe(()=>{t.resize()})})}function Te(){const t=J(Y.value);let e=[],s=[],l=[];I.value.forEach(o=>{e.push(o.subName),o.wheatUnitOutputValue!==void 0?s.push(o.wheatUnitOutputValue):s.push(0),o.wheatOutput!==void 0?l.push(o.wheatOutput):l.push(0)});let d=10/e.length*100;fe(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(o,n,m){for(var h=o[0].name,u=0,a=o.length;u"+o[u].seriesName+" : "+(o[u].value?o[u].value:"-")+"h":h+="
"+o[u].seriesName+" : "+(o[u].value?o[u].value:"-");return h}},grid:{top:"5%",bottom:"20%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"85%",start:0,end:d,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:s},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:l}]})}return(t,e)=>{const s=N("el-tooltip"),l=N("el-button"),d=N("el-option"),c=N("el-select"),o=N("el-form-item"),n=N("el-form"),m=N("el-table-column"),h=N("el-table"),u=N("el-pagination");return _(),z("div",Jt,[r("div",$t,[Ut,Yt,r("div",Rt,[r("div",Xt,[r("div",Ht,[Zt,r("p",{onClick:e[0]||(e[0]=a=>it())},[q(" \u4E0B\u8F7D \xA0 "),Kt])]),r("div",{ref_key:"areaDiv",ref:oe,class:"areaDiv"},null,512)]),r("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=a=>et())},[S(s,{class:"box-item","show-arrow":!1,disabled:g(F),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:L(()=>[g(F)?O("",!0):(_(),z("img",ea))]),_:1},8,["disabled"]),S(s,{disabled:!g(F),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:L(()=>[g(F)?(_(),z("img",ta)):O("",!0)]),_:1},8,["disabled"])])]),r("div",aa,[r("div",{class:"tool",onClick:e[2]||(e[2]=a=>g(Ke)())},la),r("div",na,[r("div",sa,[ia,g(de)?(_(),z("p",{key:0,onClick:e[3]||(e[3]=a=>ut())},[q(" \u4E0B\u8F7D \xA0 "),ua])):O("",!0)]),r("div",{ref_key:"farmlandDiv",ref:re,class:"farmlandDiv"},null,512)]),r("div",da,[r("div",ca,[pa,r("p",{onClick:e[4]||(e[4]=a=>dt())},[q(" \u4E0B\u8F7D \xA0 "),ha])]),r("div",{ref_key:"ASdivisionDiv",ref:le,class:"ASdivision"},null,512)]),r("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=a=>tt())},[S(s,{disabled:!g(M),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:L(()=>[g(M)?(_(),z("img",fa)):O("",!0)]),_:1},8,["disabled"]),S(s,{disabled:g(M),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:L(()=>[g(M)?O("",!0):(_(),z("img",ga))]),_:1},8,["disabled"])])]),r("div",ma,[g(ue).length>0?(_(),B(It,{key:0,dataSource:g(ue),onDataHandle:gt},null,8,["dataSource"])):O("",!0)]),va,r("div",ya,[ba,r("div",wa,[(_(!0),z(G,null,j(g(R),(a,f)=>(_(),z("p",{key:f},[_a,Sa,r("span",null,P(a.wheatUnitOutputValue)+"(\u516C\u65A4/\u4EA9)",1)]))),128)),(_(!0),z(G,null,j(g(R),(a,f)=>(_(),z("p",{key:f},[xa,La,r("span",null,P(a.wheatOutput)+"(\u5428)",1)]))),128))]),za]),r("div",ka,[r("div",null,[r("div",Aa,[Ea,r("span",null,P(g(Pe)),1)]),(_(!0),z(G,null,j(be.value.info,(a,f)=>(_(),z("div",{key:f,class:"rowWra"},[Ca,r("span",null,P(a.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(_(!0),z(G,null,j(be.value.info,(a,f)=>(_(),z("div",{key:f,class:"rowWra"},[Oa,r("span",null,P(a.wheatOutput)+"\u4EA9",1)]))),128))]),r("div",{class:"cancel",onClick:e[6]||(e[6]=(...a)=>t.hiddenOverlayChart&&t.hiddenOverlayChart(...a))},"X")]),we.value?(_(),B(l,{key:0,class:"back_button",onClick:e[7]||(e[7]=a=>yt())},{default:L(()=>[q("\u8FD4\u56DE")]),_:1})):O("",!0)]),r("div",Da,[r("div",Na,[S(n,{inline:!0,model:g(k),class:"demo-form-inline"},{default:L(()=>[S(o,{label:"\u65F6\u95F4:"},{default:L(()=>[S(c,{"popper-class":"selectCity",modelValue:g(k).time,"onUpdate:modelValue":e[8]||(e[8]=a=>g(k).time=a),placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[(_(!0),z(G,null,j(g(xe),(a,f)=>(_(),B(d,{key:f,label:t.Zitem,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),S(o,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:L(()=>[S(c,{"popper-class":"selectCity",modelValue:g(k).statistical,"onUpdate:modelValue":e[9]||(e[9]=a=>g(k).statistical=a),placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[S(d,{label:"\u9547\u7EA7",value:"\u9547"}),g(de)?(_(),B(d,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):O("",!0)]),_:1},8,["modelValue"])]),_:1}),S(o,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:L(()=>[S(c,{modelValue:g(k).droughtRating,"onUpdate:modelValue":e[10]||(e[10]=a=>g(k).droughtRating=a),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[S(d,{label:"\u5C0F\u9EA6",value:"\u5C0F\u9EA6"})]),_:1},8,["modelValue"])]),_:1}),S(o,null,{default:L(()=>[S(l,{type:"primary",onClick:ce},{default:L(()=>[q("\u67E5\u8BE2")]),_:1}),S(l,{plain:"",onClick:ot,disabled:!g(W)},{default:L(()=>[q(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(ie)?O("",!0):(_(),B(l,{key:0,type:"primary",text:"",onClick:ct},{default:L(()=>[Va,q(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),r("div",{class:"modeDiv",onClick:at},[r("div",{class:Be(g(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),r("div",{class:Be(g(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Fe(r("div",Ta,[r("div",qa,[g(ie)?O("",!0):(_(),B(h,{key:0,data:g(C),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:L(()=>[S(m,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(_(!0),z(G,null,j(g(ze),(a,f)=>(_(),B(m,{key:f,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),S(h,{data:g(se),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:L(()=>[S(m,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:ft}),(_(!0),z(G,null,j(g(Le),(a,f)=>(_(),B(m,{key:f,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),r("div",Ba,[q(" \u5171"+P(I.value.length)+"\u6761 ",1),S(u,{background:"",layout:"prev, pager, next",total:I.value.length,"current-page":g(V),"page-size":g(T),onCurrentChange:ht},null,8,["total","current-page","page-size"])])],512),[[Me,g(W)]]),Fe(r("div",Fa,[r("div",{ref_key:"chartModeDiv",ref:Y,class:"chartModeDiv"},null,512)],512),[[Me,!g(W)]])])])}}},ro=_t(Ma,[["__scopeId","data-v-ecf333f1"]]);export{ro as default};