import{_ as Lt,u as zt,r as m,I as At,x as kt,H as Et,a2 as Dt,aa as Ct,S as Se,d as N,o as w,c as k,l as o,f as v,O as se,K as R,M as J,n as q,m as F,e as L,w as z,k as O,V as W,W as j,A as Y,F as Nt,q as Ot,s as Ft}from"./index.9f28707e.js";import{_ as It}from"./fh.7489c25e.js";import ke from"./downloads.e955445d.js";import{_ as Vt}from"./qx.88a5ecd3.js";import{_ as Tt,a as qt}from"./zhankaiss.6870329f.js";import{_ as Mt,a as Pt,b as Bt,c as Wt}from"./position.3b2b2301.js";import{_ as jt,a as Gt}from"./face.d3470a20.js";import{_ as $t}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as Ut}from"./TimeLine.65e192a9.js";import{u as _e,w as Qt}from"./xlsx.881b8a71.js";import{u as xe}from"./useEcharts.342dbaed.js";import{g as Le,a as ze,b as Rt,c as Re,d as Jt,e as Yt}from"./wheat.2105dd4d.js";import"./linesGL.76a64914.js";import{d as Ht}from"./download.da137c17.js";import{e as Ae}from"./element-resize-detector.d4d1cd8d.js";import{ai as H,aj as ie}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";const S=K=>(Ot("data-v-12c4a8d4"),K=K(),Ft(),K),Xt={class:"fatherDiv"},Zt={class:"centerBox"},Kt=S(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ea={class:"rightWra"},ta=S(()=>o("img",{src:It},null,-1)),aa=S(()=>o("span",null,"\u8FD4\u56DE",-1)),oa=[ta,aa],la={class:"tabar"},ra={class:"leftTop"},na={class:"title"},sa=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ia=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),ua=S(()=>o("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"rightTop"},ca={class:"title"},pa=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ha=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ga=S(()=>o("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ma={key:0},va=S(()=>o("img",{src:Vt},null,-1)),ya=[va],fa={class:"rightbottom"},ba={class:"title"},wa=S(()=>o("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Sa=S(()=>o("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u884C\u653F\u533A\u5212",-1)),_a=S(()=>o("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),xa=S(()=>o("img",{src:Tt},null,-1)),La=S(()=>o("img",{src:qt},null,-1)),za={class:"bottom_center"},Aa=Nt('
',1),ka={id:"popup",class:"ol-popup"},Ea=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)),Da={id:"popup-content",style:{padding:"30px"}},Ca=S(()=>o("div",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),Na=S(()=>o("div",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),Oa=S(()=>o("div",{id:"popup-pagination"},null,-1)),Fa={id:"pop"},Ia={class:"rowWra"},Va=S(()=>o("span",null,"\u5730\u533A\uFF1A",-1)),Ta=S(()=>o("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),qa=S(()=>o("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ma={class:"tabulation"},Pa={class:"searchDiv"},Ba=S(()=>o("img",{src:$t,alt:""},null,-1)),Wa={class:"tableBox"},ja={class:"tableBorder"},Ga={class:"example-pagination-block"},$a={class:"chartMode"},Ua={__name:"index",setup(K){const Ee=zt();let ue=m(null);const de=m(null),ce=m(null),pe=m(null),D=m("");D.value=window.localStorage.getItem("divisions");let G=At({arr:[],brr:[],crr:[]});const $=m({name:"",value:""});m([]);const De=m(!1);m(!0);let M=m(!1),Ce=m([]),Ne=m({}),he=m([]);const P=m([]);let B=m(!0),Oe=m([]),I=m(1),V=m(12),ge=m([]),Fe=m([]),Ie=m([]);const Ve=m(1);let me=m(!0);const ee=m(null);let Je=m(""),te=m([]),E=m(""),ae=m([]),Te=m(""),qe=m([]),ve=m(""),oe=m(5),le=m([]),U=m(!0),X=!(window.localStorage.getItem("divisions").length>6),Me=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),C=m([{wheatUnitOutputValue:0,wheatOutput:0}]),Pe=m(""),A=m({time:"",statistical:"\u9547",droughtRating:"\u7389\u7C73",area:Ve.value}),Z=m(null);kt(()=>{Ye()});function Ye(){it(),Xe(),Ze(),Ke(),we();for(var t=document.querySelectorAll(".alerDiv"),e=0;e{localStorage.getItem(Ee.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");for(var t=document.querySelectorAll(".alerDiv"),e=0;eE.value,(t,e)=>{D.value=window.localStorage.getItem("divisions"),ut(D.value,E.value.name),dt(D.value,E.value.name),ct(D.value,E.value.name)});let u=m(null);m(null),m(null);let Be=m(null),re=m(null),He=[{\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 Xe(){var t=document.querySelector(".center"),e=document.getElementById("cesiumContainer");u=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.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),je(),u.on("singleclick",function(l){var g=l.coordinate;if(X){var h=g[0],r=g[1],s=u.getView();s.animate({center:[h,r],duration:1e3});let i=!1;if(["XJQY3702112019WGS84"].forEach(d=>{u.getLayers().getArray().forEach((p,a)=>{if(d==p.A.name){i=!0;return}})}),i)ye(l,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547");else{let d=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,p=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Te.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(p,function(a){let c=new ol.format.GeoJSON().readFeatures(a.result.features),f=new ol.source.Vector;f.addFeatures(c);let b=new ol.layer.Vector({source:f}).getSource().getFeatures();for(var x=0;xc.get("id")==="zhezhao"),u.removeLayer(y);let p="";if(l=="\u9547"&&d.result.recordsets[0].features.features[0].properties.XJQYDM){let c=d.result.recordsets[0].features.features[0].properties.XJQYDM;D.value=c;let f=[];Le({divisions:"370211",yearMonth:E.value.name,type:"\u7389\u7C73"}).then(_=>{_.data.forEach(b=>{b.subregion==c&&(p=b.subName,f.push(b))}),ae.value=f,a()})}else if(l=="\u9AD8\u6807\u51C6"&&d.result.recordsets[0].features.features[0].properties.DKMC){let c=d.result.recordsets[0].features.features[0].properties.DKMC,f=[];ze({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(_=>{_.data.forEach(b=>{b.subName==c&&f.push(b)}),p=c,ae.value=f,a()})}function a(){if(d.result.currentCount>0){d.result.recordsets[0].features&&(re.setPosition(h.flatCoordinates),s.innerHTML=p),i=u.getLayers().getArray().find(xt=>xt.get("id")==="dianjigaoliang"),u.removeLayer(i);var c=new ol.format.GeoJSON().readFeatures(d.result.recordsets[0].features);g=d.result.recordsets[0].features.features[0].geometry.coordinates,fe(d.result.recordsets[0].features.features[0].geometry.coordinates);var f=new ol.source.Vector;f.addFeatures(c);const Q=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:f,zIndex:9999});_.setStyle(Q),u.addLayer(_);for(var b=document.querySelectorAll(".alerDiv"),x=0;xc.get("id")==="zhezhao"),u.removeLayer(y),We(g),D.value=window.localStorage.getItem("divisions"),i=u.getLayers().getArray().find(c=>c.get("id")==="dianjigaoliang"),u.removeLayer(i),re.setPosition(void 0);for(var d=document.querySelectorAll(".alerDiv"),p=0;p{new ol.format.GeoJSON().readFeatures(t)[0]})}function We(t){const e=[-180,-90,180,90],n=ol.geom.Polygon.fromExtent(e);return t.forEach(g=>{const h=new ol.geom.LinearRing(g[0]);n.appendLinearRing(h)}),n}const Ke=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Be=document.getElementById("popup-closer"),re=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),u.addOverlay(re)};let et=()=>{document.querySelector(".tool").style.display="none",at(),Z.setVisible(!1),je(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(h=>{u.getLayers().getArray().forEach((r,s)=>{(r.A.name==h||r.A.id==h)&&u.getLayers().removeAt(s)})});var e=u.getView();e.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11});for(var n=document.querySelectorAll(".alerDiv"),l=0;lf.get("id")==="zhezhao");u.removeLayer(i);var y=u.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang");u.removeLayer(y);var d=new ol.format.GeoJSON().readFeatures(s.result.features);fe(s.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var p=new ol.source.Vector;p.addFeatures(d);const c=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var a=new ol.layer.Vector({id:"dianjigaoliang",source:p});a.setStyle(c),u.addLayer(a),u.getView().fit(p.getExtent())}})}const at=()=>{Z=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),u.addLayer(Z)},je=()=>{var t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});u.addLayer(t)};function ot(t){let e="",n="",l="",g="",h="";n=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,e=t,l="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",g="2019-2022gaobiaozhunnongtian",h="DKMC";var r=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${g}`,attributeFilter:`${h} like '%${e}%'`},datasetNames:[`${g}:${l}`]});new ol.supermap.FeatureService(n).getFeaturesBySQL(r,function(s){if(s.result.featureCount!=0){var i=u.getLayers().getArray().find(b=>b.get("id")==="zhezhao");u.removeLayer(i);var y=u.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang");u.removeLayer(y);var d=u.getLayers().getArray().find(b=>b.get("id")==="gbz");u.removeLayer(d);var p=u.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliangs");u.removeLayer(p);var a=new ol.format.GeoJSON().readFeatures(s.result.features);fe(s.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var c=new ol.source.Vector;c.addFeatures(a);const _=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:c});f.setStyle(_),u.addLayer(f),u.getView().fit(c.getExtent())}})}const Ge=t=>{U.value=t,t?$e():(Ue(),we())};function lt(){if(M.value=!M.value,M.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(101%,0)"}}const rt=()=>{B.value=!B.value;const t=ee.value;t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px";const e=H(t);window.addEventListener("resize",()=>{t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px",e.resize()}),Qe()},nt=()=>{A.value.year=Pe.value,A.value.statistical="\u9547",A.value.droughtRating="\u7389\u7C73",A.value.area=Ve.value,be()},st=t=>{te.value=le.value.slice((t-1)*oe.value,t*oe.value)},it=()=>{Rt({type:"\u7389\u7C73"}).then(t=>{Pe.value={name:t.data[0]},E.value={name:t.data[t.data.length-1]},Oe.value=t.data;let e=[];t.data.forEach(n=>{e.push({name:n})}),A.value.time=t.data[t.data.length-1],le.value=e,qe.value=Math.ceil(le.value.length/5),ve=Math.ceil(e.length/5),te.value=le.value.slice((ve-1)*oe.value,ve*oe.value),be()})},ut=(t,e)=>{Re({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{Ne.value=n.data,$e()})},dt=(t,e)=>{ze({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{Ce.value=n.data,n.data.length>0&&Ue()})},ct=(t,e)=>{Le({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{he.value=n.data,G.brr=JSON.parse(JSON.stringify(n.data)),G.arr=G.brr.sort((r,s)=>r.subName.length-s.subName.length),G.arr.unshift({subregion:"",subName:"\u5168\u90E8"});let l=[],g=[];G.arr.forEach(r=>{l.indexOf(r.subName)==-1&&(l.push(r.subName),g.push({subName:r.subName,subregion:r.subregion,area:r.area,type:r.type}))}),G.arr=g,we();let h=[];He.forEach(r=>{n.data.forEach((s,i)=>{r[s.subName]&&h.push({weizhi:r[s.subName],dom1:`popup${i}`,dom2:`popup-content${i}`,subName:s.subName,subregion:s.subRegion,wheatOutput:s.wheatOutput,wheatUnitOutputValue:s.wheatUnitOutputValue})})}),h.forEach((r,s)=>{var i=document.createElement("div");i.setAttribute("class","alerDiv"),i.id=r.dom2,i.style.display="block";var y=document.createElement("div");y.id=r.dom1,y.style.display="block",y.appendChild(i),document.body.appendChild(y);var d=document.getElementById(r.dom1),p=document.getElementById(r.dom2);p.innerHTML='
\u5355\u4EA7: '+r.wheatUnitOutputValue+'\u516C\u65A4/\u4EA9
\u603B\u4EA7: '+r.wheatOutput.toFixed(1)+'\u5428
';var a=new ol.Overlay({element:d,autoPan:!0,positioning:"bottom-center",stopEvent:!0,offset:[0,-10],autoPanAnimation:{duration:250}});u.addOverlay(a),a.setPosition(r.weizhi)})})},pt=t=>{Re({divisions:D.value,yearMonth:E.value.name,whetherToDownload:!0,type:"\u7389\u7C73"}).then(e=>{Ht(e.data[e.data.length-1].excelPath)})},ht=t=>{ze({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{ne(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},gt=t=>{D.value===""?Le({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{ne(e.data,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u884C\u653F\u533A\u5212","Sheet1")}):Yt({divisions:D.value,yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{ne(e.data,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u884C\u653F\u533A\u5212","Sheet1")})},mt=()=>{let t=JSON.parse(JSON.stringify(C.value[0]));P.value.push(t),ne(P.value,"\u7389\u7C73\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},be=()=>{I.value=1,Jt({year:A.value.time,statistical:A.value.statistical,type:A.value.droughtRating,area:A.value.area}).then(t=>{Fe.value=[{lable:"\u5730\u533A",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],Ie.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],me.value=!1,P.value=t.data,ge.value=t.data.slice((I.value-1)*V.value,(I.value-1)*V.value+V.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=ee.value;e.style.width=document.querySelector(".app-main").offsetWidth-50+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px";const n=H(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",n.resize()}),Qe()})},vt=(t,e)=>t.map(l=>{const g={};for(const h in l)e[h]&&(g[e[h]]=l[h]);return g}),ne=(t,e="\u7528\u6237\u5217\u8868",n="Sheet1")=>{const g=vt(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),h=_e.json_to_sheet(g),r=_e.book_new();_e.book_append_sheet(r,h,n),Qt(r,`${e}.xlsx`)},yt=t=>{I.value=t,ge.value=P.value.slice((I.value-1)*V.value,(I.value-1)*V.value+V.value)},ft=t=>{const e=I.value,n=V.value;return t+1+(e-1)*n},bt=t=>{E.value=t};function $e(){const t=H(de.value);let e={xData:[],yData:[{data:[]},{data:[]}],yData2:[{data:[]},{data:[]}]};Ne.value.forEach(h=>{e.xData.push(h.dataTime),e.yData[0].data.push(h.wheatUnitOutputValue),e.yData[1].data.push(h.wheatOutput),e.yData2[0].data.push(h.tjWheatUnitOutputValue),e.yData2[1].data.push(h.tjWheatOutput)});let n=3/e.xData.length*100;var l={tooltip:{trigger:"item",axisPointer:{type:"shadow"}},grid:{left:"2%",right:"4%",bottom:"14%",top:"16%",containLabel:!0},legend:{data:["\u5355\u4EA7","\u603B\u4EA7","\u5E74\u9274\u5355\u4EA7","\u5E74\u9274\u603B\u4EA7"],left:"7%",top:"5%",textStyle:{color:"#666666"},itemWidth:15,itemHeight:10,itemGap:25},dataZoom:[{show:!1,type:"slider",width:"40%",zoomLock:!1,top:"90%",start:0,end:n,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"}],xAxis:{type:"category",data:e.xData,axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)"}},axisLabel:{interval:0,textStyle:{color:"#666666"}},axisTick:{show:!1}},yAxis:[{type:"log",name:"\u5355\u4EA7(\u516C\u65A4/\u4EA9)",min:1,logBase:3,nameTextStyle:{color:"#666666"},axisLine:{show:!0,lineStyle:{color:"#cdd5e2"}},splitLine:{show:!1},axisLabel:{textStyle:{color:"#666666"}},axisLine:{lineStyle:{color:"#cdd5e2"}},splitLine:{show:!0}},{type:"value",name:"\u603B\u4EA7(\u5428)",nameTextStyle:{color:"#666666"},position:"right",axisLine:{lineStyle:{color:"#cdd5e2"}},splitLine:{show:!1},axisLabel:{show:!0,formatter:"{value}",textStyle:{color:"#666666"}}}],series:[{name:"\u5355\u4EA7(\u516C\u65A4/\u4EA9)",type:"bar",barWidth:"12px",itemStyle:{normal:{color:new ie(0,0,0,1,[{offset:0,color:"#29acff"},{offset:1,color:"#4bdfff"}]),barBorderRadius:[6,6,0,0]}},data:e.yData[0].data},{name:"\u5E74\u9274\u5355\u4EA7(\u516C\u65A4/\u4EA9)",type:"bar",barWidth:"12px",itemStyle:{normal:{color:new ie(0,0,0,1,[{offset:0,color:"#01c871"},{offset:1,color:"#55f49c"}]),barBorderRadius:[6,6,0,0]}},data:e.yData2[0].data},{name:"\u603B\u4EA7(\u5428)",type:"line",yAxisIndex:1,smooth:!1,symbol:"circle",symbolSize:8,itemStyle:{normal:{color:"#00FFFF",lineStyle:{color:"#00FFFF",width:1}}},lineStyle:{color:"#00FFFF"},data:e.yData[1].data},{name:"\u5E74\u9274\u603B\u4EA7(\u5428)",type:"line",yAxisIndex:1,smooth:!1,symbol:"circle",symbolSize:8,itemStyle:{normal:{color:"#FF9000",lineStyle:{color:"#FF9000",width:1}}},lineStyle:{color:"#FF9000"},data:e.yData2[1].data}]};l&&t.setOption(l),Ae().listenTo(de.value,()=>{Se(()=>{t.resize()})})}function Ue(){const t=H(ce.value);let e=[],n=[],l=[];Ce.value.forEach(s=>{e.push(s.subName),n.push(s.wheatUnitOutputValue),l.push(s.wheatOutput)});let g=3/e.length*100,h={tooltip:{trigger:"axis",formatter:function(s,i,y){for(var d=s[0].name,p=0,a=s.length;p"+s[p].seriesName+" : "+(s[p].value?s[p].value:"-")+"h":d+="
"+s[p].seriesName+" : "+(s[p].value?s[p].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:g,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(153, 153, 153, 1)",fontSize:12},type:"scroll",top:"3%"},xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{interval:0,formatter:function(s){var i="",y=5,d=s.length,p=Math.ceil(d/y);if(p>1){for(var a=0;a(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:n,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(s){var i=window.location.host,y=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!y.test(i)){document.querySelector(".tool").style.display="block",Te.value=s.name;let f=["XJQY3702112019WGS84","CJQY3702112019WGS84"];ot(s.name),f.forEach(x=>{u.getLayers().getArray().forEach((T,Q)=>{T.A.name==x&&u.getLayers().removeAt(Q)})}),["2019-2022gaobiaozhunnongtian"].forEach(x=>{u.getLayers().getArray().forEach((T,Q)=>{T.A.name==x&&u.getLayers().removeAt(Q)})});for(var d=document.querySelectorAll(".alerDiv"),p=0;px.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),Z=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(Z)}}),h&&t.setOption(h,{notMerge:!0,grid:{bottom:20}}),xe(t,h),Ae().listenTo(ce.value,()=>{Se(()=>{t.resize()})})}function wt(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),ue.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),De.value=!1}function we(){const t=H(pe.value);he.value.sort((i,y)=>i.subName.length-y.subName.length);let e=[],n=[],l=[];he.value.forEach(i=>{e.push(i.subName),n.push(i.wheatUnitOutputValue),l.push(i.wheatOutput)});var g=e.sort((i,y)=>i.length-y.length);let h=3/g.length*100;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),xe(t,{tooltip:{trigger:"axis",formatter:function(i,y,d){for(var p=i[0].name,a=0,c=i.length;a"+i[a].seriesName+" : "+(i[a].value?i[a].value:"-")+"h":p+="
"+i[a].seriesName+" : "+(i[a].value?i[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(153, 153, 153, 1)",fontSize:12},type:"scroll",top:"3%"},xAxis:[{type:"category",nameTextStyle:{fontSize:12},axisLabel:{interval:0,formatter:function(i){var y="",d=5,p=i.length,a=Math.ceil(p/d);if(a>1){for(var c=0;c(i&&(i=i/1e4+"\u4E07"),i)},axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)"}}}],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(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}}}]}),Ae().listenTo(pe.value,()=>{Se(()=>{t.resize()})})}function Qe(){const t=H(ee.value);let e=[],n=[],l=[];P.value.forEach(r=>{e.push(r.subName),r.wheatUnitOutputValue!==void 0?n.push(r.wheatUnitOutputValue):n.push(0),r.wheatOutput!==void 0?l.push(r.wheatOutput):l.push(0)});let g=10/e.length*100;xe(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(r,s,i){for(var y=r[0].name,d=0,p=r.length;d"+r[d].seriesName+" : "+(r[d].value?r[d].value:"-")+"h":y+="
"+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:n},{name:"\u603B\u4EA7\u91CF(\u5428)",type:"bar",yAxisIndex:1,data:l}]})}m({});function St(){if($.value.lon&&$.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number($.value.lon),Number($.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(ue.scene,e);if(Cesium.defined(t)){const n=document.getElementById("pop");n.style.top=t.y-10+"px",n.style.left=t.x+10+"px"}}}function _t(){XZDM="",XZQDM="";const t=document.getElementById("pop");t.style.display="none",D.value="370211",ue.scene.postRender.removeEventListener(St),deleteEntityByName("townLine")}return(t,e)=>{const n=N("el-icon"),l=N("el-tooltip"),g=N("el-button"),h=N("el-option"),r=N("el-select"),s=N("el-form-item"),i=N("el-form"),y=N("el-table-column"),d=N("el-table"),p=N("el-pagination");return w(),k("div",Xt,[o("div",Zt,[Kt,o("div",ea,[o("div",{class:"tool",onClick:e[0]||(e[0]=a=>v(et)())},oa),o("div",la,[o("div",{class:se(v(U)?"tabarS":""),onClick:e[1]||(e[1]=a=>Ge(!0))},"\u9EC4\u5C9B\u533A",2),o("div",{class:se(v(U)?"":"tabarS"),onClick:e[2]||(e[2]=a=>Ge(!1))},"\u884C\u653F\u533A",2)]),R(o("div",ra,[o("div",na,[sa,ia,o("p",{onClick:e[3]||(e[3]=a=>pt())},[q(" \u4E0B\u8F7D \xA0 "),ua])]),o("div",{ref_key:"areaDiv",ref:de,class:"areaDiv"},null,512)],512),[[J,v(U)]]),R(o("div",da,[o("div",ca,[pa,ha,v(X)?(w(),k("p",{key:0,onClick:e[4]||(e[4]=a=>ht())},[q(" \u4E0B\u8F7D \xA0 "),ga])):F("",!0)]),R(o("div",{ref_key:"farmlandDiv",ref:ce,class:"farmlandDiv"},null,512),[[J,v(X)]]),v(X)?F("",!0):(w(),k("div",ma,ya))],512),[[J,!v(U)]]),R(o("div",fa,[o("div",ba,[wa,Sa,o("p",{onClick:e[5]||(e[5]=a=>gt())},[q(" \u4E0B\u8F7D \xA0 "),_a])]),o("div",{ref_key:"ASdivisionDiv",ref:pe,class:"ASdivision"},null,512)],512),[[J,!v(U)]]),o("div",{class:"rightFoldDiv",onClick:e[6]||(e[6]=a=>lt())},[L(l,{disabled:!v(M),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:z(()=>[v(M)?(w(),O(n,{key:0},{default:z(()=>[xa]),_:1})):F("",!0)]),_:1},8,["disabled"]),L(l,{disabled:v(M),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:z(()=>[v(M)?F("",!0):(w(),O(n,{key:0},{default:z(()=>[La]),_:1}))]),_:1},8,["disabled"])])]),o("div",za,[v(te).length>0?(w(),O(Ut,{key:0,dataSource:v(te),onDataHandle:bt,allCount:v(qe),onGetcurrentPage:st},null,8,["dataSource","allCount"])):F("",!0)]),Aa,o("div",ka,[Ea,o("div",Da,[(w(!0),k(W,null,j(v(ae),(a,c)=>(w(),k("p",{key:c},[Ca,o("span",null,Y(a.wheatUnitOutputValue)+"(\u516C\u65A4/\u4EA9)",1)]))),128)),(w(!0),k(W,null,j(v(ae),(a,c)=>(w(),k("p",{key:c},[Na,o("span",null,Y(a.wheatOutput)+"\uFF08\u5428\uFF09",1)]))),128))]),Oa]),o("div",Fa,[o("div",null,[o("div",Ia,[Va,o("span",null,Y(v(Je)),1)]),(w(!0),k(W,null,j($.value.info,(a,c)=>(w(),k("div",{key:c,class:"rowWra"},[Ta,o("span",null,Y(a.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(w(!0),k(W,null,j($.value.info,(a,c)=>(w(),k("div",{key:c,class:"rowWra"},[qa,o("span",null,Y(a.wheatOutput)+"\u4EA9",1)]))),128))]),o("div",{class:"cancel",onClick:_t},"X")]),De.value?(w(),O(g,{key:0,class:"back_button",onClick:e[7]||(e[7]=a=>wt())},{default:z(()=>[q("\u8FD4\u56DE")]),_:1})):F("",!0)]),o("div",Ma,[o("div",Pa,[L(i,{inline:!0,model:v(A),class:"demo-form-inline"},{default:z(()=>[L(s,{label:"\u65F6\u95F4:"},{default:z(()=>[L(r,{"popper-class":"selectCity",modelValue:v(A).time,"onUpdate:modelValue":e[8]||(e[8]=a=>v(A).time=a),placeholder:"\u8BF7\u9009\u62E9"},{default:z(()=>[(w(!0),k(W,null,j(v(Oe),(a,c)=>(w(),O(h,{key:c,label:t.Zitem,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),L(s,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:z(()=>[L(r,{"popper-class":"selectCity",modelValue:v(A).statistical,"onUpdate:modelValue":e[9]||(e[9]=a=>v(A).statistical=a),placeholder:"\u8BF7\u9009\u62E9"},{default:z(()=>[L(h,{label:"\u9547\u7EA7",value:"\u9547"}),v(X)?(w(),O(h,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):F("",!0)]),_:1},8,["modelValue"])]),_:1}),L(s,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:z(()=>[L(r,{modelValue:v(A).droughtRating,"onUpdate:modelValue":e[10]||(e[10]=a=>v(A).droughtRating=a),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:z(()=>[L(h,{label:"\u7389\u7C73",value:"\u7389\u7C73"})]),_:1},8,["modelValue"])]),_:1}),L(s,null,{default:z(()=>[L(g,{type:"primary",onClick:be},{default:z(()=>[q("\u67E5\u8BE2")]),_:1}),L(g,{plain:"",onClick:nt,disabled:!v(B)},{default:z(()=>[q(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),v(me)?F("",!0):(w(),O(g,{key:0,type:"primary",text:"",onClick:mt},{default:z(()=>[Ba,q(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),o("div",{class:"modeDiv",onClick:rt},[o("div",{class:se(v(B)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),o("div",{class:se(v(B)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),R(o("div",Wa,[o("div",ja,[v(me)?F("",!0):(w(),O(d,{key:0,data:v(C),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:z(()=>[L(y,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(w(!0),k(W,null,j(v(Ie),(a,c)=>(w(),O(y,{key:c,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),L(d,{data:v(ge),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:z(()=>[L(y,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:ft}),(w(!0),k(W,null,j(v(Fe),(a,c)=>(w(),O(y,{key:c,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),o("div",Ga,[q(" \u5171"+Y(P.value.length)+"\u6761 ",1),L(p,{background:"",layout:"prev, pager, next",total:P.value.length,"current-page":v(I),"page-size":v(V),onCurrentChange:yt},null,8,["total","current-page","page-size"])])],512),[[J,v(B)]]),R(o("div",$a,[o("div",{ref_key:"chartModeDiv",ref:ee,class:"chartModeDiv"},null,512)],512),[[J,!v(B)]])])])}}},po=Lt(Ua,[["__scopeId","data-v-12c4a8d4"]]);export{po as default};