import{Q as J,_ as Ba,u as Va,r as i,I as Ga,x as Qa,H as Ja,aa as Ra,a2 as Be,S as _e,d as T,o as S,c as C,l as s,f as h,O as we,K,M as ee,n as j,e as y,w as x,m as P,k as F,V as re,W as oe,N as Ya,A as I,F as Ua,q as Ha,s as Xa}from"./index.064676a5.js";import{_ as Za}from"./fh.7489c25e.js";import ke from"./downloads.e955445d.js";import{_ as Ka}from"./qx.88a5ecd3.js";import{_ as et,a as at}from"./zhankaiss.6870329f.js";import{_ as tt,a as rt,b as ot,c as lt}from"./position.3b2b2301.js";import{_ as nt,a as st}from"./face.d3470a20.js";import{_ as it}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as ut}from"./TimeLine.b15d4f73.js";import{u as Se}from"./useEcharts.c88e6744.js";import"./linesGL.76a64914.js";import{d as ca}from"./download.fe7036ba.js";import{u as Ve,w as dt}from"./xlsx.881b8a71.js";import{e as xe}from"./element-resize-detector.d4d1cd8d.js";import{ai as ae,aj as ie}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";function Ge(z){return J({url:"equipment/areaStatisticsDrought",method:"get",params:z})}function ga(z){return J({url:"equipment/proportionOfArea",method:"get",params:z})}function Qe(z){return J({url:"equipment/statisticsOfArea",method:"get",params:z})}function Je(z){return J({url:"equipment/township",method:"get",params:z})}function ha(z){return J({url:"equipment/administrative",method:"get",params:z})}function ct(){return J({url:"equipment/listDroughtsYear",method:"get"})}function gt(z){return J({url:"equipment/listDroughts",method:"get",params:z})}function ht(z){return J({url:"equipment/administrativeChun",method:"get",params:z})}const A=z=>(Ha("data-v-b6bd2ce2"),z=z(),Xa(),z),ft={class:"fatherDiv"},pt={class:"centerBox"},vt=A(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),mt={class:"rightWra"},bt=A(()=>s("img",{src:Za},null,-1)),yt=A(()=>s("span",null,"\u8FD4\u56DE",-1)),_t=[bt,yt],wt={class:"tabar"},St={class:"leftTop"},xt={class:"title"},kt=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Lt=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Et=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),At={class:"leftbottom"},zt={class:"title"},Nt=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ct=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Dt=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Wt={class:"tableDiv"},$t={class:"rightTop"},Tt={class:"title"},Ot=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),qt=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ft=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),It={key:0},jt=A(()=>s("img",{src:Ka},null,-1)),Mt=[jt],Pt={class:"rightbottom"},Bt={class:"title"},Vt=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Gt=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Qt=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Jt=A(()=>s("img",{src:et},null,-1)),Rt=A(()=>s("img",{src:at},null,-1)),Yt={class:"bottom_center"},Ut=Ua('
',1),Ht={class:"mt-4"},Xt={id:"popup",class:"ol-popup"},Zt=A(()=>s("div",{class:"pophead",style:{width:"100%"}},[s("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"20px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),s("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Kt={id:"popup-content",style:{padding:"10px"}},er={class:"perform_children"},ar={class:"label"},tr=A(()=>s("div",{id:"popup-pagination"},null,-1)),rr={class:"tabulation"},or={class:"searchDiv"},lr=A(()=>s("img",{src:it,alt:""},null,-1)),nr={class:"tableBox"},sr={class:"tableBorder"},ir={key:0,style:{color:"rgba(255, 168, 8, 0.4)","font-weight":"600"}},ur={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},dr={key:2,style:{color:"red","font-weight":"800"}},cr={key:3},gr={key:0,style:{color:"rgba(255, 168, 8, 0.4)","font-weight":"600"}},hr={key:1,style:{color:"rgba(255, 168, 8, 1)","font-weight":"700"}},fr={key:2,style:{color:"red","font-weight":"800"}},pr={key:3},vr={class:"example-pagination-block"},mr={class:"chartMode"},br={__name:"Drought",setup(z){const Re=Va();i(null);const Le=i(null),Ee=i(null),Ae=i(null);i(null);const ze=i(null),k=i("370211");k.value=window.localStorage.getItem("divisions");const fa=i(null);let M=Ga({arr:[],brr:[],crr:[]});i({}),i([]);const pa=i(!1);i(!1);let R=i(!1);const te=i(["false"]);let Ne=i([]),Ce=i([]),De=i([]),We=i(0),le=i([]),Y=i(!0),ue=i([]);const de=i(0);let ce=i([]),b=i(""),ge=i([]);i("");let Ye=i(""),Ue=i([]),$e=i(""),he=i(5),U=i(!0),D=i([{\u6E7F\u6DA6:0,\u9002\u5B9C:0,\u8F7B\u5EA6\u5E72\u65F1:0,\u4E2D\u5EA6\u5E72\u65F1:0,\u91CD\u5EA6\u5E72\u65F1:0}]),Te=i([]),V=i(1),G=i(12);const fe=i(null);let Oe=i([]),pe=i(!0),qe=i(1),ve=i([]),He=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),W=i({time:"",statistical:"\u9547",droughtRating:"",area:de.value});const H=i([]);let Xe=["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"],B={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Q=i({\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 ne={title:[]};let q={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},Ze=i([]),$={\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"}};Qa(()=>{va()});function va(){Aa(),ma(),ba(),Pe(),ye(),ya();for(const l in Q.value)Q.value[l].disabled!==!0&&le.value.push(l);te.value=le.value;let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(-107%,0)");let t=document.querySelector(".rightWra");t.style.transform="translate(101%,0)",localStorage.setItem(Re.currentRoute.value.path,!0)}Ja(()=>{localStorage.getItem(Re.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 X=i(null),u=i(null);i(null),i(null);let Ke=i(null),me=i(null),Z=!(window.localStorage.getItem("divisions").length>6);function ma(){var o=document.querySelector(".centerBox"),t=document.getElementById("cesiumContainer");u=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),u.on("moveend",function(a){var r=u.getView().getZoom();r>=13?X.setVisible(!0):X.setVisible(!1)}),u.on("singleclick",function(a){var r=a.coordinate;if(Z){var e=r[0],g=r[1],p=u.getView(),v=u.getView().getZoom();p.animate({center:[e,g],duration:1e3});let L=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(d=>{u.getLayers().getArray().forEach((w,m)=>{if(d==w.A.name){L=!0;return}})}),L)v>=13?se(a,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):se(a,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547");else{let d=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,w=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Ye.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(w,function(m){let c=new ol.format.GeoJSON().readFeatures(m.result.features),E=new ol.source.Vector;E.addFeatures(c);let n=new ol.layer.Vector({source:E}).getSource().getFeatures();for(var N=0;N=13?se(a,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):se(a,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547")}})}});var l=new ResizeObserver(function(a){a.forEach(function(r){var e=r.contentRect.width,g=r.contentRect.height;t.style.width=e+"px",t.style.height=g+"px",u.updateSize()})});l.observe(o),_a(He)}function se(o,t,l,a){var r=new ol.geom.Point(o.coordinate),e=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:r});let g=[],p=document.querySelector("#popup-title"),v=i(null),L=i(null);new ol.supermap.QueryService(l).queryByGeometry(e,function(f){let d="";if(L=u.getLayers().getArray().find(m=>m.get("id")==="zhezhao"),u.removeLayer(L),a=="\u9547"&&f.result.recordsets[0].features.features[0].properties.XJQYDM){let m=f.result.recordsets[0].features.features[0].properties.XJQYDM;k.value=m;let c=[];Je({divisions:"370211",yearMonth:b.value.name}).then(E=>{E.data.forEach(n=>{n.streetCode==m&&(d=n.streetName,c.push(n))});let _=[];_.push(c[1]),_.push(c[2]),_.push(c[0]),_.push(c[3]),_.push(c[4]),ge.value=_,w()})}else if(a=="\u6751"&&f.result.recordsets[0].features.features[0].properties.CJQYDM){let m=f.result.recordsets[0].features.features[0].properties.CJQYDM,c=[];ht({divisions:m,yearMonth:b.value.name}).then(E=>{E.data.forEach(_=>{d=_.streetName,c.push(_)}),d=E.data[0].streetName,ge.value=c,w()})}else if(a=="\u9AD8\u6807\u51C6"&&f.result.recordsets[0].features.features[0].properties.DKMC){let m=f.result.recordsets[0].features.features[0].properties.DKMC,c=[];Qe({divisions:"370211",yearMonth:b.value.name}).then(E=>{E.data.forEach(_=>{_.region==m&&c.push(_)}),c.forEach(_=>{_.type=_.level}),ge.value=c,d=m,w()})}function w(){if(f.result.currentCount>0){f.result.recordsets[0].features&&(me.setPosition(r.flatCoordinates),p.innerHTML=d),v=u.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliang"),u.removeLayer(v);var m=new ol.format.GeoJSON().readFeatures(f.result.recordsets[0].features);g=f.result.recordsets[0].features.features[0].geometry.coordinates,Fe(f.result.recordsets[0].features.features[0].geometry.coordinates);var c=new ol.source.Vector;c.addFeatures(m);const _=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var E=new ol.layer.Vector({id:"dianjigaoliang",source:c,zIndex:9999});E.setStyle(_),u.addLayer(E)}}}),Ke.addEventListener("click",function(){let f=u.getLayers().getArray().find(d=>d.get("id")==="zhezhao");u.removeLayer(f),ea(g),k.value=window.localStorage.getItem("divisions"),v=u.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliang"),u.removeLayer(v),me.setPosition(void 0)})}function ba(){Ra.get("/json/huangdao.json").then(({data:o})=>{new ol.format.GeoJSON().readFeatures(o)[0]})}function Fe(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 g=ea(o),p=new ol.Feature({geometry:g});e.getSource().addFeature(p),u.addLayer(e)}function ea(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 ya=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ke=document.getElementById("popup-closer"),me=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),u.addOverlay(me)};function _a(o){let t="",l="",a="",r="",e="";l=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,t=o,a="XJQY3702112019WGS84",r="huangdaoqu_bianjie",e="XJQYMC";var g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${a}@${r}`,attributeFilter:`${e} like '%${t}%'`},datasetNames:[`${r}:${a}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(g,function(p){if(p.result&&p.result.featureCount!=0){var v=u.getLayers().getArray().find(c=>c.get("id")==="zhezhao");u.removeLayer(v);var L=u.getLayers().getArray().find(c=>c.get("id")==="dianjigaoliang");u.removeLayer(L);var f=new ol.format.GeoJSON().readFeatures(p.result.features);Fe(p.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var d=new ol.source.Vector;d.addFeatures(f);const m=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var w=new ol.layer.Vector({id:"dianjigaoliang",source:d});w.setStyle(m),u.addLayer(w),u.getView().fit(d.getExtent())}})}const aa=()=>{X=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),u.addLayer(X)},ta=()=>{var o=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});u.addLayer(o)},ra=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"});u.addLayer(t)};i({label:[]});const wa=(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}),be=(o,t="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const r=wa(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=Ve.json_to_sheet(r),g=Ve.book_new();Ve.book_append_sheet(g,e,l),dt(g,`${t}.xlsx`)};function Sa(){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(101%,0)"}}Be(()=>k.value,()=>{Ca()}),Be(()=>b.value,(o,t)=>{k.value=window.localStorage.getItem("divisions"),je(k.value,b.value.name),Me(k.value,b.value.name),za(b.value.name),Z?na(k.value,b.value.name):sa(k.value,b.value.name);let a=b.value.name.replace(/-/g,"_");$={\u6E7F\u6DA6:{setOf:`${b.value.name}-ganhan`,name:`T${a}_shirun`},\u9002\u5B9C:{setOf:`${b.value.name}-ganhan`,name:`T${a}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_serious_ganhan`}}});let oa=0;const xa=()=>{qe.value=0};Be(()=>te.value,(o,t)=>{if(o.length>=t.length&&qe.value<1)o.filter(a=>{if(t.findIndex(e=>e===a)<0)return a}).forEach(a=>{$[a]&&ra($[a])});else if(o.length{if(o.findIndex(e=>e===a)<0)return a});l.forEach(a=>{$[a]&&(u.getLayers().getArray().indexOf($[a].name),u.getLayers().getArray().forEach((r,e)=>{r.A.name&&r.A.name==$[a].name&&u.getLayers().removeAt(e)}))}),l.forEach(a=>{$[a]&&(u.getLayers().getArray().indexOf($[a].name),u.getLayers().getArray().forEach((r,e)=>{r.A.name&&r.A.name==$[a].name&&u.getLayers().removeAt(e)}))})}oa++,oa==1&&(aa(),ta())});const Ie=()=>{let o=[],t=[];V.value=1,gt({yearMonth:W.value.time,statistical:W.value.statistical,droughtRating:W.value.droughtRating,area:W.value.area}).then(l=>{Oe.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(g=>{e.regio===g.region&&(e.region=g.region,e[g.level]=Number(g.area).toFixed(2))})}),pe.value=!1,H.value=t.sort((e,g)=>e.region.length-g.region.length),Te.value=t.slice((V.value-1)*G.value,(V.value-1)*G.value+G.value),D.value[0].\u9002\u5B9C=0,D.value[0].\u6E7F\u6DA6=0,D.value[0].\u8F7B\u5EA6\u5E72\u65F1=0,D.value[0].\u4E2D\u5EA6\u5E72\u65F1=0,D.value[0].\u91CD\u5EA6\u5E72\u65F1=0,D.value[0].region="\u5408\u8BA1",t.forEach(e=>{e.\u9002\u5B9C&&(D.value[0].\u9002\u5B9C+=Number(e.\u9002\u5B9C)!==NaN?Number(e.\u9002\u5B9C):0),e.\u6E7F\u6DA6&&(D.value[0].\u6E7F\u6DA6+=Number(e.\u6E7F\u6DA6)!==NaN?Number(e.\u6E7F\u6DA6):0),e.\u8F7B\u5EA6\u5E72\u65F1&&(D.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&&(D.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&&(D.value[0].\u91CD\u5EA6\u5E72\u65F1+=Number(e.\u91CD\u5EA6\u5E72\u65F1)!==NaN?Number(e.\u91CD\u5EA6\u5E72\u65F1):0)});for(const e in D.value[0])D.value[0][e]!=="\u5408\u8BA1"&&(D.value[0][e]=D.value[0][e].toFixed(2));const a=fe.value;a.style.width=window.innerWidth-100+"px",a.style.height=window.innerHeight-100+"px";const r=ae(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",r.resize()}),da()})},ka=()=>{W.value.time=ue.value[ue.value.length-1],W.value.statistical="\u9547",W.value.droughtRating="",W.value.area=0,de.value=0,pe.value=!0,Ie()};function La(o){let t="",l="",a="",r="",e="";l=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,t=o,a="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",r="2019-2022gaobiaozhunnongtian",e="DKMC";var g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${a}@${r}`,attributeFilter:`${e} like '%${t}%'`},datasetNames:[`${r}:${a}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(g,function(p){if(p.result.featureCount&&p.result.featureCount!=0){var v=u.getLayers().getArray().find(_=>_.get("id")==="zhezhao");u.removeLayer(v);var L=u.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliang");u.removeLayer(L);var f=u.getLayers().getArray().find(_=>_.get("id")==="gbz");u.removeLayer(f);var d=u.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliangs");u.removeLayer(d);var w=new ol.format.GeoJSON().readFeatures(p.result.features);Fe(p.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var m=new ol.source.Vector;m.addFeatures(w);const E=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var c=new ol.layer.Vector({id:"dianjigaoliang",source:m});c.setStyle(E),u.addLayer(c),u.getView().fit(m.getExtent())}})}const la=o=>{U.value=o,o?(ia(),Pe()):(ua(),ye())},Ea=o=>{ce.value=ve.value.slice((o-1)*he.value,o*he.value)},Aa=()=>{ct().then(o=>{b.value={name:o.data[o.data.length-1]},ue.value=o.data;let t=[];o.data.forEach(r=>{t.push({name:r})}),ve.value=t,Ue.value=Math.ceil(ve.value.length/5),$e=Math.ceil(t.length/5),ce.value=ve.value.slice(($e-1)*he.value,$e*he.value),W.value.time=o.data[o.data.length-1],Ie();let a=b.value.name.replace(/-/g,"_");$={\u6E7F\u6DA6:{setOf:`${b.value.name}-ganhan`,name:`T${a}_shirun`},\u9002\u5B9C:{setOf:`${b.value.name}-ganhan`,name:`T${a}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${b.value.name}-ganhan`,name:`T${a}_serious_ganhan`}}})},je=(o,t)=>{Ge({divisions:o,yearMonth:t}).then(l=>{Ne=i([]),Ce=i([]),l.data.forEach(a=>{Ne.value.push(a.level),Ce.value.push(a.area)}),l.data.forEach(a=>{Number(a.area)<1?Q.value[a.level].disabled=!0:Q.value[a.level].disabled=!1}),ia()})},Me=(o,t)=>{let l=i([]);ga({divisions:o,yearMonth:t}).then(a=>{De=i([]),We=i(0),a.data.forEach(r=>{We.value+=Number(r.area),De.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)}%`})}),Ze.value=l.value,Pe()})};i([{}]);const za=o=>{Qe({yearMonth:o}).then(t=>{B={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},Xe.forEach((l,a)=>{let r=t.data.map(e=>{if(l===e.region)return e});Object.keys(B).forEach(e=>{let g=0;r.findIndex(v=>(v&&v.level===e&&(g=v.area),v&&v.level===e))>-1?B[e].push(g):B[e].push(0)})}),t.data.length>0&&ua()})};let Na=()=>{document.querySelector(".tool").style.display="none",aa(),X.setVisible(!1),ta(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(l=>{u.getLayers().getArray().forEach((a,r)=>{(a.A.name==l||a.A.id==l)&&u.getLayers().removeAt(r)})}),u.getView().animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const na=(o,t)=>{Je({divisions:o,yearMonth:t}).then(l=>{q={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},M.brr=l.data,M.arr=l.data.sort((p,v)=>p.streetName.length-v.streetName.length),M.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let a=[],r=[];M.arr.forEach(p=>{a.indexOf(p.streetName)==-1&&(a.push(p.streetName),r.push({streetName:p.streetName,streetCode:p.streetCode,area:p.area,type:p.type}))}),M.arr=r;let e=[...l.data],g=[];e.splice(0,1),e.forEach(p=>{g.indexOf(p.streetName)==-1&&g.push(p.streetName)}),ne.title=[...Object.values(g)],ne.title.forEach((p,v)=>{let L=l.data.map(f=>{if(p===f.streetName)return f});Object.keys(q).forEach(f=>{L.findIndex(w=>w&&w.type===f&&Number(w.area)>0)>-1?q[f].push(1):q[f].push(null)})}),ye()})},sa=(o,t)=>{ha({divisions:o,yearMonth:t}).then(l=>{q={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},M.brr=l.data;let a=[...l.data],r=[];a.forEach(e=>{r.indexOf(e.streetName)==-1&&r.push(e.streetName)}),ne.title=[...Object.values(r)],ne.title.forEach((e,g)=>{let p=l.data.map(v=>{if(e===v.streetName)return v});Object.keys(q).forEach(v=>{p.findIndex(f=>f&&f.type===v&&f.area>0)>-1?q[v].push(1):q[v].push(null)})}),ye()})},Ca=()=>{k.value=="370211"?(na(k.value,b.value.name),je(k.value,b.value.name),Me(k.value,b.value.name)):(sa(k.value,b.value.name),je(k.value,b.value.name),Me(k.value,b.value.name))},Da=o=>{Ge({divisions:k.value,yearMonth:b.value.name,whetherToDownload:!0}).then(t=>{ca(t.data[t.data.length-1].downloadPath)})},Wa=o=>{ga({divisions:k.value,yearMonth:b.value.name,whetherToDownload:!0}).then(t=>{ca(t.data[t.data.length-1].downloadPath)})},$a=o=>{Qe({divisions:k.value,yearMonth:b.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))})}),be(a,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Ta=o=>{if(k.value==="370211"){let t="";M.arr.forEach(l=>{l.subregion==k.value&&(t=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),Je({divisions:k.value,yearMonth:b.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(g=>{e.regio===g.streetName&&(e.region=g.streetName,e[g.type]=Number(g.area).toFixed(2))})}),r=r.sort((e,g)=>e.region.length-g.region.length),be(r,`${t}\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF-\u884C\u653F\u533A\u5212`,"Sheet1")})}else{let t="";M.arr.forEach(l=>{l.subregion==k.value&&(t=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),ha({divisions:k.value,yearMonth:b.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(g=>{e.regio===g.streetName&&(e.region=g.streetName,e[g.type]=Number(g.area).toFixed(2))})}),be(r,`${t}\u4F5C\u7269\u5E72\u65F1\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}},Oa=()=>{let o=JSON.parse(JSON.stringify(D.value[0]));o.region="\u5408\u8BA1",H.value.push(o),be(H.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},qa=o=>{for(const l in $)u.getLayers().getArray().forEach((a,r)=>{a.A.name&&$[l].name==a.A.name&&u.getLayers().removeAt(r)});qe.value+=1,le.value=[];let t=[];for(const l in $)u.getLayers().getArray().forEach((a,r)=>{a.A.name==$[l].name&&u.getLayers().removeAt(r)});b.value=o,Ge({divisions:"370211",yearMonth:b.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&&le.value.push(a);te.value=le.value,te.value.forEach(a=>{ra($[a])})})};function ia(){const o=ae(Le.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:"rgba(153, 153, 153, 1)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(153, 153, 153, 1)",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:Ne.value,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:Ce.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(33, 156, 249, 1)"},{offset:1,color:"rgba(110, 191, 251, 1)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};t&&o.setOption(t),xe().listenTo(Le.value,()=>{_e(()=>{o.resize()})})}function Pe(){const o=ae(Ee.value);var t=De.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:`${(We.value/1e4).toFixed(2)}\u4E07\u4EA9`,textStyle:{color:"rgba(51, 51, 51, 1)",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"black",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)"}}]}]};Se(o,l),xe().listenTo(Ee.value,()=>{_e(()=>{o.resize()})})}function ua(){const o=ae(Ae.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:Xe,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"}},axisLabel:{color:"rgba(153, 153, 153, 1)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed",color:"rgba(235, 238, 245, 1)"},show:!0},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u6E7F\u6DA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:B.\u6E7F\u6DA6,itemStyle:{normal:{borderWidth:1,color:new ie(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:B.\u9002\u5B9C,itemStyle:{normal:{borderWidth:1,color:new ie(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:B.\u8F7B\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,color:new ie(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:B.\u4E2D\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,color:new ie(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:B.\u91CD\u5EA6\u5E72\u65F1,itemStyle:{normal:{borderWidth:1,color:new ie(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){var r=window.location.host,e=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!e.test(r)){document.querySelector(".tool").style.display="block",Ye.value=a.name;let g=["XJQY3702112019WGS84","CJQY3702112019WGS84"];La(a.name),g.forEach(v=>{u.getLayers().getArray().forEach((L,f)=>{L.A.name==v&&u.getLayers().removeAt(f)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs"].forEach(v=>{u.getLayers().getArray().forEach((L,f)=>{(L.A.name==v||L.A.id==v)&&u.getLayers().removeAt(f)})}),X=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:`${serverAPI.geoserverUrl}/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian`,cacheEnabled:!1}),name:"2019-2022gaobiaozhunnongtian",projection:"EPSG:4326",zIndex:9999}),u.addLayer(X)}}),t&&o.setOption(t,{notMerge:!0,grid:{bottom:20}}),Se(o,t),xe().listenTo(Ae.value,()=>{_e(()=>{o.resize()})})}const Fa=o=>{V.value=o,Te.value=H.value.slice((V.value-1)*G.value,(V.value-1)*G.value+G.value)},Ia=o=>{const t=V.value,l=G.value;return o+1+(t-1)*l};function ye(){const o=ae(ze.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(a){let r=0;return M.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(51, 51, 51, 1)",formatter:"{value}"},data:ne.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}]};Se(o,t),xe().listenTo(ze.value,()=>{_e(()=>{o.resize()})})}const ja=()=>{Y.value=!Y.value;const o=fe.value;o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px";const t=ae(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",t.resize()}),da()},Ma=o=>{W.value.area=o};function da(){const o=ae(fe.value);let t=[],l=[],a=[],r=[],e=[],g=[];H.value.forEach(d=>{t.push(d.region),d.\u6E7F\u6DA6!==void 0?l.push(d.\u6E7F\u6DA6):l.push(0),d.\u9002\u5B9C!==void 0?a.push(d.\u9002\u5B9C):a.push(0),d.\u8F7B\u5EA6\u5E72\u65F1!==void 0?r.push(d.\u8F7B\u5EA6\u5E72\u65F1):r.push(0),d.\u4E2D\u5EA6\u5E72\u65F1!==void 0?e.push(d.\u4E2D\u5EA6\u5E72\u65F1):e.push(0),d.\u91CD\u5EA6\u5E72\u65F1!==void 0?g.push(d.\u91CD\u5EA6\u5E72\u65F1):g.push(0)});let p=10/t.length*100,v={tooltip:{trigger:"axis",formatter:function(d){let w=d[0].axisValueLabel+"
",m=0;for(let c=0;c");for(let c=0;c",m=0;for(let c=0;c`;m+=d[c].value,w+=E+d[c].seriesName+"\uFF1A"+d[c].value+"
"}for(let c=0;c{const l=T("el-table-column"),a=T("el-table"),r=T("el-option"),e=T("el-select"),g=T("el-icon"),p=T("el-tooltip"),v=T("el-checkbox"),L=T("el-checkbox-group"),f=T("el-collapse-item"),d=T("el-collapse"),w=T("el-button"),m=T("el-form-item"),c=T("el-input-number"),E=T("el-form"),_=T("el-pagination");return S(),C("div",ft,[s("div",pt,[vt,s("div",mt,[s("div",{class:"tool",onClick:t[0]||(t[0]=n=>h(Na)())},_t),s("div",wt,[s("div",{class:we(h(U)?"tabarS":""),onClick:t[1]||(t[1]=n=>la(!0))},"\u9EC4\u5C9B\u533A",2),s("div",{class:we(h(U)?"":"tabarS"),onClick:t[2]||(t[2]=n=>la(!1))},"\u884C\u653F\u533A",2)]),K(s("div",St,[s("div",xt,[kt,Lt,s("p",{onClick:t[3]||(t[3]=n=>Da())},[j(" \u4E0B\u8F7D \xA0 "),Et])]),s("div",{ref_key:"areaDiv",ref:Le,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:fa,class:"ProgressBar"},null,512)],512),[[ee,h(U)]]),K(s("div",At,[s("div",zt,[Nt,Ct,s("p",{onClick:t[4]||(t[4]=n=>Wa())},[j(" \u4E0B\u8F7D \xA0 "),Dt])]),s("div",{ref_key:"typesofDiv",ref:Ee,class:"typesofDiv"},null,512),s("div",Wt,[y(a,{data:h(Ze),style:{width:"100%"}},{default:x(()=>[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"])])],512),[[ee,h(U)]]),K(s("div",$t,[s("div",Tt,[Ot,qt,h(Z)?(S(),C("p",{key:0,onClick:t[5]||(t[5]=n=>$a())},[j(" \u4E0B\u8F7D \xA0 "),Ft])):P("",!0)]),K(s("div",{ref_key:"farmlandDiv",ref:Ae,class:"farmlandDiv"},null,512),[[ee,h(Z)]]),h(Z)?P("",!0):(S(),C("div",It,Mt))],512),[[ee,!h(U)]]),K(s("div",Pt,[s("div",Bt,[Vt,Gt,s("p",{onClick:t[6]||(t[6]=n=>Ta())},[j(" \u4E0B\u8F7D \xA0 "),Qt])]),h(Z)?(S(),F(e,{key:0,"popper-class":"select_city",modelValue:k.value,"onUpdate:modelValue":t[7]||(t[7]=n=>k.value=n),placeholder:"\u5168\u90E8"},{default:x(()=>[(S(!0),C(re,null,oe(h(M).arr,n=>(S(),F(r,{key:n.streetCode,label:n.streetName,value:n.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):P("",!0),s("div",{ref_key:"ASdivisionDiv",ref:ze,class:"ASdivision"},null,512)],512),[[ee,!h(U)]]),s("div",{class:"rightFoldDiv",onClick:t[8]||(t[8]=n=>Sa())},[y(p,{disabled:!h(R),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[h(R)?(S(),F(g,{key:0},{default:x(()=>[Jt]),_:1})):P("",!0)]),_:1},8,["disabled"]),y(p,{disabled:h(R),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[h(R)?P("",!0):(S(),F(g,{key:0},{default:x(()=>[Rt]),_:1}))]),_:1},8,["disabled"])])]),s("div",Yt,[h(ce).length>0?(S(),F(ut,{key:0,dataSource:h(ce),onDataHandle:qa,allCount:h(Ue),onGetcurrentPage:Ea},null,8,["dataSource","allCount"])):P("",!0)]),Ut,y(d,{class:"legend",accordion:""},{default:x(()=>[y(f,{name:"1"},{title:x(()=>[j("\u56FE\u4F8B")]),default:x(()=>[s("div",Ht,[y(L,{modelValue:te.value,"onUpdate:modelValue":t[9]||(t[9]=n=>te.value=n),onChange:xa},{default:x(()=>[(S(!0),C(re,null,oe(h(Q),(n,N,O)=>(S(),F(v,{key:O,"v-model":n.disabled,disabled:n.disabled,label:N},{default:x(()=>[s("span",{style:Ya({background:n.color,border:`1px solid ${n.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),j(" "+I(N),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),s("div",Xt,[Zt,s("div",Kt,[(S(!0),C(re,null,oe(h(ge),(n,N)=>(S(),C("div",{class:"perform",key:N},[s("div",er,[s("div",ar,I(n.type)+":",1),s("span",null,I(Number(n.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),tr]),pa.value?(S(),F(w,{key:0,class:"back_button",onClick:t[10]||(t[10]=n=>o.back())},{default:x(()=>[j("\u8FD4\u56DE")]),_:1})):P("",!0)]),s("div",rr,[s("div",or,[y(E,{inline:!0,model:h(W),class:"demo-form-inline"},{default:x(()=>[y(m,{label:"\u65F6\u95F4:"},{default:x(()=>[y(e,{"popper-class":"selectCity",modelValue:h(W).time,"onUpdate:modelValue":t[11]||(t[11]=n=>h(W).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[(S(!0),C(re,null,oe(h(ue),(n,N)=>(S(),F(r,{key:N,label:o.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(m,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:x(()=>[y(e,{"popper-class":"selectCity",modelValue:h(W).statistical,"onUpdate:modelValue":t[12]||(t[12]=n=>h(W).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[y(r,{label:"\u9547\u7EA7",value:"\u9547"}),y(r,{label:"\u6751\u7EA7",value:"\u6751"}),h(Z)?(S(),F(r,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):P("",!0)]),_:1},8,["modelValue"])]),_:1}),y(m,{label:"\u5E72\u65F1\u7B49\u7EA7"},{default:x(()=>[y(e,{modelValue:h(W).droughtRating,"onUpdate:modelValue":t[13]||(t[13]=n=>h(W).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[y(r,{label:"\u5168\u90E8",value:""}),y(r,{label:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"}),y(r,{label:"\u9002\u5B9C",value:"\u9002\u5B9C"}),y(r,{label:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"}),y(r,{label:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"}),y(r,{label:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"})]),_:1},8,["modelValue"])]),_:1}),y(m,{label:"\u9762\u79EF(\u4EA9)>"},{default:x(()=>[y(c,{modelValue:de.value,"onUpdate:modelValue":t[14]||(t[14]=n=>de.value=n),min:0,onChange:Ma},null,8,["modelValue"])]),_:1}),y(m,null,{default:x(()=>[y(w,{type:"primary",onClick:Ie},{default:x(()=>[j("\u67E5\u8BE2")]),_:1}),y(w,{plain:"",onClick:ka,disabled:!h(Y)},{default:x(()=>[j(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),h(pe)?P("",!0):(S(),F(w,{key:0,type:"primary",text:"",onClick:Oa},{default:x(()=>[lr,j(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),s("div",{class:"modeDiv",onClick:ja},[s("div",{class:we(h(Y)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),s("div",{class:we(h(Y)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),K(s("div",nr,[s("div",sr,[h(pe)?P("",!0):(S(),F(a,{key:0,data:h(D),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[y(l,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(S(!0),C(re,null,oe(h(Oe),(n,N)=>(S(),F(l,{key:N,prop:n.value,label:N==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:x(O=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(S(),C("span",ir,I(O.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(S(),C("span",ur,I(O.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(S(),C("span",dr,I(O.row[n.value]),1)):(S(),C("span",cr,I(O.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]))]),y(a,{data:h(Te),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[y(l,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Ia}),(S(!0),C(re,null,oe(h(Oe),(n,N)=>(S(),F(l,{key:N,prop:n.value,label:N==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:x(O=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(S(),C("span",gr,I(O.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(S(),C("span",hr,I(O.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(S(),C("span",fr,I(O.row[n.value]),1)):(S(),C("span",pr,I(O.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),s("div",vr,[j(" \u5171"+I(H.value.length)+"\u6761 ",1),y(_,{background:"",layout:"prev, pager, next",total:H.value.length,"current-page":h(V),"page-size":h(G),onCurrentChange:Fa},null,8,["total","current-page","page-size"])])],512),[[ee,h(Y)]]),K(s("div",mr,[s("div",{ref_key:"chartModeDiv",ref:fe,class:"chartModeDiv"},null,512)],512),[[ee,!h(Y)]])])])}}},Ir=Ba(br,[["__scopeId","data-v-b6bd2ce2"]]);export{Ir as default};