import{_ as bt,u as wt,r as p,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 r,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 ge,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 fe}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-35323296"),U=U(),Et(),U),Qt={class:"fatherDiv"},Jt={class:"centerBox"},$t=x(()=>r("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ut={class:"leftWra"},Yt={class:"leftTop"},Rt={class:"title"},Ht=x(()=>r("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Xt=x(()=>r("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(()=>r("img",{src:Ot},null,-1)),aa=x(()=>r("span",null,"\u8FD4\u56DE",-1)),oa=[ta,aa],ra={class:"rightTop"},la={class:"title"},na=x(()=>r("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),sa=x(()=>r("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ia={key:0},ua=x(()=>r("img",{src:Dt},null,-1)),da=[ua],ca={class:"rightbottom"},pa={class:"title"},ha=x(()=>r("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ma=x(()=>r("img",{src:ve,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={key:0,src:ee,alt:""},fa={key:0,class:"imgrotate",src:ee,alt:""},va={class:"bottom_center"},ya=zt('
',1),ba={id:"popup",class:"ol-popup"},wa=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)),_a={id:"popup-content",style:{padding:"30px"}},Sa=x(()=>r("img",{src:We},null,-1)),xa=x(()=>r("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),La=x(()=>r("img",{src:We},null,-1)),ka=x(()=>r("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),za=x(()=>r("div",{id:"popup-pagination"},null,-1)),Aa={id:"pop"},Ea={class:"rowWra"},Oa=x(()=>r("span",null,"\u5730\u533A\uFF1A",-1)),Da=x(()=>r("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Na=x(()=>r("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ca={class:"tabulation"},Va={class:"searchDiv"},qa=x(()=>r("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=p(null);const te=p(null),ae=p(null),oe=p(null),N=p("");let P=_t({arr:[],brr:[],crr:[]});const ye=p({name:"",value:""});p([]);const be=p(!1);let B=p(!0),F=p(!0),we=p([]),_e=p({}),re=p([]);const I=p([]);let W=p(!0),Se=p([]),V=p(1),q=p(12),le=p([]),xe=p([]),Le=p([]);const ke=p(1);let ne=p(!0);const Y=p(null);let Pe=p(""),se=p([]),E=p(""),R=p([]),ze=p(""),O=p([{wheatUnitOutputValue:0,wheatOutput:0}]),Ae=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),Ee=p(""),z=p({time:"",statistical:"\u9547",droughtRating:"\u82B1\u751F",area:ke.value}),$=p(null);St(()=>{Qe()});function Qe(){at(),$e(),Ue(),Ye(),Ce()}xt(()=>{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")}),Lt(()=>E.value,(t,e)=>{N.value="370211",ot(N.value),rt(N.value,E.value.name),lt(N.value,E.value.name)});let i=p(null);p(null),p(null);let Oe=p(null),H=!(window.localStorage.getItem("divisions").length>6),X=p(null);p(null);let Je=[{\u6D77\u9752\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 $e(){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 u=l.coordinate;if(H){var c=u[0],o=u[1],n=i.getView();n.animate({center:[c,o],duration:1e3});let f=!1;if(["XJQY3702112019WGS84"].forEach(d=>{i.getLayers().getArray().forEach((a,h)=>{if(d==a.A.name){f=!0;return}})}),f)ie(l,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547");else{let d="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 = '${ze.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(a,function(h){let y=new ol.format.GeoJSON().readFeatures(h.result.features),v=new ol.source.Vector;v.addFeatures(y);let b=new ol.layer.Vector({source:v}).getSource().getFeatures();for(var A=0;Ay.get("id")==="zhezhao"),i.removeLayer(g);let a="";if(l=="\u9547"&&d.result.recordsets[0].features.features[0].properties.XJQYDM){let y=d.result.recordsets[0].features.features[0].properties.XJQYDM;N.value=y;let v=[];me({divisions:"370211",yearMonth:E.value.name,type:"\u82B1\u751F"}).then(_=>{_.data.forEach(b=>{b.subregion==y&&(a=b.subName,v.push(b))}),R.value=v,h()})}else if(l=="\u9AD8\u6807\u51C6"&&d.result.recordsets[0].features.features[0].properties.DKMC){let y=d.result.recordsets[0].features.features[0].properties.DKMC,v=[];ge({yearMonth:E.value.name,type:"\u82B1\u751F"}).then(_=>{_.data.forEach(b=>{b.subName==y&&v.push(b)}),a=y,R.value=v,h()})}function h(){if(d.result.currentCount>0){d.result.recordsets[0].features&&(X.setPosition(c.flatCoordinates),n.innerHTML=a),f=i.getLayers().getArray().find(yt=>yt.get("id")==="dianjigaoliang"),i.removeLayer(f);var y=new ol.format.GeoJSON().readFeatures(d.result.recordsets[0].features);u=d.result.recordsets[0].features.features[0].geometry.coordinates,ue(d.result.recordsets[0].features.features[0].geometry.coordinates);var v=new ol.source.Vector;v.addFeatures(y);const qe=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var _=new ol.layer.Vector({id:"dianjigaoliang",source:v,zIndex:9999});_.setStyle(qe),i.addLayer(_);for(var b=document.querySelectorAll(".alerDiv"),A=0;Ay.get("id")==="zhezhao"),i.removeLayer(g),De(u),N.value="370211",f=i.getLayers().getArray().find(y=>y.get("id")==="dianjigaoliang"),i.removeLayer(f),X.setPosition(void 0);for(var d=document.querySelectorAll(".alerDiv"),a=0;a{new ol.format.GeoJSON().readFeatures(t)[0]})}function De(t){const e=[-180,-90,180,90],s=ol.geom.Polygon.fromExtent(e);return t.forEach(u=>{const c=new ol.geom.LinearRing(u[0]);s.appendLinearRing(c)}),s}const Ye=()=>{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 Re(t){let e="",s="",l="",u="",c="";s="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",e=t,l="XJQY3702112019WGS84",u="huangdaoqu_bianjie",c="XJQYMC";var o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${u}`,attributeFilter:`${c} like '%${e}%'`},datasetNames:[`${u}:${l}`]});new ol.supermap.FeatureService(s).getFeaturesBySQL(o,function(n){if(n.result.featureCount!=0){var f=i.getLayers().getArray().find(v=>v.get("id")==="zhezhao");i.removeLayer(f);var g=i.getLayers().getArray().find(v=>v.get("id")==="dianjigaoliang");i.removeLayer(g);var d=new ol.format.GeoJSON().readFeatures(n.result.features);ue(n.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var a=new ol.source.Vector;a.addFeatures(d);const y=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var h=new ol.layer.Vector({id:"dianjigaoliang",source:a});h.setStyle(y),i.addLayer(h),i.getView().fit(a.getExtent())}})}function He(t){let e="",s="",l="",u="",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",u="2019-2022gaobiaozhunnongtian",c="DKMC";var o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${u}`,attributeFilter:`${c} like '%${e}%'`},datasetNames:[`${u}:${l}`]});new ol.supermap.FeatureService(s).getFeaturesBySQL(o,function(n){if(n.result.featureCount!=0){var f=i.getLayers().getArray().find(b=>b.get("id")==="zhezhao");i.removeLayer(f);var g=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang");i.removeLayer(g);var d=i.getLayers().getArray().find(b=>b.get("id")==="gbz");i.removeLayer(d);var a=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliangs");i.removeLayer(a);var h=new ol.format.GeoJSON().readFeatures(n.result.features);ue(n.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var y=new ol.source.Vector;y.addFeatures(h);const _=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var v=new ol.layer.Vector({id:"dianjigaoliang",source:y});v.setStyle(_),i.addLayer(v),i.getView().fit(y.getExtent())}})}const Xe=()=>{$=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:"huangdaoqu_village",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(){if(B.value=!B.value,B.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function Ke(){if(F.value=!F.value,F.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const et=()=>{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()}),Ve()},tt=()=>{z.value.year=Ee.value,z.value.statistical="\u9547",z.value.droughtRating="\u82B1\u751F",z.value.area=ke.value,de()},at=()=>{Wt({type:"\u82B1\u751F"}).then(t=>{Ee.value={name:t.data[0]},E.value={name:t.data[t.data.length-1]},t.data.forEach(e=>{se.value.push({name:e})}),z.value.time=t.data[t.data.length-1],Se.value=t.data,de()})},ot=(t,e)=>{Fe({type:"\u82B1\u751F",yearMonth:e}).then(s=>{_e.value=s.data,gt()})},rt=(t,e)=>{ge({yearMonth:e,type:"\u82B1\u751F"}).then(s=>{we.value=s.data,s.data.length>0&&ft()})},lt=(t,e)=>{me({yearMonth:e,type:"\u82B1\u751F"}).then(s=>{re.value=s.data,P.brr=JSON.parse(JSON.stringify(s.data)),P.arr=P.brr.sort((o,n)=>o.subName.length-n.subName.length),P.arr.unshift({subregion:"",subName:"\u5168\u90E8"});let l=[],u=[];P.arr.forEach(o=>{l.indexOf(o.subName)==-1&&(l.push(o.subName),u.push({subName:o.subName,subregion:o.subregion,area:o.area,type:o.type}))}),P.arr=u,Ce();let c=[];Je.forEach(o=>{s.data.forEach((n,f)=>{o[n.subName]&&c.push({weizhi:o[n.subName],dom1:`popup${f}`,dom2:`popup-content${f}`,subName:n.subName,subregion:n.subRegion,wheatOutput:n.wheatOutput,wheatUnitOutputValue:n.wheatUnitOutputValue})})}),c.forEach((o,n)=>{var f=document.createElement("div");f.setAttribute("class","alerDiv"),f.id=o.dom2,f.style.display="block";var g=document.createElement("div");g.id=o.dom1,g.style.display="block",g.appendChild(f),document.body.appendChild(g);var d=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
';let h=new ol.Overlay({element:d,autoPan:!0,positioning:"bottom-center",stopEvent:!0,offset:[0,-10],autoPanAnimation:{duration:250}});i.addOverlay(h),h.setPosition(o.weizhi)})})},nt=t=>{Fe({divisions:N.value,yearMonth:E.value.name,whetherToDownload:!0,type:"\u82B1\u751F"}).then(e=>{Pt(e.data[e.data.length-1].excelPath)})},st=t=>{ge({yearMonth:E.value.name,type:"\u82B1\u751F"}).then(e=>{Z(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},it=t=>{N.value===""?me({yearMonth:E.value.name,type:"\u82B1\u751F"}).then(e=>{Z(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):Gt({divisions:N.value,yearMonth:E.value.name,type:"\u82B1\u751F"}).then(e=>{Z(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},ut=()=>{let t=JSON.parse(JSON.stringify(O.value[0]));I.value.push(t),Z(I.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},de=()=>{V.value=1,jt({year:z.value.time,statistical:z.value.statistical,type:z.value.droughtRating,area:z.value.area}).then(t=>{xe.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],Le.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],ne.value=!1,I.value=t.data,le.value=t.data.slice((V.value-1)*q.value,(V.value-1)*q.value+q.value),O.value[0].wheatUnitOutputValue=0,O.value[0].wheatOutput=0,O.value[0].subName="\u5408\u8BA1",t.data.forEach(l=>{l.wheatUnitOutputValue&&(O.value[0].wheatUnitOutputValue+=Number(l.wheatUnitOutputValue)!==NaN?Number(l.wheatUnitOutputValue)/t.data.length:0),l.wheatOutput&&(O.value[0].wheatOutput+=Number(l.wheatOutput)!==NaN?Number(l.wheatOutput):0)});for(const l in O.value[0])O.value[0][l]!=="\u5408\u8BA1"&&(O.value[0][l]=O.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()}),Ve()})},dt=(t,e)=>t.map(l=>{const u={};for(const c in l)e[c]&&(u[e[c]]=l[c]);return u}),Z=(t,e="\u7528\u6237\u5217\u8868",s="Sheet1")=>{const u=dt(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),c=pe.json_to_sheet(u),o=pe.book_new();pe.book_append_sheet(o,c,s),It(o,`${e}.xlsx`)},ct=t=>{V.value=t,le.value=I.value.slice((V.value-1)*q.value,(V.value-1)*q.value+q.value)},pt=t=>{const e=V.value,s=q.value;return t+1+(e-1)*s},ht=t=>{E.value=t};let mt=()=>{document.querySelector(".tool").style.display="none",Xe(),$.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{e.xData.push(u.dataTime),e.yData[0].data.push(u.wheatUnitOutputValue),e.yData[1].data.push(u.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)",axisLabel:{formatter:"{value}",color:"#fff"},axisLine:{lineStyle:{color:"#fff"}},axisTick:{show:!1},splitLine:{lineStyle:{color:"#fff"}}},{type:"value",name:"\u4EA7\u91CF(\u5428)",axisLabel:{formatter:"{value}",color:"#fff"},axisLine:{lineStyle:{color:"#fff"}},axisTick:{show:!1},splitLine:{lineStyle:{opacity:0}}}],series:e.yData};s&&t.setOption(s),fe().listenTo(te.value,()=>{ce(()=>{t.resize()})})}function ft(){const t=J(ae.value);let e=[],s=[],l=[];we.value.forEach(n=>{e.push(n.subName),s.push(n.wheatUnitOutputValue),l.push(n.wheatOutput)});let u=3/e.length*100,c={tooltip:{trigger:"axis",formatter:function(n,f,g){for(var d=n[0].name,a=0,h=n.length;a"+n[a].seriesName+" : "+(n[a].value?n[a].value:"-")+"h":d+="
"+n[a].seriesName+" : "+(n[a].value?n[a].value:"-");return d}},grid:{top:"15%",bottom:"15%",left:"15%",right:"15%"},dataZoom:[{show:!1,type:"slider",width:"40%",zoomLock:!1,top:"90%",start:0,end:u,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 f="",g=5,d=n.length,a=Math.ceil(d/g);if(a>1){for(var h=0;h(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",ze.value=n.name;let f=["XJQY3702112019WGS84","CJQY3702112019WGS84"];He(n.name),f.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_.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),fe().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);re.value.sort((g,d)=>g.subName.length-d.subName.length);let e=[],s=[],l=[];re.value.forEach(g=>{e.push(g.subName),s.push(g.wheatUnitOutputValue),l.push(g.wheatOutput)});var u=e.sort((g,d)=>g.length-d.length),c=[s,l],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:{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:u,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]}]};he(t,n),fe().listenTo(oe.value,()=>{ce(()=>{t.resize()})})}function Ve(){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 u=10/e.length*100;he(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(o,n,f){for(var g=o[0].name,d=0,a=o.length;d"+o[d].seriesName+" : "+(o[d].value?o[d].value:"-")+"h":g+="
"+o[d].seriesName+" : "+(o[d].value?o[d].value:"-");return g}},grid:{top:"5%",bottom:"20%"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"85%",start:0,end:u,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=C("el-tooltip"),l=C("el-button"),u=C("el-option"),c=C("el-select"),o=C("el-form-item"),n=C("el-form"),f=C("el-table-column"),g=C("el-table"),d=C("el-pagination");return w(),L("div",Qt,[r("div",Jt,[$t,r("div",Ut,[r("div",Yt,[r("div",Rt,[Ht,r("p",{onClick:e[0]||(e[0]=a=>nt())},[T(" \u4E0B\u8F7D \xA0 "),Xt])]),r("div",{ref_key:"areaDiv",ref:te,class:"areaDiv"},null,512)]),r("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=a=>Ze())},[S(s,{class:"box-item","show-arrow":!1,disabled:m(B),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[m(B)?D("",!0):(w(),L("img",Zt))]),_:1},8,["disabled"]),S(s,{disabled:!m(B),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[m(B)?(w(),L("img",Kt)):D("",!0)]),_:1},8,["disabled"])])]),r("div",ea,[r("div",{class:"tool",onClick:e[2]||(e[2]=a=>m(mt)())},oa),r("div",ra,[r("div",la,[na,m(H)?(w(),L("p",{key:0,onClick:e[3]||(e[3]=a=>st())},[T(" \u4E0B\u8F7D \xA0 "),sa])):D("",!0)]),r("div",{ref_key:"farmlandDiv",ref:ae,class:"farmlandDiv"},null,512),m(H)?D("",!0):(w(),L("div",ia,da))]),r("div",ca,[r("div",pa,[ha,r("p",{onClick:e[4]||(e[4]=a=>it())},[T(" \u4E0B\u8F7D \xA0 "),ma])]),r("div",{ref_key:"ASdivisionDiv",ref:oe,class:"ASdivision"},null,512)]),r("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=a=>Ke())},[S(s,{disabled:!m(F),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[m(F)?(w(),L("img",ga)):D("",!0)]),_:1},8,["disabled"]),S(s,{disabled:m(F),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[m(F)?D("",!0):(w(),L("img",fa))]),_:1},8,["disabled"])])]),r("div",va,[m(se).length>0?(w(),M(Ft,{key:0,dataSource:m(se),onDataHandle:ht},null,8,["dataSource"])):D("",!0)]),ya,r("div",ba,[wa,r("div",_a,[(w(!0),L(j,null,G(m(R),(a,h)=>(w(),L("p",{key:h},[Sa,xa,r("span",null,Q(a.wheatUnitOutputValue)+"(\u516C\u65A4/\u4EA9)",1)]))),128)),(w(!0),L(j,null,G(m(R),(a,h)=>(w(),L("p",{key:h},[La,ka,r("span",null,Q(a.wheatOutput)+"\uFF08\u5428\uFF09",1)]))),128))]),za]),r("div",Aa,[r("div",null,[r("div",Ea,[Oa,r("span",null,Q(m(Pe)),1)]),(w(!0),L(j,null,G(ye.value.info,(a,h)=>(w(),L("div",{key:h,class:"rowWra"},[Da,r("span",null,Q(a.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(w(!0),L(j,null,G(ye.value.info,(a,h)=>(w(),L("div",{key:h,class:"rowWra"},[Na,r("span",null,Q(a.wheatOutput)+"\u4EA9",1)]))),128))])]),be.value?(w(),M(l,{key:0,class:"back_button",onClick:e[6]||(e[6]=a=>vt())},{default:k(()=>[T("\u8FD4\u56DE")]),_:1})):D("",!0)]),r("div",Ca,[r("div",Va,[S(n,{inline:!0,model:m(z),class:"demo-form-inline"},{default:k(()=>[S(o,{label:"\u65F6\u95F4:"},{default:k(()=>[S(c,{"popper-class":"selectCity",modelValue:m(z).time,"onUpdate:modelValue":e[7]||(e[7]=a=>m(z).time=a),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(w(!0),L(j,null,G(m(Se),(a,h)=>(w(),M(u,{key:h,label:t.Zitem,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),S(o,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:k(()=>[S(c,{"popper-class":"selectCity",modelValue:m(z).statistical,"onUpdate:modelValue":e[8]||(e[8]=a=>m(z).statistical=a),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[S(u,{label:"\u9547\u7EA7",value:"\u9547"}),m(H)?(w(),M(u,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):D("",!0)]),_:1},8,["modelValue"])]),_:1}),S(o,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:k(()=>[S(c,{modelValue:m(z).droughtRating,"onUpdate:modelValue":e[9]||(e[9]=a=>m(z).droughtRating=a),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[S(u,{label:"\u82B1\u751F",value:"\u82B1\u751F"})]),_:1},8,["modelValue"])]),_:1}),S(o,null,{default:k(()=>[S(l,{type:"primary",onClick:de},{default:k(()=>[T("\u67E5\u8BE2")]),_:1}),S(l,{plain:"",onClick:tt,disabled:!m(W)},{default:k(()=>[T(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),m(ne)?D("",!0):(w(),M(l,{key:0,type:"primary",text:"",onClick:ut},{default:k(()=>[qa,T(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),r("div",{class:"modeDiv",onClick:et},[r("div",{class:Te(m(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),r("div",{class:Te(m(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Me(r("div",Ta,[r("div",Ma,[m(ne)?D("",!0):(w(),M(g,{key:0,data:m(O),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[S(f,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(w(!0),L(j,null,G(m(Le),(a,h)=>(w(),M(f,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),S(g,{data:m(le),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[S(f,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:pt}),(w(!0),L(j,null,G(m(xe),(a,h)=>(w(),M(f,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),r("div",Ba,[T(" \u5171"+Q(I.value.length)+"\u6761 ",1),S(d,{background:"",layout:"prev, pager, next",total:I.value.length,"current-page":m(V),"page-size":m(q),onCurrentChange:ct},null,8,["total","current-page","page-size"])])],512),[[Be,m(W)]]),Me(r("div",Fa,[r("div",{ref_key:"chartModeDiv",ref:Y,class:"chartModeDiv"},null,512)],512),[[Be,!m(W)]])])])}}},oo=bt(Ia,[["__scopeId","data-v-35323296"]]);export{oo as default};