import{K as P,_ as jt,u as $t,r as c,D as Mt,t as Bt,X as Vt,v as Gt,x as Fe,M as fe,d as O,o as w,c as E,k as d,m as F,e as y,w as S,f as g,l as $,j as M,P as K,Q as ee,I as It,y as j,J as rt,G as ot,H as lt,B as Qt,p as Pt,q as Jt}from"./index.db81687b.js";import pe from"./downloads.4cdbbcc5.js";import{_ as ve}from"./linesGL.99030c5a.js";import{_ as Rt}from"./fh.5fefbcf9.js";import{_ as Yt,a as Ht,b as Xt,c as Zt}from"./position.a021215f.js";import{_ as Ut,a as Kt}from"./face.2eec3bdc.js";import{_ as ea}from"./icon.d0cb5387.js";import{_ as ta}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as aa}from"./TimeLine.5d80dd5c.js";import{u as he}from"./useEcharts.7cdde45a.js";import{d as nt}from"./download.67ee05d3.js";import{u as je,w as ra}from"./xlsx.86b9426e.js";import{e as ge}from"./element-resize-detector.d8720798.js";import{i as U,L as le}from"./install.49294472.js";/* empty css */function $e(z){return P({url:"equipment/areaStatisticsDrought",method:"get",params:z})}function st(z){return P({url:"equipment/proportionOfArea",method:"get",params:z})}function Me(z){return P({url:"equipment/statisticsOfArea",method:"get",params:z})}function Be(z){return P({url:"equipment/township",method:"get",params:z})}function it(z){return P({url:"equipment/administrative",method:"get",params:z})}function oa(){return P({url:"equipment/listDroughtsYear",method:"get"})}function la(z){return P({url:"equipment/listDroughts",method:"get",params:z})}function na(z){return P({url:"equipment/administrativeChun",method:"get",params:z})}const T=z=>(Pt("data-v-ab53ec5e"),z=z(),Jt(),z),sa={class:"fatherDiv"},ia={class:"centerBox"},ua=T(()=>d("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),da={class:"leftWra"},ca={class:"leftTop"},fa={class:"title"},ha=T(()=>d("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),ga=T(()=>d("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"leftbottom"},va={class:"title"},ma=T(()=>d("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ya=T(()=>d("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ba={class:"tableDiv"},_a={key:0,src:ve,alt:""},wa={key:0,class:"imgrotate",src:ve,alt:""},Sa={class:"rightWra"},xa=T(()=>d("img",{src:Rt},null,-1)),ka=T(()=>d("span",null,"\u8FD4\u56DE",-1)),La=[xa,ka],Ea={class:"rightTop"},Na={class:"title"},za=T(()=>d("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ca=T(()=>d("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Aa={class:"rightbottom"},Da={class:"title"},Wa=T(()=>d("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ta=T(()=>d("img",{src:pe,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Oa={key:0,src:ve,alt:""},qa={key:0,class:"imgrotate",src:ve,alt:""},Fa={class:"bottom_center"},ja=Qt('
',1),$a={class:"mt-4"},Ma={id:"popup",class:"ol-popup"},Ba=T(()=>d("div",{class:"pophead",style:{width:"100%"}},[d("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"}}),d("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Va={id:"popup-content",style:{padding:"10px"}},Ga={class:"perform_children"},Ia=T(()=>d("img",{src:ea},null,-1)),Qa=T(()=>d("div",{id:"popup-pagination"},null,-1)),Pa={class:"tabulation"},Ja={class:"searchDiv"},Ra=T(()=>d("img",{src:ta,alt:""},null,-1)),Ya={class:"tableBox"},Ha={class:"tableBorder"},Xa={key:0,style:{color:"rgba(255, 168, 8, 0.4)","font-weight":"600"}},Za={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},Ua={key:2,style:{color:"red","font-weight":"800"}},Ka={key:3},er={key:0,style:{color:"rgba(255, 168, 8, 0.4)","font-weight":"600"}},tr={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},ar={key:2,style:{color:"red","font-weight":"800"}},rr={key:3},or={class:"example-pagination-block"},lr={class:"chartMode"},nr={__name:"Drought",setup(z){const Ve=$t();c(null);const me=c(null),ye=c(null),be=c(null);c(null);const _e=c(null),x=c("370211");x.value=window.localStorage.getItem("divisions");const ut=c(null);let B=Mt({arr:[],brr:[],crr:[]});c({}),c([]);const dt=c(!1);let J=c(!1),R=c(!1);const Y=c(["false"]);let we=c([]),Se=c([]),xe=c([]),ke=c(0),te=c([]),H=c(!0),Le=c([]);const Ee=c(1);let Ne=c([]),v=c(""),ne=c([]);c("");let Ge=c(""),A=c([{\u6E7F\u6DA6:0,\u9002\u5B9C:0,\u8F7B\u5EA6\u5E72\u65F1:0,\u4E2D\u5EA6\u5E72\u65F1:0,\u91CD\u5EA6\u5E72\u65F1:0}]),ze=c([]),G=c(1),I=c(12);const se=c(null);let Ce=c([]),ie=c(!0),Ae=c(0),Ie=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),D=c({time:"",statistical:"\u9547",droughtRating:"",area:Ee.value});const X=c([]);let Qe=["2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2020\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2021\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A5","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A6","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A7"],V={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Q=c({\u6E7F\u6DA6:{color:"rgba(0, 132, 255, 1)",disabled:!1},\u9002\u5B9C:{color:"rgba(32, 242, 255, 1)",disabled:!1},\u8F7B\u5EA6\u5E72\u65F1:{color:"rgba(255, 255, 0, 1)",disabled:!1},\u4E2D\u5EA6\u5E72\u65F1:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u91CD\u5EA6\u5E72\u65F1:{color:"rgba(224, 13, 15, 1)",disabled:!0}});var ae={title:[]};let q={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},Pe=c([]),N={\u6E7F\u6DA6:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_shirun"},\u9002\u5B9C:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_shiyi"},\u8F7B\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_qingduganhan"},\u4E2D\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_medium_ganhan"},\u91CD\u5EA6\u5E72\u65F1:{setOf:"2022-12-20-ganhan",name:"T2022_12_20_serious_ganhan"}};Bt(()=>{ct()});function ct(){wt(),ft(),ht(),Ke(),et(),qe(),gt();for(const l in Q.value)Q.value[l].disabled!==!0&&te.value.push(l);Y.value=te.value;let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)",localStorage.setItem(Ve.currentRoute.value.path,!0)}Vt(()=>{localStorage.getItem(Ve.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F",window.document.querySelector("#screenfull").style.display="block")});let Z=c(null),i=c(null);c(null),c(null);let Je=c(null),ue=c(null),re=!(window.localStorage.getItem("divisions").length>6);function ft(){var o=document.querySelector(".centerBox"),t=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"})})]}),i.on("moveend",function(a){var r=i.getView().getZoom();r>=13?Z.setVisible(!0):Z.setVisible(!1)}),i.on("singleclick",function(a){var r=a.coordinate;if(re){var e=r[0],s=r[1],h=i.getView(),p=i.getView().getZoom();h.animate({center:[e,s],duration:1e3});let C=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(u=>{i.getLayers().getArray().forEach((b,_)=>{if(u==b.A.name){C=!0;return}})}),C)p>=13?oe(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):oe(a,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547");else{let u="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",b=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Ge.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(u).getFeaturesBySQL(b,function(_){let f=new ol.format.GeoJSON().readFeatures(_.result.features),L=new ol.source.Vector;L.addFeatures(f);let k=new ol.layer.Vector({source:L}).getSource().getFeatures();for(var W=0;W=13?oe(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):oe(a,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")}})}});var l=new ResizeObserver(function(a){a.forEach(function(r){var e=r.contentRect.width,s=r.contentRect.height;t.style.width=e+"px",t.style.height=s+"px",i.updateSize()})});l.observe(o),pt(Ie)}function oe(o,t,l,a){var r=new ol.geom.Point(o.coordinate),e=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:r});let s=[],h=document.querySelector("#popup-title"),p=c(null),C=c(null);new ol.supermap.QueryService(l).queryByGeometry(e,function(m){let u="";if(C=i.getLayers().getArray().find(_=>_.get("id")==="zhezhao"),i.removeLayer(C),a=="\u9547"&&m.result.recordsets[0].features.features[0].properties.XJQYDM){let _=m.result.recordsets[0].features.features[0].properties.XJQYDM;x.value=_;let f=[];Be({divisions:"370211",yearMonth:v.value.name}).then(L=>{L.data.forEach(k=>{k.streetCode==_&&(u=k.streetName,f.push(k))});let n=[];n.push(f[1]),n.push(f[2]),n.push(f[0]),n.push(f[3]),n.push(f[4]),ne.value=n,b()})}else if(a=="\u6751"&&m.result.recordsets[0].features.features[0].properties.CJQYDM){let _=m.result.recordsets[0].features.features[0].properties.CJQYDM,f=[];na({divisions:_,yearMonth:v.value.name}).then(L=>{L.data.forEach(n=>{u=n.streetName,f.push(n)}),u=L.data[0].streetName,ne.value=f,b()})}else if(a=="\u9AD8\u6807\u51C6"&&m.result.recordsets[0].features.features[0].properties.DKMC){let _=m.result.recordsets[0].features.features[0].properties.DKMC,f=[];Me({divisions:"370211",yearMonth:v.value.name}).then(L=>{L.data.forEach(n=>{n.region==_&&f.push(n)}),f.forEach(n=>{n.type=n.level}),ne.value=f,u=_,b()})}function b(){if(m.result.currentCount>0){m.result.recordsets[0].features&&(ue.setPosition(r.flatCoordinates),h.innerHTML=u),p=i.getLayers().getArray().find(k=>k.get("id")==="dianjigaoliang"),i.removeLayer(p);var _=new ol.format.GeoJSON().readFeatures(m.result.recordsets[0].features);s=m.result.recordsets[0].features.features[0].geometry.coordinates,de(m.result.recordsets[0].features.features[0].geometry.coordinates);var f=new ol.source.Vector;f.addFeatures(_);const n=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var L=new ol.layer.Vector({id:"dianjigaoliang",source:f,zIndex:9999});L.setStyle(n),i.addLayer(L)}}}),Je.addEventListener("click",function(){let m=i.getLayers().getArray().find(u=>u.get("id")==="zhezhao");i.removeLayer(m),Re(s),x.value=window.localStorage.getItem("divisions"),p=i.getLayers().getArray().find(u=>u.get("id")==="dianjigaoliang"),i.removeLayer(p),ue.setPosition(void 0)})}function ht(){Gt.get("/json/huangdao.json").then(({data:o})=>{const l=new ol.format.GeoJSON().readFeatures(o)[0];de(l.getGeometry().getCoordinates(),"huandao")})}function de(o,t,l,a){let r=new ol.source.Vector;var e=new ol.layer.Vector({id:t||"zhezhao",source:r,zIndex:a||50,style:new ol.style.Style({fill:new ol.style.Fill({color:l||"rgba( 105, 105, 105, 0.9)"})})});const s=Re(o),h=new ol.Feature({geometry:s});e.getSource().addFeature(h),i.addLayer(e)}function Re(o){const t=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(t);return o.forEach(r=>{const e=new ol.geom.LinearRing(r[0]);l.appendLinearRing(e)}),l}const gt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Je=document.getElementById("popup-closer"),ue=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(ue)};function pt(o){let t="",l="",a="",r="",e="";l="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",t=o,a="XJQY3702112019WGS84",r="huangdaoqu_bianjie",e="XJQYMC";var s=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${a}@${r}`,attributeFilter:`${e} like '%${t}%'`},datasetNames:[`${r}:${a}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(s,function(h){if(h.result.featureCount!=0){var p=i.getLayers().getArray().find(f=>f.get("id")==="zhezhao");i.removeLayer(p);var C=i.getLayers().getArray().find(f=>f.get("id")==="dianjigaoliang");i.removeLayer(C);var m=new ol.format.GeoJSON().readFeatures(h.result.features);de(h.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var u=new ol.source.Vector;u.addFeatures(m);const _=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var b=new ol.layer.Vector({id:"dianjigaoliang",source:u});b.setStyle(_),i.addLayer(b),i.getView().fit(u.getExtent())}})}const Ye=()=>{Z=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(Z)},He=()=>{var o=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(o)},De=o=>{let t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${o.setOf}/rest/maps/${o.name}@${o.setOf}`,cacheEnabled:!1}),name:o.name,projection:"EPSG:4326"});i.addLayer(t)};c({label:[]});const vt=(o,t)=>o.map(a=>{const r={};for(const e in a)t[e]=="\u533A\u57DF\u540D\u79F0"&&(r[t[e]]=a[e]);for(const e in a)t[e]=="\u6E7F\u6DA6 (\u4EA9)"&&(r[t[e]]=a[e]);for(const e in a)t[e]=="\u9002\u5B9C(\u4EA9)"&&(r[t[e]]=a[e]);for(const e in a)t[e]=="\u8F7B\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[t[e]]=a[e]);for(const e in a)t[e]=="\u4E2D\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[t[e]]=a[e]);for(const e in a)t[e]=="\u91CD\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[t[e]]=a[e]);return r}),ce=(o,t="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const r=vt(o,{region:"\u533A\u57DF\u540D\u79F0",\u6E7F\u6DA6:"\u6E7F\u6DA6 (\u4EA9)",\u9002\u5B9C:"\u9002\u5B9C(\u4EA9)",\u8F7B\u5EA6\u5E72\u65F1:"\u8F7B\u5EA6\u5E72\u65F1(\u4EA9)",\u4E2D\u5EA6\u5E72\u65F1:"\u4E2D\u5EA6\u5E72\u65F1(\u4EA9)",\u91CD\u5EA6\u5E72\u65F1:"\u91CD\u5EA6\u5E72\u65F1(\u4EA9)",area:"\u9762\u79EF(\u4EA9)"}),e=je.json_to_sheet(r),s=je.book_new();je.book_append_sheet(s,e,l),ra(s,`${t}.xlsx`)};function mt(){if(J.value=!J.value,J.value){let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(0,0)")}else{let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(-107%,0)")}}function yt(){if(R.value=!R.value,R.value){let o=document.querySelector(".rightWra");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".rightWra");o.style.transform="translate(107%,0)"}}Fe(()=>x.value,()=>{kt()}),Fe(()=>v.value,(o,t)=>{x.value=window.localStorage.getItem("divisions"),Te(x.value,v.value.name),Oe(x.value,v.value.name),St(v.value.name),re?Ze(x.value,v.value.name):Ue(x.value,v.value.name);let a=v.value.name.replace(/-/g,"_");N={\u6E7F\u6DA6:{setOf:`${v.value.name}-ganhan`,name:`T${a}_shirun`},\u9002\u5B9C:{setOf:`${v.value.name}-ganhan`,name:`T${a}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${a}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${a}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${a}_serious_ganhan`}}});let Xe=0;Fe(()=>Y.value,(o,t)=>{let l=[];if(i.getLayers().getArray().forEach((a,r)=>{a.A.name&&l.push(a.A.name)}),(Ae.value>0&&o.length0&&o.length>t.length)&&Y.value.forEach(a=>{if(l.indexOf(N[a].name)==-1){De(N[a]);return}}),o.length>=t.length)o.length==t.length?Y.value.forEach(a=>{l.indexOf(N[a].name)==-1&&De(N[a])}):o.filter(r=>{if(t.findIndex(s=>s===r)<0)return r}).forEach(r=>{N[r]&&l.indexOf(N[r].name)==-1&&De(N[r])});else if(o.length{if(o.findIndex(s=>s===r)<0)return r});a.forEach(r=>{N[r]&&(i.getLayers().getArray().indexOf(N[r].name),i.getLayers().getArray().forEach((e,s)=>{e.A.name&&e.A.name==N[r].name&&i.getLayers().removeAt(s)}))}),a.forEach(r=>{N[r]&&(i.getLayers().getArray().indexOf(N[r].name),i.getLayers().getArray().forEach((e,s)=>{e.A.name&&e.A.name==N[r].name&&i.getLayers().removeAt(s)}))})}Xe++,Xe==1&&(Ye(),He())});const We=()=>{let o=[],t=[];G.value=1,la({yearMonth:D.value.time,statistical:D.value.statistical,droughtRating:D.value.droughtRating,area:D.value.area}).then(l=>{Ce.value=[{lable:"",value:"region"},{lable:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"},{lable:"\u9002\u5B9C",value:"\u9002\u5B9C"},{lable:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"},{lable:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"},{lable:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"}],l.data.forEach(e=>{o.indexOf(e.region)==-1&&o.push(e.region)}),o.forEach(e=>{t.push(Object.create(null,{regio:{value:e}}))}),t.forEach(e=>{l.data.map(s=>{e.regio===s.region&&(e.region=s.region,e[s.level]=Number(s.area).toFixed(2))})}),ie.value=!1,X.value=t.sort((e,s)=>e.region.length-s.region.length),ze.value=t.slice((G.value-1)*I.value,(G.value-1)*I.value+I.value),A.value[0].\u9002\u5B9C=0,A.value[0].\u6E7F\u6DA6=0,A.value[0].\u8F7B\u5EA6\u5E72\u65F1=0,A.value[0].\u4E2D\u5EA6\u5E72\u65F1=0,A.value[0].\u91CD\u5EA6\u5E72\u65F1=0,A.value[0].region="\u5408\u8BA1",t.forEach(e=>{e.\u9002\u5B9C&&(A.value[0].\u9002\u5B9C+=Number(e.\u9002\u5B9C)!==NaN?Number(e.\u9002\u5B9C):0),e.\u6E7F\u6DA6&&(A.value[0].\u6E7F\u6DA6+=Number(e.\u6E7F\u6DA6)!==NaN?Number(e.\u6E7F\u6DA6):0),e.\u8F7B\u5EA6\u5E72\u65F1&&(A.value[0].\u8F7B\u5EA6\u5E72\u65F1+=Number(e.\u8F7B\u5EA6\u5E72\u65F1)!==NaN?Number(e.\u8F7B\u5EA6\u5E72\u65F1):0),e.\u4E2D\u5EA6\u5E72\u65F1&&(A.value[0].\u4E2D\u5EA6\u5E72\u65F1+=Number(e.\u4E2D\u5EA6\u5E72\u65F1)!==NaN?Number(e.\u4E2D\u5EA6\u5E72\u65F1):0),e.\u91CD\u5EA6\u5E72\u65F1&&(A.value[0].\u91CD\u5EA6\u5E72\u65F1+=Number(e.\u91CD\u5EA6\u5E72\u65F1)!==NaN?Number(e.\u91CD\u5EA6\u5E72\u65F1):0)});for(const e in A.value[0])A.value[0][e]!=="\u5408\u8BA1"&&(A.value[0][e]=A.value[0][e].toFixed(2));const a=se.value;a.style.width=window.innerWidth-100+"px",a.style.height=window.innerHeight-100+"px";const r=U(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",r.resize()}),tt()})},bt=()=>{D.value.time=Le.value[0],D.value.statistical="\u9547",D.value.droughtRating="",D.value.area=0,ie.value=!0,We()};function _t(o){let t="",l="",a="",r="",e="";l="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",t=o,a="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",r="2019-2022gaobiaozhunnongtian",e="DKMC";var s=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${a}@${r}`,attributeFilter:`${e} like '%${t}%'`},datasetNames:[`${r}:${a}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(s,function(h){if(h.result.featureCount!=0){var p=i.getLayers().getArray().find(n=>n.get("id")==="zhezhao");i.removeLayer(p);var C=i.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliang");i.removeLayer(C);var m=i.getLayers().getArray().find(n=>n.get("id")==="gbz");i.removeLayer(m);var u=i.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliangs");i.removeLayer(u);var b=new ol.format.GeoJSON().readFeatures(h.result.features);de(h.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var _=new ol.source.Vector;_.addFeatures(b);const L=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:_});f.setStyle(L),i.addLayer(f),i.getView().fit(_.getExtent())}})}const wt=()=>{oa().then(o=>{v.value={name:o.data[0]},o.data.forEach(a=>{Ne.value.push({name:a})}),Le.value=o.data,D.value.time=o.data[0],We();let l=v.value.name.replace(/-/g,"_");N={\u6E7F\u6DA6:{setOf:`${v.value.name}-ganhan`,name:`T${l}_shirun`},\u9002\u5B9C:{setOf:`${v.value.name}-ganhan`,name:`T${l}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${l}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${l}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${v.value.name}-ganhan`,name:`T${l}_serious_ganhan`}}})},Te=(o,t)=>{we=c([]),Se=c([]),$e({divisions:o,yearMonth:t}).then(l=>{l.data.forEach(a=>{we.value.push(a.level),Se.value.push(a.area)}),l.data.forEach(a=>{Number(a.area)<1?Q.value[a.level].disabled=!0:Q.value[a.level].disabled=!1}),Dt()})},Oe=(o,t)=>{let l=c([]);st({divisions:o,yearMonth:t}).then(a=>{xe=c([]),ke=c(0),a.data.forEach(r=>{ke.value+=Number(r.area),xe.value.push({name:r.level,value:Number(r.area).toFixed(2)}),l.value.push({date:r.level,name:`${Number(r.area).toFixed(2)}`,address:`${(r.percentage*100).toFixed(2)}%`})}),Pe.value=l.value,Ke()})};c([{}]);const St=o=>{Me({yearMonth:o}).then(t=>{V={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Qe.forEach((l,a)=>{let r=t.data.map(e=>{if(l===e.region)return e});Object.keys(V).forEach(e=>{let s=0;r.findIndex(p=>(p&&p.level===e&&(s=p.area),p&&p.level===e))>-1?V[e].push(s):V[e].push(0)})}),t.data.length>0&&et()})};let xt=()=>{document.querySelector(".tool").style.display="none",Ye(),Z.setVisible(!1),He(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(l=>{i.getLayers().getArray().forEach((a,r)=>{(a.A.name==l||a.A.id==l)&&i.getLayers().removeAt(r)})}),i.getView().animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const Ze=(o,t)=>{Be({divisions:o,yearMonth:t}).then(l=>{B.brr=l.data,B.arr=l.data.sort((h,p)=>h.streetName.length-p.streetName.length),B.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],r=[];B.arr.forEach(h=>{a.indexOf(h.streetName)==-1&&(a.push(h.streetName),r.push({streetName:h.streetName,streetCode:h.streetCode,area:h.area,type:h.type}))}),B.arr=r;let e=[...l.data],s=[];e.splice(0,1),e.forEach(h=>{s.indexOf(h.streetName)==-1&&s.push(h.streetName)}),ae.title=[...Object.values(s)],ae.title.forEach((h,p)=>{let C=l.data.map(m=>{if(h===m.streetName)return m});Object.keys(q).forEach(m=>{C.findIndex(b=>b&&b.type===m&&Number(b.area)>0)>-1?q[m].push(1):q[m].push(null)})}),qe()})},Ue=(o,t)=>{q={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},it({divisions:o,yearMonth:t}).then(l=>{B.brr=l.data;let a=[...l.data],r=[];a.forEach(e=>{r.indexOf(e.streetName)==-1&&r.push(e.streetName)}),ae.title=[...Object.values(r)],ae.title.forEach((e,s)=>{let h=l.data.map(p=>{if(e===p.streetName)return p});Object.keys(q).forEach(p=>{h.findIndex(m=>m&&m.type===p&&m.area>0)>-1?q[p].push(1):q[p].push(null)})}),qe()})},kt=()=>{x.value=="370211"?(Ze(x.value,v.value.name),Te(x.value,v.value.name),Oe(x.value,v.value.name)):(Ue(x.value,v.value.name),Te(x.value,v.value.name),Oe(x.value,v.value.name))},Lt=o=>{$e({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!0}).then(t=>{nt(t.data[t.data.length-1].downloadPath)})},Et=o=>{st({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!0}).then(t=>{nt(t.data[t.data.length-1].downloadPath)})},Nt=o=>{Me({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!1}).then(t=>{let l=[],a=[];t.data.forEach(r=>{l.indexOf(r.region)==-1&&l.push(r.region)}),l.forEach(r=>{a.push(Object.create(null,{regio:{value:r}}))}),a.forEach(r=>{t.data.map(e=>{r.regio===e.region&&(r.region=e.region,r[e.level]=Number(e.area).toFixed(2))})}),ce(a,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},zt=o=>{if(x.value==="370211"){let t="";B.arr.forEach(l=>{l.subregion==x.value&&(t=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),Be({divisions:x.value,yearMonth:v.value.name}).then(l=>{let a=[],r=[];l.data.forEach(e=>{a.indexOf(e.streetName)==-1&&a.push(e.streetName)}),a.forEach(e=>{r.push(Object.create(null,{regio:{value:e}}))}),r.forEach(e=>{l.data.map(s=>{e.regio===s.streetName&&(e.region=s.streetName,e[s.type]=Number(s.area).toFixed(2))})}),r=r.sort((e,s)=>e.region.length-s.region.length),ce(r,`${t}\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF-\u884C\u653F\u533A\u5212`,"Sheet1")})}else{let t="";B.arr.forEach(l=>{l.subregion==x.value&&(t=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),it({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!1}).then(l=>{let a=[],r=[];l.data.forEach(e=>{a.indexOf(e.streetName)==-1&&a.push(e.streetName)}),a.forEach(e=>{r.push(Object.create(null,{regio:{value:e}}))}),r.forEach(e=>{l.data.map(s=>{e.regio===s.streetName&&(e.region=s.streetName,e[s.type]=Number(s.area).toFixed(2))})}),ce(r,`${t}\u4F5C\u7269\u5E72\u65F1\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}},Ct=()=>{let o=JSON.parse(JSON.stringify(A.value[0]));o.region="\u5408\u8BA1",X.value.push(o),ce(X.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},At=o=>{for(const l in N)i.getLayers().getArray().forEach((a,r)=>{a.A.name&&N[l].name==a.A.name&&i.getLayers().removeAt(r)});Ae.value+=1,te.value=[];let t=[];for(const l in N)i.getLayers().getArray().forEach((a,r)=>{a.A.name==N[l].name&&i.getLayers().removeAt(r)});v.value=o,$e({divisions:"370211",yearMonth:v.value.name}).then(l=>{l.data.forEach(a=>{Number(a.area)>1?Q.value[a.level].disabled=!1:Q.value[a.level].disabled=!0,t=Q});for(const a in t.value)t.value[a].disabled!==!0&&te.value.push(a);Y.value=te.value})};function Dt(){const o=U(me.value);var t={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"#fff"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"#fff",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:we.value,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"#fff",fontSize:14},type:"value",axisLabel:{color:"#fff"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:Se.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};t&&o.setOption(t),ge().listenTo(me.value,()=>{fe(()=>{o.resize()})})}function Ke(){const o=U(ye.value);var t=xe.value;let l={color:["rgba(0, 132, 255, 1)","rgba(32, 242, 255, 1)","rgba(255, 255, 0, 1)","rgba(255, 168, 8, 1)","rgba(224, 13, 15, 1)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(ke.value/1e4).toFixed(2)}\u4E07\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#fff",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:t},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};he(o,l),ge().listenTo(ye.value,()=>{fe(()=>{o.resize()})})}function et(){const o=U(be.value);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:Qe,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"}},axisLabel:{color:"#fff",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"#fff",fontSize:14},type:"value",axisLabel:{color:"#fff"},splitLine:{lineStyle:{type:"solid",color:"#fff"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(0, 132, 255, 1)",color:new le(0,0,0,1,[{offset:0,color:"rgba(0, 132, 255, 1)"},{offset:1,color:"rgba(0, 132, 255, 1)"}])}}},{name:"\u9002\u5B9C",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(32, 242, 255, 1)",color:new le(0,0,0,1,[{offset:0,color:"rgba(32, 242, 255, 1)"},{offset:1,color:"rgba(32, 242, 255, 1)"}])}}},{name:"\u8F7B\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(234, 165, 93, 1)",color:new le(0,0,0,1,[{offset:0,color:"rgba(255, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}])}}},{name:"\u4E2D\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(205, 92, 92, 0.8)",color:new le(0,0,0,1,[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}])}}},{name:"\u91CD\u5EA6\u5E72\u65F1",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(224, 13, 15, 1)",color:new le(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};o.off("click"),o.on("click",function(a){document.querySelector(".tool").style.display="block",Ge.value=a.name;let r=["XJQY3702112019WGS84","CJQY3702112019WGS84"];_t(a.name),r.forEach(s=>{i.getLayers().getArray().forEach((h,p)=>{h.A.name==s&&i.getLayers().removeAt(p)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs"].forEach(s=>{i.getLayers().getArray().forEach((h,p)=>{(h.A.name==s||h.A.id==s)&&i.getLayers().removeAt(p)})}),Z=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(Z)}),t&&o.setOption(t,{notMerge:!0,grid:{bottom:20}}),he(o,t),ge().listenTo(be.value,()=>{fe(()=>{o.resize()})})}const Wt=o=>{G.value=o,ze.value=X.value.slice((G.value-1)*I.value,(G.value-1)*I.value+I.value)},Tt=o=>{const t=G.value,l=I.value;return o+1+(t-1)*l};function qe(){const o=U(_e.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let r=0;return B.brr.forEach(e=>{e.type==a.seriesName&&e.streetName==a.name&&(r=Number(e.area).toFixed(2))}),a.seriesName+''+r+"\u4EA9"}},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:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:ae.title,inverse:!0}],series:[{type:"bar",name:"\u6E7F\u6DA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u6E7F\u6DA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(0, 132, 255, 1)"},{offset:1,color:"rgba(0, 132, 255, 1)"}]}},data:q.\u6E7F\u6DA6},{type:"bar",name:"\u9002\u5B9C",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u5B9C",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(32, 242, 255, 1)"},{offset:1,color:"rgba(32, 242, 255, 1)"}]}},data:q.\u9002\u5B9C},{type:"bar",name:"\u8F7B\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}]}},data:q.\u8F7B\u5EA6\u5E72\u65F1},{type:"bar",name:"\u4E2D\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}]}},data:q.\u4E2D\u5EA6\u5E72\u65F1},{type:"bar",name:"\u91CD\u5EA6\u5E72\u65F1",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u5E72\u65F1",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}]}},data:q.\u91CD\u5EA6\u5E72\u65F1}]};he(o,t),ge().listenTo(_e.value,()=>{fe(()=>{o.resize()})})}const Ot=()=>{H.value=!H.value;const o=se.value;o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px";const t=U(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",t.resize()}),tt()},qt=o=>{D.value.area=o};function tt(){const o=U(se.value);let t=[],l=[],a=[],r=[],e=[],s=[];X.value.forEach(u=>{t.push(u.region),u.\u6E7F\u6DA6!==void 0?l.push(u.\u6E7F\u6DA6):l.push(0),u.\u9002\u5B9C!==void 0?a.push(u.\u9002\u5B9C):a.push(0),u.\u8F7B\u5EA6\u5E72\u65F1!==void 0?r.push(u.\u8F7B\u5EA6\u5E72\u65F1):r.push(0),u.\u4E2D\u5EA6\u5E72\u65F1!==void 0?e.push(u.\u4E2D\u5EA6\u5E72\u65F1):e.push(0),u.\u91CD\u5EA6\u5E72\u65F1!==void 0?s.push(u.\u91CD\u5EA6\u5E72\u65F1):s.push(0)});let h=10/t.length*100,p={tooltip:{trigger:"axis",formatter:function(u){let b=u[0].axisValueLabel+"
",_=0;for(let f=0;f");for(let f=0;f",_=0;for(let f=0;f`;_+=u[f].value,b+=L+u[f].seriesName+"\uFF1A"+u[f].value+"
"}for(let f=0;f{const l=O("el-table-column"),a=O("el-table"),r=O("el-tooltip"),e=O("el-option"),s=O("el-select"),h=O("el-checkbox"),p=O("el-checkbox-group"),C=O("el-collapse-item"),m=O("el-collapse"),u=O("el-button"),b=O("el-form-item"),_=O("el-input-number"),f=O("el-form"),L=O("el-pagination");return w(),E("div",sa,[d("div",ia,[ua,d("div",da,[d("div",ca,[d("div",fa,[ha,d("p",{onClick:t[0]||(t[0]=n=>Lt())},[F(" \u4E0B\u8F7D \xA0 "),ga])]),d("div",{ref_key:"areaDiv",ref:me,class:"areaDiv"},null,512),d("div",{ref_key:"leftProgressBarDiv",ref:ut,class:"ProgressBar"},null,512)]),d("div",pa,[d("div",va,[ma,d("p",{onClick:t[1]||(t[1]=n=>Et())},[F(" \u4E0B\u8F7D \xA0 "),ya])]),d("div",{ref_key:"typesofDiv",ref:ye,class:"typesofDiv"},null,512),d("div",ba,[y(a,{data:g(Pe),style:{width:"100%"}},{default:S(()=>[y(l,{prop:"date",label:"\u7C7B\u578B"}),y(l,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),y(l,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),d("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=n=>mt())},[y(r,{class:"box-item","show-arrow":!1,disabled:g(J),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[g(J)?$("",!0):(w(),E("img",_a))]),_:1},8,["disabled"]),y(r,{disabled:!g(J),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[g(J)?(w(),E("img",wa)):$("",!0)]),_:1},8,["disabled"])])]),d("div",Sa,[d("div",{class:"tool",onClick:t[3]||(t[3]=n=>g(xt)())},La),d("div",Ea,[d("div",Na,[za,g(re)?(w(),E("p",{key:0,onClick:t[4]||(t[4]=n=>Nt())},[F(" \u4E0B\u8F7D \xA0 "),Ca])):$("",!0)]),d("div",{ref_key:"farmlandDiv",ref:be,class:"farmlandDiv"},null,512)]),d("div",Aa,[d("div",Da,[Wa,d("p",{onClick:t[5]||(t[5]=n=>zt())},[F(" \u4E0B\u8F7D \xA0 "),Ta])]),g(re)?(w(),M(s,{key:0,"popper-class":"select_city",modelValue:x.value,"onUpdate:modelValue":t[6]||(t[6]=n=>x.value=n),placeholder:"\u5168\u90E8"},{default:S(()=>[(w(!0),E(K,null,ee(g(B).arr,n=>(w(),M(e,{key:n.streetCode,label:n.streetName,value:n.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):$("",!0),d("div",{ref_key:"ASdivisionDiv",ref:_e,class:"ASdivision"},null,512)]),d("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=n=>yt())},[y(r,{disabled:!g(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[g(R)?(w(),E("img",Oa)):$("",!0)]),_:1},8,["disabled"]),y(r,{disabled:g(R),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[g(R)?$("",!0):(w(),E("img",qa))]),_:1},8,["disabled"])])]),d("div",Fa,[g(Ne).length>0?(w(),M(aa,{key:0,dataSource:g(Ne),onDataHandle:At},null,8,["dataSource"])):$("",!0)]),ja,y(m,{class:"legend",accordion:""},{default:S(()=>[y(C,{name:"1"},{title:S(()=>[F("\u56FE\u4F8B")]),default:S(()=>[d("div",$a,[y(p,{modelValue:Y.value,"onUpdate:modelValue":t[8]||(t[8]=n=>Y.value=n),onChange:o.change},{default:S(()=>[(w(!0),E(K,null,ee(g(Q),(n,k,W)=>(w(),M(h,{key:W,"v-model":n.disabled,disabled:n.disabled,label:k},{default:S(()=>[d("span",{style:It({background:n.color,border:`1px solid ${n.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),F(" "+j(k),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),d("div",Ma,[Ba,d("div",Va,[(w(!0),E(K,null,ee(g(ne),(n,k)=>(w(),E("div",{class:"perform",key:k},[d("div",Ga,[Ia,d("span",null,j(n.type),1),F(" : "),d("span",null,j(Number(n.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),Qa]),dt.value?(w(),M(u,{key:0,class:"back_button",onClick:t[9]||(t[9]=n=>o.back())},{default:S(()=>[F("\u8FD4\u56DE")]),_:1})):$("",!0)]),d("div",Pa,[d("div",Ja,[y(f,{inline:!0,model:g(D),class:"demo-form-inline"},{default:S(()=>[y(b,{label:"\u65F6\u95F4:"},{default:S(()=>[y(s,{"popper-class":"selectCity",modelValue:g(D).time,"onUpdate:modelValue":t[10]||(t[10]=n=>g(D).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[(w(!0),E(K,null,ee(g(Le),(n,k)=>(w(),M(e,{key:k,label:o.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(b,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:S(()=>[y(s,{"popper-class":"selectCity",modelValue:g(D).statistical,"onUpdate:modelValue":t[11]||(t[11]=n=>g(D).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[y(e,{label:"\u9547\u7EA7",value:"\u9547"}),y(e,{label:"\u6751\u7EA7",value:"\u6751"}),g(re)?(w(),M(e,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):$("",!0)]),_:1},8,["modelValue"])]),_:1}),y(b,{label:"\u5E72\u65F1\u7B49\u7EA7"},{default:S(()=>[y(s,{modelValue:g(D).droughtRating,"onUpdate:modelValue":t[12]||(t[12]=n=>g(D).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[y(e,{label:"\u5168\u90E8",value:""}),y(e,{label:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"}),y(e,{label:"\u9002\u5B9C",value:"\u9002\u5B9C"}),y(e,{label:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"}),y(e,{label:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"}),y(e,{label:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"})]),_:1},8,["modelValue"])]),_:1}),y(b,{label:"\u9762\u79EF(\u4EA9)>"},{default:S(()=>[y(_,{modelValue:Ee.value,"onUpdate:modelValue":t[13]||(t[13]=n=>Ee.value=n),min:1,onChange:qt},null,8,["modelValue"])]),_:1}),y(b,null,{default:S(()=>[y(u,{type:"primary",onClick:We},{default:S(()=>[F("\u67E5\u8BE2")]),_:1}),y(u,{plain:"",onClick:bt,disabled:!g(H)},{default:S(()=>[F(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(ie)?$("",!0):(w(),M(u,{key:0,type:"primary",text:"",onClick:Ct},{default:S(()=>[Ra,F(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),d("div",{class:"modeDiv",onClick:Ot},[d("div",{class:rt(g(H)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),d("div",{class:rt(g(H)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),ot(d("div",Ya,[d("div",Ha,[g(ie)?$("",!0):(w(),M(a,{key:0,data:g(A),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[y(l,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(w(!0),E(K,null,ee(g(Ce),(n,k)=>(w(),M(l,{key:k,prop:n.value,label:k==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:S(W=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(w(),E("span",Xa,j(W.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(w(),E("span",Za,j(W.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(w(),E("span",Ua,j(W.row[n.value]),1)):(w(),E("span",Ka,j(W.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]))]),y(a,{data:g(ze),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[y(l,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Tt}),(w(!0),E(K,null,ee(g(Ce),(n,k)=>(w(),M(l,{key:k,prop:n.value,label:k==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:S(W=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(w(),E("span",er,j(W.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(w(),E("span",tr,j(W.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(w(),E("span",ar,j(W.row[n.value]),1)):(w(),E("span",rr,j(W.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),d("div",or,[F(" \u5171"+j(X.value.length)+"\u6761 ",1),y(L,{background:"",layout:"prev, pager, next",total:X.value.length,"current-page":g(G),"page-size":g(I),onCurrentChange:Wt},null,8,["total","current-page","page-size"])])],512),[[lt,g(H)]]),ot(d("div",lr,[d("div",{ref_key:"chartModeDiv",ref:se,class:"chartModeDiv"},null,512)],512),[[lt,!g(H)]])])])}}},kr=jt(nr,[["__scopeId","data-v-ab53ec5e"]]);export{kr as default};