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 _,c as k,k as l,m as q,e as S,w as L,f as g,l as N,j as B,P as G,Q as j,y as J,J as Be,G as Me,H as Fe,B as Et,p as Ct,q as Dt}from"./index.db81687b.js";import be from"./downloads.4cdbbcc5.js";import{_ as te}from"./linesGL.99030c5a.js";import{_ as Nt}from"./fh.5fefbcf9.js";import{_ as Ot,a as Vt,b as Tt,c as qt}from"./position.a021215f.js";import{_ as Bt,a as Mt}from"./face.2eec3bdc.js";import{_ as Ge}from"./icon.d0cb5387.js";import{_ as Ft}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as It}from"./TimeLine.5d80dd5c.js";import{u as me,w as Wt}from"./xlsx.86b9426e.js";import{u as ge}from"./useEcharts.7cdde45a.js";import{g as ve,a as fe,b as Gt,c as Ie,d as jt,e as Qt}from"./wheat.01c24abe.js";import{d as Pt}from"./download.67ee05d3.js";import{e as 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-d05dce38"),Y=Y(),Dt(),Y),Jt={class:"fatherDiv"},$t={class:"centerBox"},Ut=x(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Yt={class:"leftWra"},Rt={class:"leftTop"},Xt={class:"title"},Ht=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30",-1)),Zt=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Kt={key:0,src:te,alt:""},ea={key:0,class:"imgrotate",src:te,alt:""},ta={class:"rightWra"},aa=x(()=>l("img",{src:Nt},null,-1)),oa=x(()=>l("span",null,"\u8FD4\u56DE",-1)),la=[aa,oa],ra={class:"rightTop"},na={class:"title"},sa=x(()=>l("span",null,"\u4F5C\u7269\u4EA7\u91CF\u9884\u4F30-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ia=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ua={class:"rightbottom"},da={class:"title"},ca=x(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),pa=x(()=>l("img",{src:be,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ha={key:0,src:te,alt:""},ma={key:0,class:"imgrotate",src:te,alt:""},ga={class:"bottom_center"},va=Et('
',1),fa={id:"popup",class:"ol-popup"},ya=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)),ba={id:"popup-content",style:{padding:"30px"}},wa=x(()=>l("img",{src:Ge},null,-1)),_a=x(()=>l("span",{class:"label"},"\u5355\u4EA7\u91CF\uFF1A",-1)),Sa=x(()=>l("img",{src:Ge},null,-1)),xa=x(()=>l("span",{class:"label"},"\u603B\u4EA7\u91CF\uFF1A",-1)),La=x(()=>l("div",{id:"popup-pagination"},null,-1)),ka={id:"pop"},za={class:"rowWra"},Aa=x(()=>l("span",null,"\u5730\u533A\uFF1A",-1)),Ea=x(()=>l("span",null,"\u5355\u4EA7\u91CF\uFF1A",-1)),Ca=x(()=>l("span",null,"\u603B\u4EA7\u91CF\uFF1A",-1)),Da={class:"tabulation"},Na={class:"searchDiv"},Oa=x(()=>l("img",{src:Ft,alt:""},null,-1)),Va={class:"tableBox"},Ta={class:"tableBorder"},qa={class:"example-pagination-block"},Ba={class:"chartMode"},Ma={__name:"index",setup(Y){const je=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),F=p(!0),_e=p([]),Se=p({}),ne=p([]);const I=p([]);let W=p(!0),xe=p([]),V=p(1),T=p(12),se=p([]),Le=p([]),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(""),de=!(window.localStorage.getItem("divisions").length>6),Ee=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),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(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")}),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),H=p(null),Je=[{\u6D77\u6E05\u9547:[119.55673590487976,35.65921960953274]},{\u5927\u573A\u9547:[119.62381239722713,35.66588089759648]},{\u6CCA\u91CC\u9547:[119.74667707697716,35.64649984120179]},{\u7405\u740A\u9547:[119.87030449159289,35.66431631585516]},{\u5927\u6751\u9547:[119.69265171077753,35.81549722988757]},{\u85CF\u9A6C\u9547:[119.78396543008807,35.76160172256371]},{\u5F20\u5BB6\u697C\u8857\u9053:[119.87512724002988,35.80195653922014]},{\u6EE8\u6D77\u8857\u9053:[119.97581635161251,35.77818590595386]},{\u9690\u73E0\u8857\u9053:[120.02465043714614,35.86822190145625]},{\u73E0\u6D77\u8857\u9053:[119.9054471577447,35.868205749221545]},{\u516D\u6C6A\u9547:[119.76550614744232,35.952002955399706]},{\u94C1\u5C71\u8857\u9053:[119.9003966708421,35.940916580021934]},{\u80F6\u5357\u8857\u9053:[119.99585866840519,35.92909063508609]},{\u7075\u5C71\u5C9B\u7701\u7EA7\u81EA\u7136\u4FDD\u62A4\u533A:[120.16665402696374,35.76466422432871]},{\u7075\u5C71\u536B\u8857\u9053:[120.09901058402102,35.93194068930856]},{\u5B9D\u5C71\u9547:[119.87425420478907,36.00930267491887]},{\u738B\u53F0\u8857\u9053:[119.99939657505232,36.055865563101804]},{\u7EA2\u77F3\u5D16\u8857\u9053:[120.09213798349893,36.069986617313006]},{\u8F9B\u5B89\u8857\u9053:[120.14491642202691,36.008342604564874]},{\u957F\u6C5F\u8DEF\u8857\u9053:[120.16674794518045,35.961185596094154]},{\u9EC4\u5C9B\u8857\u9053:[120.19699376304628,36.04732099123903]},{\u7075\u73E0\u5C71\u8857\u9053:[120.07050399805128,36.00779971701293]},{\u859B\u5BB6\u5C9B\u8857\u9053:[120.2165772076387,35.95291190919208]}];function $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(de){var c=u[0],o=u[1],s=i.getView();s.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)ce(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),f=new ol.source.Vector;f.addFeatures(y);let b=new ol.layer.Vector({source:f}).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 f=[];ve({divisions:"370211",yearMonth:E.value.name,type:"\u7389\u7C73"}).then(w=>{w.data.forEach(b=>{b.subregion==y&&(a=b.subName,f.push(b))}),X.value=f,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,f=[];fe({yearMonth:E.value.name,type:"\u7389\u7C73"}).then(w=>{w.data.forEach(b=>{b.subName==y&&f.push(b)}),a=y,X.value=f,h()})}function h(){if(d.result.currentCount>0){d.result.recordsets[0].features&&(H.setPosition(c.flatCoordinates),s.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,Z(d.result.recordsets[0].features.features[0].geometry.coordinates);var f=new ol.source.Vector;f.addFeatures(y);const qe=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var w=new ol.layer.Vector({id:"dianjigaoliang",source:f,zIndex:9999});w.setStyle(qe),i.addLayer(w);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),H.setPosition(void 0);for(var d=document.querySelectorAll(".alerDiv"),a=0;a{const n=new ol.format.GeoJSON().readFeatures(t)[0];Z(n.getGeometry().getCoordinates(),"huandao")})}function Ne(t){const e=[-180,-90,180,90],n=ol.geom.Polygon.fromExtent(e);return t.forEach(u=>{const c=new ol.geom.LinearRing(u[0]);n.appendLinearRing(c)}),n}const Ye=()=>{document.getElementById("popup"),document.getElementById("popup-content"),De=document.getElementById("popup-closer"),H=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(H)};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,s)=>{(o.A.name==c||o.A.id==c)&&i.getLayers().removeAt(s)})});var e=i.getView();e.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11});for(var n=document.querySelectorAll(".alerDiv"),r=0;rf.get("id")==="zhezhao");i.removeLayer(v);var m=i.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang");i.removeLayer(m);var d=new ol.format.GeoJSON().readFeatures(s.result.features);Z(s.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="",n="",r="",u="",c="";n="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(n).getFeaturesBySQL(o,function(s){if(s.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(s.result.features);Z(s.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var y=new ol.source.Vector;y.addFeatures(h);const w=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var f=new ol.layer.Vector({id:"dianjigaoliang",source:y});f.setStyle(w),i.addLayer(f),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(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 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[0]},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)=>{Ie({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{Se.value=n.data,gt()})},rt=(t,e)=>{fe({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{_e.value=n.data,n.data.length>0&&vt()})},nt=(t,e)=>{ve({divisions:t,yearMonth:e,type:"\u7389\u7C73"}).then(n=>{ne.value=n.data,Q.brr=JSON.parse(JSON.stringify(n.data)),Q.arr=Q.brr.sort((o,s)=>o.subName.length-s.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=>{n.data.forEach((s,v)=>{o[s.subName]&&c.push({weizhi:o[s.subName],dom1:`popup${v}`,dom2:`popup-content${v}`,subName:s.subName,subregion:s.subRegion,wheatOutput:s.wheatOutput,wheatUnitOutputValue:s.wheatUnitOutputValue})})}),c.forEach((o,s)=>{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=>{Ie({divisions:C.value,yearMonth:E.value.name,whetherToDownload:!0,type:"\u7389\u7C73"}).then(e=>{Pt(e.data[e.data.length-1].excelPath)})},it=t=>{fe({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")}):Qt({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]));I.value.push(t),K(I.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},pe=()=>{V.value=1,jt({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,I.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 n=$(e);window.addEventListener("resize",()=>{e.style.width=document.querySelector(".app-main").offsetWidth+"px",e.style.height=document.querySelector(".app-main").offsetHeight+"px",n.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",n="Sheet1")=>{const u=ct(t,{subName:"\u533A\u57DF\u540D\u79F0",wheatUnitOutputValue:"\u5355\u4EA7\u91CF(\u516C\u65A4/\u4EA9)",wheatOutput:"\u603B\u4EA7\u91CF(\u5428)"}),c=me.json_to_sheet(u),o=me.book_new();me.book_append_sheet(o,c,n),Wt(o,`${e}.xlsx`)},pt=t=>{V.value=t,se.value=I.value.slice((V.value-1)*T.value,(V.value-1)*T.value+T.value)},ht=t=>{const e=V.value,n=T.value;return t+1+(e-1)*n},mt=t=>{E.value=t};function gt(){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 n={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};n&&t.setOption(n),ye().listenTo(oe.value,()=>{he(()=>{t.resize()})})}function vt(){const t=$(le.value);let e=[],n=[],r=[];_e.value.forEach(s=>{e.push(s.subName),n.push(s.wheatUnitOutputValue),r.push(s.wheatOutput)});let u=3/e.length*100,c={tooltip:{trigger:"axis",formatter:function(s,v,m){for(var d=s[0].name,a=0,h=s.length;a"+s[a].seriesName+" : "+(s[a].value?s[a].value:"-")+"h":d+="
"+s[a].seriesName+" : "+(s[a].value?s[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(s){var v="",m=5,d=s.length,a=Math.ceil(d/m);if(a>1){for(var h=0;h(s&&(s=s/1e4+"\u4E07"),s)},axisLine:{lineStyle:{color:"#fff"}}}],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(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(s){document.querySelector(".tool").style.display="block",Ae.value=s.name;let v=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ze(s.name),v.forEach(w=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})}),["2019-2022gaobiaozhunnongtian"].forEach(w=>{i.getLayers().getArray().forEach((b,A)=>{b.A.name==w&&i.getLayers().removeAt(A)})});for(var d=document.querySelectorAll(".alerDiv"),a=0;aw.get("id")==="gbz");i.removeLayer(y);var f=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");i.removeLayer(f);var f=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliangs");i.removeLayer(f),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}}),ge(t,c),ye().listenTo(le.value,()=>{he(()=>{t.resize()})})}function ft(){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=[],n=[],r=[];ne.value.forEach(m=>{e.push(m.subName),n.push(m.wheatUnitOutputValue),r.push(m.wheatOutput)});var u=e.sort((m,d)=>m.length-d.length),c=[n,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 s={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]}]};ge(t,s),ye().listenTo(re.value,()=>{he(()=>{t.resize()})})}function Te(){const t=$(R.value);let e=[],n=[],r=[];I.value.forEach(o=>{e.push(o.subName),o.wheatUnitOutputValue!==void 0?n.push(o.wheatUnitOutputValue):n.push(0),o.wheatOutput!==void 0?r.push(o.wheatOutput):r.push(0)});let u=10/e.length*100;ge(t,{color:["rgba(4, 247, 227, 1)","rgba(33, 187, 251, 1)"],tooltip:{trigger:"axis",formatter:function(o,s,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:n},{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 n=document.getElementById("pop");n.style.top=t.y-10+"px",n.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 n=O("el-tooltip"),r=O("el-button"),u=O("el-option"),c=O("el-select"),o=O("el-form-item"),s=O("el-form"),v=O("el-table-column"),m=O("el-table"),d=O("el-pagination");return _(),k("div",Jt,[l("div",$t,[Ut,l("div",Yt,[l("div",Rt,[l("div",Xt,[Ht,l("p",{onClick:e[0]||(e[0]=a=>st())},[q(" \u4E0B\u8F7D \xA0 "),Zt])]),l("div",{ref_key:"areaDiv",ref:oe,class:"areaDiv"},null,512)]),l("div",{class:"leftFoldDiv",onClick:e[1]||(e[1]=a=>Ke())},[S(n,{class:"box-item","show-arrow":!1,disabled:g(M),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:L(()=>[g(M)?N("",!0):(_(),k("img",Kt))]),_:1},8,["disabled"]),S(n,{disabled:!g(M),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:L(()=>[g(M)?(_(),k("img",ea)):N("",!0)]),_:1},8,["disabled"])])]),l("div",ta,[l("div",{class:"tool",onClick:e[2]||(e[2]=a=>g(Re)())},la),l("div",ra,[l("div",na,[sa,g(de)?(_(),k("p",{key:0,onClick:e[3]||(e[3]=a=>it())},[q(" \u4E0B\u8F7D \xA0 "),ia])):N("",!0)]),l("div",{ref_key:"farmlandDiv",ref:le,class:"farmlandDiv"},null,512)]),l("div",ua,[l("div",da,[ca,l("p",{onClick:e[4]||(e[4]=a=>ut())},[q(" \u4E0B\u8F7D \xA0 "),pa])]),l("div",{ref_key:"ASdivisionDiv",ref:re,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=a=>et())},[S(n,{disabled:!g(F),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:L(()=>[g(F)?(_(),k("img",ha)):N("",!0)]),_:1},8,["disabled"]),S(n,{disabled:g(F),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:L(()=>[g(F)?N("",!0):(_(),k("img",ma))]),_:1},8,["disabled"])])]),l("div",ga,[g(ue).length>0?(_(),B(It,{key:0,dataSource:g(ue),onDataHandle:mt},null,8,["dataSource"])):N("",!0)]),va,l("div",fa,[ya,l("div",ba,[(_(!0),k(G,null,j(g(X),(a,h)=>(_(),k("p",{key:h},[wa,_a,l("span",null,J(a.wheatUnitOutputValue)+"(\u516C\u65A4/\u4EA9)",1)]))),128)),(_(!0),k(G,null,j(g(X),(a,h)=>(_(),k("p",{key:h},[Sa,xa,l("span",null,J(a.wheatOutput)+"\uFF08\u5428\uFF09",1)]))),128))]),La]),l("div",ka,[l("div",null,[l("div",za,[Aa,l("span",null,J(g(Qe)),1)]),(_(!0),k(G,null,j(P.value.info,(a,h)=>(_(),k("div",{key:h,class:"rowWra"},[Ea,l("span",null,J(a.wheatUnitOutputValue)+"\u516C\u65A4/\u4EA9",1)]))),128)),(_(!0),k(G,null,j(P.value.info,(a,h)=>(_(),k("div",{key:h,class:"rowWra"},[Ca,l("span",null,J(a.wheatOutput)+"\u4EA9",1)]))),128))]),l("div",{class:"cancel",onClick:bt},"X")]),we.value?(_(),B(r,{key:0,class:"back_button",onClick:e[6]||(e[6]=a=>ft())},{default:L(()=>[q("\u8FD4\u56DE")]),_:1})):N("",!0)]),l("div",Da,[l("div",Na,[S(s,{inline:!0,model:g(z),class:"demo-form-inline"},{default:L(()=>[S(o,{label:"\u65F6\u95F4:"},{default:L(()=>[S(c,{"popper-class":"selectCity",modelValue:g(z).time,"onUpdate:modelValue":e[7]||(e[7]=a=>g(z).time=a),placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[(_(!0),k(G,null,j(g(xe),(a,h)=>(_(),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:L(()=>[S(c,{"popper-class":"selectCity",modelValue:g(z).statistical,"onUpdate:modelValue":e[8]||(e[8]=a=>g(z).statistical=a),placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[S(u,{label:"\u9547\u7EA7",value:"\u9547"}),g(de)?(_(),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:L(()=>[S(c,{modelValue:g(z).droughtRating,"onUpdate:modelValue":e[9]||(e[9]=a=>g(z).droughtRating=a),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:L(()=>[S(u,{label:"\u7389\u7C73",value:"\u7389\u7C73"})]),_:1},8,["modelValue"])]),_:1}),S(o,null,{default:L(()=>[S(r,{type:"primary",onClick:pe},{default:L(()=>[q("\u67E5\u8BE2")]),_:1}),S(r,{plain:"",onClick:at,disabled:!g(W)},{default:L(()=>[q(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(ie)?N("",!0):(_(),B(r,{key:0,type:"primary",text:"",onClick:dt},{default:L(()=>[Oa,q(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:tt},[l("div",{class:Be(g(W)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:Be(g(W)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),Me(l("div",Va,[l("div",Ta,[g(ie)?N("",!0):(_(),B(m,{key:0,data:g(D),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:L(()=>[S(v,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(_(!0),k(G,null,j(g(ke),(a,h)=>(_(),B(v,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),S(m,{data:g(se),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:L(()=>[S(v,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:ht}),(_(!0),k(G,null,j(g(Le),(a,h)=>(_(),B(v,{key:h,prop:a.value,label:a.lable,align:"center"},null,8,["prop","label"]))),128))]),_:1},8,["data"]),l("div",qa,[q(" \u5171"+J(I.value.length)+"\u6761 ",1),S(d,{background:"",layout:"prev, pager, next",total:I.value.length,"current-page":g(V),"page-size":g(T),onCurrentChange:pt},null,8,["total","current-page","page-size"])])],512),[[Fe,g(W)]]),Me(l("div",Ba,[l("div",{ref_key:"chartModeDiv",ref:R,class:"chartModeDiv"},null,512)],512),[[Fe,!g(W)]])])])}}},to=_t(Ma,[["__scopeId","data-v-d05dce38"]]);export{to as default};