Agriculture-front-end/dist/assets/Drought.5fa3f290.js
2023-07-26 17:29:34 +08:00

2 lines
47 KiB
JavaScript

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