import{_ as _t,u as St,r as p,D as xt,t as Lt,X as kt,x as zt,v as At,M as he,d as O,o as w,c as L,k as l,m as q,e as S,w as k,f,l as N,j as B,P as j,Q as G,y as J,J as Be,G as Me,H as Ie,B as Et,p as Ct,q as Dt}from"./index.1974707a.js";import be from"./downloads.4cdbbcc5.js";import{_ as te}from"./linesGL.99030c5a.js";import{a as Nt,_ as Ot}from"./fh.cf269d4d.js";import{_ as Vt,a as Tt,b as qt,c as Bt}from"./position.a021215f.js";import{_ as Mt,a as It}from"./face.2eec3bdc.js";import{_ as je}from"./icon.d0cb5387.js";import{_ as Ft}from"./dow.b4b83e88.js";import"./index.e2d056fa.js";import{T as Wt}from"./TimeLine.50b18dc6.js";import{u as fe,w as jt}from"./xlsx.86b9426e.js";import{u as me}from"./useEcharts.2e9d7b11.js";import{g as ve,a as ge,b as Gt,c as Fe,d as Qt,e as Pt}from"./wheat.75f6c070.js";import{d as Jt}from"./download.b14e0d1d.js";import{e as ye}from"./element-resize-detector.d8720798.js";import{i as $,L as We}from"./install.49294472.js";/* empty css */const x=Y=>(Ct("data-v-48a4fe6f"),Y=Y(),Dt(),Y),$t={class:"fatherDiv"},Ut={class:"centerBox"},Yt=x(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Rt={class:"leftWra"},Xt={class:"leftTop"},Ht={class:"title"},Zt=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Kt=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ea={key:0,src:te,alt:""},ta={key:0,class:"imgrotate",src:te,alt:""},aa={class:"rightWra"},oa=x(()=>l("img",{src:Nt},null,-1)),la=x(()=>l("span",null,"\u8FD4\u56DE",-1)),ra=[oa,la],na={class:"rightTop"},sa={class:"title"},ia=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ua=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={key:0},ca=x(()=>l("img",{src:Ot},null,-1)),pa=[ca],ha={class:"rightbottom"},fa={class:"title"},ma=x(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),va=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ga={key:0,src:te,alt:""},ya={key:0,class:"imgrotate",src:te,alt:""},ba={class:"bottom_center"},wa=Et('
',1),_a={id:"popup",class:"ol-popup"},Sa=x(()=>l("div",{class:"pophead",style:{width:"100%"}},[l("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"}}),l("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),xa={id:"popup-content",style:{padding:"30px"}},La=x(()=>l("img",{src:je},null,-1)),ka=x(()=>l("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),za=x(()=>l("img",{src:je},null,-1)),Aa=x(()=>l("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),Ea=x(()=>l("div",{id:"popup-pagination"},null,-1)),Ca={id:"pop"},Da={class:"rowWra"},Na=x(()=>l("span",null,"\u5730\u533A\uFF1A",-1)),Oa=x(()=>l("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Va=x(()=>l("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Ta={class:"tabulation"},qa={class:"searchDiv"},Ba=x(()=>l("img",{src:Ft,alt:""},null,-1)),Ma={class:"tableBox"},Ia={class:"tableBorder"},Fa={class:"example-pagination-block"},Wa={class:"chartMode"},ja={__name:"index",setup(Y){const Ge=St();let ae=p(null);const oe=p(null),le=p(null),re=p(null),C=p("");C.value=window.localStorage.getItem("divisions");let Q=xt({arr:[],brr:[],crr:[]});const P=p({name:"",value:""});p([]);const we=p(!1);let M=p(!0),I=p(!0),_e=p([]),Se=p({}),ne=p([]);const F=p([]);let W=p(!0),xe=p([]),V=p(1),T=p(12),se=p([]),Le=p([]),ke=p([]);const ze=p(1);let ie=p(!0);const R=p(null);let Qe=p(""),ue=p([]),E=p(""),X=p([]),Ae=p(""),H=!(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"),D=p([{wheatUnitOutputValue:0,wheatOutput:0}]),Ce=p(""),z=p({time:"",statistical:"\u9547",droughtRating:"\u7389\u7C73",area:ze.value}),U=p(null);Lt(()=>{Pe()});function Pe(){ot(),$e(),Ue(),Ye(),Ve()}kt(()=>{localStorage.getItem(Ge.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")}),zt(()=>E.value,(t,e)=>{C.value=window.localStorage.getItem("divisions"),lt(C.value,E.value.name),rt(C.value,E.value.name),nt(C.value,E.value.name)});let i=p(null);p(null),p(null);let De=p(null),Z=p(null),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"})})]}),Oe(),i.on("singleclick",function(r){var u=r.coordinate;if(H){var c=u[0],o=u[1],n=i.getView();n.animate({center:[c,o],duration:1e3});let v=!1;if(["XJQY3702112019WGS84"].forEach(d=>{i.getLayers().getArray().forEach((a,h)=>{if(d==a.A.name){v=!0;return}})}),v)de(r,"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 = '${Ae.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),g=new ol.source.Vector;g.addFeatures(y);let b=new ol.layer.Vector({source:g}).getSource().getFeatures();for(var A=0;Ay.get("id")==="zhezhao"),i.removeLayer(m);let a="";if(r=="\u9547"&&d.result.recordsets[0].features.features[0].properties.XJQYDM){let y=d.result.recordsets[0].features.features[0].properties.XJQYDM;C.value=y;let g=[];ve({divisions:"370211",yearMonth:E.value.name,type:"\u7389\u7C73"}).then(_=>{_.data.forEach(b=>{b.subregion==y&&(a=b.subName,g.push(b))}),X.value=g,h()})}else if(r=="\u9AD8\u6807\u51C6"&&d.result.recordsets[0].features.features[0].properties.DKMC){let y=d.result.recordsets[0].features.features[0].properties.DKMC,g=[];ge({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(_=>{_.data.forEach(b=>{b.subName==y&&g.push(b)}),a=y,X.value=g,h()})}function h(){if(d.result.currentCount>0){d.result.recordsets[0].features&&(Z.setPosition(c.flatCoordinates),n.innerHTML=a),v=i.getLayers().getArray().find(wt=>wt.get("id")==="dianjigaoliang"),i.removeLayer(v);var y=new ol.format.GeoJSON().readFeatures(d.result.recordsets[0].features);u=d.result.recordsets[0].features.features[0].geometry.coordinates,ce(d.result.recordsets[0].features.features[0].geometry.coordinates);var g=new ol.source.Vector;g.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:g,zIndex:9999});_.setStyle(qe),i.addLayer(_);for(var b=document.querySelectorAll(".alerDiv"),A=0;Ay.get("id")==="zhezhao"),i.removeLayer(m),Ne(u),C.value=window.localStorage.getItem("divisions"),v=i.getLayers().getArray().find(y=>y.get("id")==="dianjigaoliang"),i.removeLayer(v),Z.setPosition(void 0);for(var d=document.querySelectorAll(".alerDiv"),a=0;a{new ol.format.GeoJSON().readFeatures(t)[0]})}function Ne(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"),De=document.getElementById("popup-closer"),Z=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(Z)};let Re=()=>{document.querySelector(".tool").style.display="none",He(),U.setVisible(!1),Oe(),["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"),r=0;rg.get("id")==="zhezhao");i.removeLayer(v);var m=i.getLayers().getArray().find(g=>g.get("id")==="dianjigaoliang");i.removeLayer(m);var d=new ol.format.GeoJSON().readFeatures(n.result.features);ce(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())}})}const He=()=>{U=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(U)},Oe=()=>{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="",r="",u="",c="";s="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",e=t,r="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",u="2019-2022gaobiaozhunnongtian",c="DKMC";var o=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${u}`,attributeFilter:`${c} like '%${e}%'`},datasetNames:[`${u}:${r}`]});new ol.supermap.FeatureService(s).getFeaturesBySQL(o,function(n){if(n.result.featureCount!=0){var v=i.getLayers().getArray().find(b=>b.get("id")==="zhezhao");i.removeLayer(v);var m=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang");i.removeLayer(m);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);ce(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 g=new ol.layer.Vector({id:"dianjigaoliang",source:y});g.setStyle(_),i.addLayer(g),i.getView().fit(y.getExtent())}})}function Ke(){if(M.value=!M.value,M.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 et(){if(I.value=!I.value,I.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 tt=()=>{W.value=!W.value;const t=R.value;t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px";const e=$(t);window.addEventListener("resize",()=>{t.style.width=document.querySelector(".chartMode").offsetWidth+"px",t.style.height=document.querySelector(".chartMode").offsetHeight+"px",e.resize()}),Te()},at=()=>{z.value.year=Ce.value,z.value.statistical="\u9547",z.value.droughtRating="\u7389\u7C73",z.value.area=ze.value,pe()},ot=()=>{Gt({type:"\u7389\u7C73"}).then(t=>{Ce.value={name:t.data[0]},E.value={name:t.data[t.data.length-1]},t.data.forEach(e=>{ue.value.push({name:e})}),z.value.time=t.data[t.data.length-1],xe.value=t.data,pe()})},lt=(t,e)=>{Fe({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(s=>{Se.value=s.data,mt()})},rt=(t,e)=>{ge({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(s=>{_e.value=s.data,s.data.length>0&&vt()})},nt=(t,e)=>{ve({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).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 r=[],u=[];Q.arr.forEach(o=>{r.indexOf(o.subName)==-1&&(r.push(o.subName),u.push({subName:o.subName,subregion:o.subregion,area:o.area,type:o.type}))}),Q.arr=u,Ve();let c=[];Je.forEach(o=>{s.data.forEach((n,v)=>{o[n.subName]&&c.push({weizhi:o[n.subName],dom1:`popup${v}`,dom2:`popup-content${v}`,subName:n.subName,subregion:n.subRegion,wheatOutput:n.wheatOutput,wheatUnitOutputValue:n.wheatUnitOutputValue})})}),c.forEach((o,n)=>{var v=document.createElement("div");v.setAttribute("class","alerDiv"),v.id=o.dom2,v.style.display="block";var m=document.createElement("div");m.id=o.dom1,m.style.display="block",m.appendChild(v),document.body.appendChild(m);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
';var 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)})})},st=t=>{Fe({divisions:C.value,yearMonth:E.value.name,whetherToDownload:!0,type:"\u7389\u7C73"}).then(e=>{Jt(e.data[e.data.length-1].excelPath)})},it=t=>{ge({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{K(e.data,"\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},ut=t=>{C.value===""?ve({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{K(e.data,"\u884C\u653F\u533A\u5212","Sheet1")}):Pt({divisions:C.value,yearMonth:E.value.name,type:"\u7389\u7C73"}).then(e=>{K(e.data,"\u884C\u653F\u533A\u5212","Sheet1")})},dt=()=>{let t=JSON.parse(JSON.stringify(D.value[0]));F.value.push(t),K(F.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},pe=()=>{V.value=1,Qt({year:z.value.time,statistical:z.value.statistical,type:z.value.droughtRating,area:z.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"}],ke.value=[{lable:"",value:"subName"},{lable:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",value:"wheatUnitOutputValue"},{lable:"\u603B\u4EA7\u91CF(\u5428)",value:"wheatOutput"}],ie.value=!1,F.value=t.data,se.value=t.data.slice((V.value-1)*T.value,(V.value-1)*T.value+T.value),D.value[0].wheatUnitOutputValue=0,D.value[0].wheatOutput=0,D.value[0].subName="\u5408\u8BA1",t.data.forEach(r=>{r.wheatUnitOutputValue&&(D.value[0].wheatUnitOutputValue+=Number(r.wheatUnitOutputValue)!==NaN?Number(r.wheatUnitOutputValue)/t.data.length:0),r.wheatOutput&&(D.value[0].wheatOutput+=Number(r.wheatOutput)!==NaN?Number(r.wheatOutput):0)});for(const r in D.value[0])D.value[0][r]!=="\u5408\u8BA1"&&(D.value[0][r]=D.value[0][r].toFixed(2));const e=R.value;e.style.width=document.querySelector(".app-main").offsetWidth-50+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px";const s=$(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()})},ct=(t,e)=>t.map(r=>{const u={};for(const c in r)e[c]&&(u[e[c]]=r[c]);return u}),K=(t,e="\u7528\u6237\u5217\u8868",s="Sheet1")=>{const u=ct(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),c=fe.json_to_sheet(u),o=fe.book_new();fe.book_append_sheet(o,c,s),jt(o,`${e}.xlsx`)},pt=t=>{V.value=t,se.value=F.value.slice((V.value-1)*T.value,(V.value-1)*T.value+T.value)},ht=t=>{const e=V.value,s=T.value;return t+1+(e-1)*s},ft=t=>{E.value=t};function mt(){const t=$(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(u=>{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),ye().listenTo(oe.value,()=>{he(()=>{t.resize()})})}function vt(){const t=$(le.value);let e=[],s=[],r=[];_e.value.forEach(n=>{e.push(n.subName),s.push(n.wheatUnitOutputValue),r.push(n.wheatOutput)});let u=3/e.length*100,c={tooltip:{trigger:"axis",formatter:function(n,v,m){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 v="",m=5,d=n.length,a=Math.ceil(d/m);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:r,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 v=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ze(n.name),v.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 g=i.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliang");i.removeLayer(g);var g=i.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliangs");i.removeLayer(g),U=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(U)}),c&&t.setOption(c,{notMerge:!0,grid:{bottom:20}}),me(t,c),ye().listenTo(le.value,()=>{he(()=>{t.resize()})})}function gt(){deleteEntityByName("townLine"),deleteEntityByName("villageLine"),ae.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),we.value=!1}function Ve(){const t=$(re.value);ne.value.sort((m,d)=>m.subName.length-d.subName.length);let e=[],s=[],r=[];ne.value.forEach(m=>{e.push(m.subName),s.push(m.wheatUnitOutputValue),r.push(m.wheatOutput)});var u=e.sort((m,d)=>m.length-d.length),c=[s,r],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: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]}]};me(t,n),ye().listenTo(re.value,()=>{he(()=>{t.resize()})})}function Te(){const t=$(R.value);let e=[],s=[],r=[];F.value.forEach(o=>{e.push(o.subName),o.wheatUnitOutputValue!==void 0?s.push(o.wheatUnitOutputValue):s.push(0),o.wheatOutput!==void 0?r.push(o.wheatOutput):r.push(0)});let u=10/e.length*100;me(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(o,n,v){for(var m=o[0].name,d=0,a=o.length;d"+o[d].seriesName+" : "+(o[d].value?o[d].value:"-")+"h":m+="
"+o[d].seriesName+" : "+(o[d].value?o[d].value:"-");return m}},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:r}]})}p({});function yt(){if(P.value.lon&&P.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(P.value.lon),Number(P.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(ae.scene,e);if(Cesium.defined(t)){const s=document.getElementById("pop");s.style.top=t.y-10+"px",s.style.left=t.x+10+"px"}}}function bt(){XZDM="",XZQDM="";const t=document.getElementById("pop");t.style.display="none",C.value="370211",ae.scene.postRender.removeEventListener(yt),deleteEntityByName("townLine")}return(t,e)=>{const s=O("el-tooltip"),r=O("el-button"),u=O("el-option"),c=O("el-select"),o=O("el-form-item"),n=O("el-form"),v=O("el-table-column"),m=O("el-table"),d=O("el-pagination");return w(),L("div",$t,[l("div",Ut,[Yt,l("div",Rt,[l("div",Xt,[l("div",Ht,[Zt,l("p",{onClick:e[0]||(e[0]=a=>st())},[q(" \u4E0B\u8F7D \xA0 "),Kt])]),l("div",{ref_key:"areaDiv",ref:oe,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=a=>Ke())},[S(s,{class:"box-item","show-arrow":!1,disabled:f(M),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[f(M)?N("",!0):(w(),L("img",ea))]),_:1},8,["disabled"]),S(s,{disabled:!f(M),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[f(M)?(w(),L("img",ta)):N("",!0)]),_:1},8,["disabled"])])]),l("div",aa,[l("div",{class:"tool",onClick:e[2]||(e[2]=a=>f(Re)())},ra),l("div",na,[l("div",sa,[ia,f(H)?(w(),L("p",{key:0,onClick:e[3]||(e[3]=a=>it())},[q(" \u4E0B\u8F7D \xA0 "),ua])):N("",!0)]),l("div",{ref_key:"farmlandDiv",ref:le,class:"farmlandDiv"},null,512),f(H)?N("",!0):(w(),L("div",da,pa))]),l("div",ha,[l("div",fa,[ma,l("p",{onClick:e[4]||(e[4]=a=>ut())},[q(" \u4E0B\u8F7D \xA0 "),va])]),l("div",{ref_key:"ASdivisionDiv",ref:re,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=a=>et())},[S(s,{disabled:!f(I),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:k(()=>[f(I)?(w(),L("img",ga)):N("",!0)]),_:1},8,["disabled"]),S(s,{disabled:f(I),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:k(()=>[f(I)?N("",!0):(w(),L("img",ya))]),_:1},8,["disabled"])])]),l("div",ba,[f(ue).length>0?(w(),B(Wt,{key:0,dataSource:f(ue),onDataHandle:ft},null,8,["dataSource"])):N("",!0)]),wa,l("div",_a,[Sa,l("div",xa,[(w(!0),L(j,null,G(f(X),(a,h)=>(w(),L("p",{key:h},[La,ka,l("span",null,J(a.wheatUnitOutputValue)+"(\u516C\u65A4/\u4EA9)",1)]))),128)),(w(!0),L(j,null,G(f(X),(a,h)=>(w(),L("p",{key:h},[za,Aa,l("span",null,J(a.wheatOutput)+"\uFF08\u5428\uFF09",1)]))),128))]),Ea]),l("div",Ca,[l("div",null,[l("div",Da,[Na,l("span",null,J(f(Qe)),1)]),(w(!0),L(j,null,G(P.value.info,(a,h)=>(w(),L("div",{key:h,class:"rowWra"},[Oa,l("span",null,J(a.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(w(!0),L(j,null,G(P.value.info,(a,h)=>(w(),L("div",{key:h,class:"rowWra"},[Va,l("span",null,J(a.wheatOutput)+"\u4EA9",1)]))),128))]),l("div",{class:"cancel",onClick:bt},"X")]),we.value?(w(),B(r,{key:0,class:"back_button",onClick:e[6]||(e[6]=a=>gt())},{default:k(()=>[q("\u8FD4\u56DE")]),_:1})):N("",!0)]),l("div",Ta,[l("div",qa,[S(n,{inline:!0,model:f(z),class:"demo-form-inline"},{default:k(()=>[S(o,{label:"\u65F6\u95F4:"},{default:k(()=>[S(c,{"popper-class":"selectCity",modelValue:f(z).time,"onUpdate:modelValue":e[7]||(e[7]=a=>f(z).time=a),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[(w(!0),L(j,null,G(f(xe),(a,h)=>(w(),B(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:f(z).statistical,"onUpdate:modelValue":e[8]||(e[8]=a=>f(z).statistical=a),placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[S(u,{label:"\u9547\u7EA7",value:"\u9547"}),f(H)?(w(),B(u,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):N("",!0)]),_:1},8,["modelValue"])]),_:1}),S(o,{label:"\u4F5C\u7269\u79CD\u7C7B"},{default:k(()=>[S(c,{modelValue:f(z).droughtRating,"onUpdate:modelValue":e[9]||(e[9]=a=>f(z).droughtRating=a),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:k(()=>[S(u,{label:"\u7389\u7C73",value:"\u7389\u7C73"})]),_:1},8,["modelValue"])]),_:1}),S(o,null,{default:k(()=>[S(r,{type:"primary",onClick:pe},{default:k(()=>[q("\u67E5\u8BE2")]),_:1}),S(r,{plain:"",onClick:at,disabled:!f(W)},{default:k(()=>[q(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),f(ie)?N("",!0):(w(),B(r,{key:0,type:"primary",text:"",onClick:dt},{default:k(()=>[Ba,q(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:tt},[l("div",{class:Be(f(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:Be(f(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Me(l("div",Ma,[l("div",Ia,[f(ie)?N("",!0):(w(),B(m,{key:0,data:f(D),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[S(v,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(w(!0),L(j,null,G(f(ke),(a,h)=>(w(),B(v,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),S(m,{data:f(se),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:k(()=>[S(v,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:ht}),(w(!0),L(j,null,G(f(Le),(a,h)=>(w(),B(v,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),l("div",Fa,[q(" \u5171"+J(F.value.length)+"\u6761 ",1),S(d,{background:"",layout:"prev, pager, next",total:F.value.length,"current-page":f(V),"page-size":f(T),onCurrentChange:pt},null,8,["total","current-page","page-size"])])],512),[[Ie,f(W)]]),Me(l("div",Wa,[l("div",{ref_key:"chartModeDiv",ref:R,class:"chartModeDiv"},null,512)],512),[[Ie,!f(W)]])])])}}},ro=_t(ja,[["__scopeId","data-v-48a4fe6f"]]);export{ro as default};