Agriculture-front-end/dist/assets/Drought.134c2e0e.js
2023-09-19 14:34:21 +08:00

2 lines
48 KiB
JavaScript

import{L as R,_ as Vt,u as Bt,r as i,D as Gt,t as Qt,C as Rt,a5 as Jt,Y as Ve,N as _e,d as $,o as S,c as C,k as s,f as h,K as we,G as K,H as ee,m as M,e as b,w as x,l as P,j as q,Q as re,R as oe,I as Yt,x as F,A as Ut,p as Xt,q as Ht}from"./index.42ab3fdc.js";import{_ as Zt}from"./fh.7489c25e.js";import ke from"./downloads.4cdbbcc5.js";import{_ as Kt}from"./qx.88a5ecd3.js";import{_ as ea,a as ta}from"./zhankaiss.dd067ea4.js";import{_ as aa,a as ra,b as oa,c as la}from"./position.3b2b2301.js";import{_ as na,a as sa}from"./face.9a19de2e.js";import{_ as ia}from"./dow.b4b83e88.js";import"./index.b8675889.js";import{T as ua}from"./TimeLine.7eee9c20.js";import{u as Se}from"./useEcharts.5d95df8c.js";import"./linesGL.901ceb35.js";import{d as ct}from"./download.e798abeb.js";import{u as Be,w as da}from"./xlsx.86b9426e.js";import{e as xe}from"./element-resize-detector.ff2fdb0d.js";import{i as te,ar as ie}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";function Ge(z){return R({url:"equipment/areaStatisticsDrought",method:"get",params:z})}function gt(z){return R({url:"equipment/proportionOfArea",method:"get",params:z})}function Qe(z){return R({url:"equipment/statisticsOfArea",method:"get",params:z})}function Re(z){return R({url:"equipment/township",method:"get",params:z})}function ht(z){return R({url:"equipment/administrative",method:"get",params:z})}function ca(){return R({url:"equipment/listDroughtsYear",method:"get"})}function ga(z){return R({url:"equipment/listDroughts",method:"get",params:z})}function ha(z){return R({url:"equipment/administrativeChun",method:"get",params:z})}const A=z=>(Xt("data-v-76dfb563"),z=z(),Ht(),z),fa={class:"fatherDiv"},pa={class:"centerBox"},va=A(()=>s("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ma={class:"rightWra"},ya=A(()=>s("img",{src:Zt},null,-1)),ba=A(()=>s("span",null,"\u8FD4\u56DE",-1)),_a=[ya,ba],wa={class:"tabar"},Sa={class:"leftTop"},xa={class:"title"},ka=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),La=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Ea=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Aa={class:"leftbottom"},za={class:"title"},Na=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ca=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Da=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ta={class:"tableDiv"},Wa={class:"rightTop"},$a={class:"title"},Ia=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Oa=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),qa=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Fa={key:0},Ma=A(()=>s("img",{src:Kt},null,-1)),ja=[Ma],Pa={class:"rightbottom"},Va={class:"title"},Ba=A(()=>s("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ga=A(()=>s("span",null,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Qa=A(()=>s("img",{src:ke,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ra=A(()=>s("img",{src:ea},null,-1)),Ja=A(()=>s("img",{src:ta},null,-1)),Ya={class:"bottom_center"},Ua=Ut('<div class="tool" data-v-76dfb563><span data-v-76dfb563><img src="'+aa+'" alt="" data-v-76dfb563></span><span data-v-76dfb563><img src="'+ra+'" alt="" data-v-76dfb563></span><span data-v-76dfb563><img src="'+oa+'" alt="" data-v-76dfb563></span><span data-v-76dfb563><img src="'+na+'" alt="" data-v-76dfb563></span><span data-v-76dfb563><img src="'+sa+'" alt="" data-v-76dfb563></span><span data-v-76dfb563><img src="'+la+'" alt="" data-v-76dfb563></span></div>',1),Xa={class:"mt-4"},Ha={id:"popup",class:"ol-popup"},Za=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)),Ka={id:"popup-content",style:{padding:"10px"}},er={class:"perform_children"},tr={class:"label"},ar=A(()=>s("div",{id:"popup-pagination"},null,-1)),rr={class:"tabulation"},or={class:"searchDiv"},lr=A(()=>s("img",{src:ia,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"},yr={__name:"Drought",setup(z){const Je=Bt();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 ft=i(null);let j=Gt({arr:[],brr:[],crr:[]});i({}),i([]);const pt=i(!1);i(!1);let J=i(!1);const ae=i(["false"]);let Ne=i([]),Ce=i([]),De=i([]),Te=i(0),le=i([]),Y=i(!0),ue=i([]);const de=i(1);let ce=i([]),y=i(""),ge=i([]);i("");let Ye=i(""),Ue=i([]),We=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}]),$e=i([]),B=i(1),G=i(12);const fe=i(null);let Ie=i([]),pe=i(!0),Oe=i(1),ve=i([]),Xe=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),T=i({time:"",statistical:"\u9547",droughtRating:"",area:de.value});const X=i([]);let He=["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=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 O={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},Ze=i([]),W={\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"}};Qt(()=>{vt()});function vt(){At(),mt(),yt(),Pe(),be(),bt();for(const l in Q.value)Q.value[l].disabled!==!0&&le.value.push(l);ae.value=le.value;let o=document.querySelector(".leftWra");o&&(o.style.transform="translate(-107%,0)");let a=document.querySelector(".rightWra");a.style.transform="translate(101%,0)",localStorage.setItem(Je.currentRoute.value.path,!0)}Rt(()=>{localStorage.getItem(Je.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 H=i(null),u=i(null);i(null),i(null);let Ke=i(null),me=i(null),Z=!(window.localStorage.getItem("divisions").length>6);function mt(){var o=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.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),u.on("moveend",function(t){var r=u.getView().getZoom();r>=13?H.setVisible(!0):H.setVisible(!1)}),u.on("singleclick",function(t){var r=t.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(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):se(t,"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<n.length;N++)n[N].getGeometry().intersectsCoordinate(r)&&se(t,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",`${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`,"\u9AD8\u6807\u51C6")})}}else{let L=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,f=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Xe}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(L).getFeaturesBySQL(f,function(d){let w=new ol.format.GeoJSON().readFeatures(d.result.features),m=new ol.source.Vector;m.addFeatures(w);let E=new ol.layer.Vector({source:m}).getSource().getFeatures();for(var _=0;_<E.length;_++)if(E[_].getGeometry().intersectsCoordinate(r)){var n=r[0],N=r[1],I=u.getView(),Pt=u.getView().getZoom();I.animate({center:[n,N],duration:1e3}),Pt>=13?se(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):se(t,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547")}})}});var l=new ResizeObserver(function(t){t.forEach(function(r){var e=r.contentRect.width,g=r.contentRect.height;a.style.width=e+"px",a.style.height=g+"px",u.updateSize()})});l.observe(o),_t(Xe)}function se(o,a,l,t){var r=new ol.geom.Point(o.coordinate),e=new ol.supermap.QueryByGeometryParameters({queryParams:{name:a},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),t=="\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=[];Re({divisions:"370211",yearMonth:y.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(t=="\u6751"&&f.result.recordsets[0].features.features[0].properties.CJQYDM){let m=f.result.recordsets[0].features.features[0].properties.CJQYDM,c=[];ha({divisions:m,yearMonth:y.value.name}).then(E=>{E.data.forEach(_=>{d=_.streetName,c.push(_)}),d=E.data[0].streetName,ge.value=c,w()})}else if(t=="\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:y.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,qe(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),et(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 yt(){Jt.get("/json/huangdao.json").then(({data:o})=>{new ol.format.GeoJSON().readFeatures(o)[0]})}function qe(o,a,l,t){let r=new ol.source.Vector;var e=new ol.layer.Vector({id:a||"zhezhao",source:r,zIndex:t||50,style:new ol.style.Style({fill:new ol.style.Fill({color:l||"rgba( 105, 105, 105, 0.9)"})})});const g=et(o),p=new ol.Feature({geometry:g});e.getSource().addFeature(p),u.addLayer(e)}function et(o){const a=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(a);return o.forEach(r=>{const e=new ol.geom.LinearRing(r[0]);l.appendLinearRing(e)}),l}const bt=()=>{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 _t(o){let a="",l="",t="",r="",e="";l=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,a=o,t="XJQY3702112019WGS84",r="huangdaoqu_bianjie",e="XJQYMC";var g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${r}`,attributeFilter:`${e} like '%${a}%'`},datasetNames:[`${r}:${t}`]});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);qe(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 tt=()=>{H=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(H)},at=()=>{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)},rt=o=>{let a=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(a)};i({label:[]});const wt=(o,a)=>o.map(t=>{const r={};for(const e in t)a[e]=="\u533A\u57DF\u540D\u79F0"&&(r[a[e]]=t[e]);for(const e in t)a[e]=="\u6E7F\u6DA6 (\u4EA9)"&&(r[a[e]]=t[e]);for(const e in t)a[e]=="\u9002\u5B9C(\u4EA9)"&&(r[a[e]]=t[e]);for(const e in t)a[e]=="\u8F7B\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[a[e]]=t[e]);for(const e in t)a[e]=="\u4E2D\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[a[e]]=t[e]);for(const e in t)a[e]=="\u91CD\u5EA6\u5E72\u65F1(\u4EA9)"&&(r[a[e]]=t[e]);return r}),ye=(o,a="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const r=wt(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=Be.json_to_sheet(r),g=Be.book_new();Be.book_append_sheet(g,e,l),da(g,`${a}.xlsx`)};function St(){if(J.value=!J.value,J.value){let o=document.querySelector(".rightWra");o.style.transform="translate(0,0)"}else{let o=document.querySelector(".rightWra");o.style.transform="translate(101%,0)"}}Ve(()=>k.value,()=>{Ct()}),Ve(()=>y.value,(o,a)=>{k.value=window.localStorage.getItem("divisions"),Me(k.value,y.value.name),je(k.value,y.value.name),zt(y.value.name),Z?nt(k.value,y.value.name):st(k.value,y.value.name);let t=y.value.name.replace(/-/g,"_");W={\u6E7F\u6DA6:{setOf:`${y.value.name}-ganhan`,name:`T${t}_shirun`},\u9002\u5B9C:{setOf:`${y.value.name}-ganhan`,name:`T${t}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_serious_ganhan`}}});let ot=0;const xt=()=>{Oe.value=0};Ve(()=>ae.value,(o,a)=>{if(o.length>=a.length&&Oe.value<1)o.filter(t=>{if(a.findIndex(e=>e===t)<0)return t}).forEach(t=>{W[t]&&rt(W[t])});else if(o.length<a.length){const l=a.filter(t=>{if(o.findIndex(e=>e===t)<0)return t});l.forEach(t=>{W[t]&&(u.getLayers().getArray().indexOf(W[t].name),u.getLayers().getArray().forEach((r,e)=>{r.A.name&&r.A.name==W[t].name&&u.getLayers().removeAt(e)}))}),l.forEach(t=>{W[t]&&(u.getLayers().getArray().indexOf(W[t].name),u.getLayers().getArray().forEach((r,e)=>{r.A.name&&r.A.name==W[t].name&&u.getLayers().removeAt(e)}))})}ot++,ot==1&&(tt(),at())});const Fe=()=>{let o=[],a=[];B.value=1,ga({yearMonth:T.value.time,statistical:T.value.statistical,droughtRating:T.value.droughtRating,area:T.value.area}).then(l=>{Ie.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=>{a.push(Object.create(null,{regio:{value:e}}))}),a.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,X.value=a.sort((e,g)=>e.region.length-g.region.length),$e.value=a.slice((B.value-1)*G.value,(B.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",a.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 t=fe.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const r=te(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",r.resize()}),dt()})},kt=()=>{T.value.time=ue.value[ue.value.length-1],T.value.statistical="\u9547",T.value.droughtRating="",T.value.area=0,de.value=1,pe.value=!0,Fe()};function Lt(o){let a="",l="",t="",r="",e="";l=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,a=o,t="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",r="2019-2022gaobiaozhunnongtian",e="DKMC";var g=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${r}`,attributeFilter:`${e} like '%${a}%'`},datasetNames:[`${r}:${t}`]});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);qe(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 lt=o=>{U.value=o,o?(it(),Pe()):(ut(),be())},Et=o=>{ce.value=ve.value.slice((o-1)*he.value,o*he.value)},At=()=>{ca().then(o=>{y.value={name:o.data[o.data.length-1]},ue.value=o.data;let a=[];o.data.forEach(r=>{a.push({name:r})}),ve.value=a,Ue.value=Math.ceil(ve.value.length/5),We=Math.ceil(a.length/5),ce.value=ve.value.slice((We-1)*he.value,We*he.value),T.value.time=o.data[o.data.length-1],Fe();let t=y.value.name.replace(/-/g,"_");W={\u6E7F\u6DA6:{setOf:`${y.value.name}-ganhan`,name:`T${t}_shirun`},\u9002\u5B9C:{setOf:`${y.value.name}-ganhan`,name:`T${t}_shiyi`},\u8F7B\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_qingduganhan`},\u4E2D\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_medium_ganhan`},\u91CD\u5EA6\u5E72\u65F1:{setOf:`${y.value.name}-ganhan`,name:`T${t}_serious_ganhan`}}})},Me=(o,a)=>{Ge({divisions:o,yearMonth:a}).then(l=>{Ne=i([]),Ce=i([]),l.data.forEach(t=>{Ne.value.push(t.level),Ce.value.push(t.area)}),l.data.forEach(t=>{Number(t.area)<1?Q.value[t.level].disabled=!0:Q.value[t.level].disabled=!1}),it()})},je=(o,a)=>{let l=i([]);gt({divisions:o,yearMonth:a}).then(t=>{De=i([]),Te=i(0),t.data.forEach(r=>{Te.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 zt=o=>{Qe({yearMonth:o}).then(a=>{V={\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[],\u9002\u5B9C:[],\u6E7F\u6DA6:[]},He.forEach((l,t)=>{let r=a.data.map(e=>{if(l===e.region)return e});Object.keys(V).forEach(e=>{let g=0;r.findIndex(v=>(v&&v.level===e&&(g=v.area),v&&v.level===e))>-1?V[e].push(g):V[e].push(0)})}),a.data.length>0&&ut()})};let Nt=()=>{document.querySelector(".tool").style.display="none",tt(),H.setVisible(!1),at(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(l=>{u.getLayers().getArray().forEach((t,r)=>{(t.A.name==l||t.A.id==l)&&u.getLayers().removeAt(r)})}),u.getView().animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const nt=(o,a)=>{Re({divisions:o,yearMonth:a}).then(l=>{O={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},j.brr=l.data,j.arr=l.data.sort((p,v)=>p.streetName.length-v.streetName.length),j.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let t=[],r=[];j.arr.forEach(p=>{t.indexOf(p.streetName)==-1&&(t.push(p.streetName),r.push({streetName:p.streetName,streetCode:p.streetCode,area:p.area,type:p.type}))}),j.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(O).forEach(f=>{L.findIndex(w=>w&&w.type===f&&Number(w.area)>0)>-1?O[f].push(1):O[f].push(null)})}),be()})},st=(o,a)=>{ht({divisions:o,yearMonth:a}).then(l=>{O={\u9002\u5B9C:[],\u6E7F\u6DA6:[],\u8F7B\u5EA6\u5E72\u65F1:[],\u4E2D\u5EA6\u5E72\u65F1:[],\u91CD\u5EA6\u5E72\u65F1:[]},j.brr=l.data;let t=[...l.data],r=[];t.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(O).forEach(v=>{p.findIndex(f=>f&&f.type===v&&f.area>0)>-1?O[v].push(1):O[v].push(null)})}),be()})},Ct=()=>{k.value=="370211"?(nt(k.value,y.value.name),Me(k.value,y.value.name),je(k.value,y.value.name)):(st(k.value,y.value.name),Me(k.value,y.value.name),je(k.value,y.value.name))},Dt=o=>{Ge({divisions:k.value,yearMonth:y.value.name,whetherToDownload:!0}).then(a=>{ct(a.data[a.data.length-1].downloadPath)})},Tt=o=>{gt({divisions:k.value,yearMonth:y.value.name,whetherToDownload:!0}).then(a=>{ct(a.data[a.data.length-1].downloadPath)})},Wt=o=>{Qe({divisions:k.value,yearMonth:y.value.name,whetherToDownload:!1}).then(a=>{let l=[],t=[];a.data.forEach(r=>{l.indexOf(r.region)==-1&&l.push(r.region)}),l.forEach(r=>{t.push(Object.create(null,{regio:{value:r}}))}),t.forEach(r=>{a.data.map(e=>{r.regio===e.region&&(r.region=e.region,r[e.level]=Number(e.area).toFixed(2))})}),ye(t,"\u5404\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},$t=o=>{if(k.value==="370211"){let a="";j.arr.forEach(l=>{l.subregion==k.value&&(a=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),Re({divisions:k.value,yearMonth:y.value.name}).then(l=>{let t=[],r=[];l.data.forEach(e=>{t.indexOf(e.streetName)==-1&&t.push(e.streetName)}),t.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),ye(r,`${a}\u5E72\u65F1\u7B49\u7EA7\u9762\u79EF-\u884C\u653F\u533A\u5212`,"Sheet1")})}else{let a="";j.arr.forEach(l=>{l.subregion==k.value&&(a=l.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":l.subregionName)}),ht({divisions:k.value,yearMonth:y.value.name,whetherToDownload:!1}).then(l=>{let t=[],r=[];l.data.forEach(e=>{t.indexOf(e.streetName)==-1&&t.push(e.streetName)}),t.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))})}),ye(r,`${a}\u4F5C\u7269\u5E72\u65F1\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})}},It=()=>{let o=JSON.parse(JSON.stringify(D.value[0]));o.region="\u5408\u8BA1",X.value.push(o),ye(X.value,"\u5E72\u65F1\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},Ot=o=>{for(const l in W)u.getLayers().getArray().forEach((t,r)=>{t.A.name&&W[l].name==t.A.name&&u.getLayers().removeAt(r)});Oe.value+=1,le.value=[];let a=[];for(const l in W)u.getLayers().getArray().forEach((t,r)=>{t.A.name==W[l].name&&u.getLayers().removeAt(r)});y.value=o,Ge({divisions:"370211",yearMonth:y.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&&le.value.push(t);ae.value=le.value,ae.value.forEach(t=>{rt(W[t])})})};function it(){const o=te(Le.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:"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"}}}]};a&&o.setOption(a),xe().listenTo(Le.value,()=>{_e(()=>{o.resize()})})}function Pe(){const o=te(Ee.value);var a=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:`${(Te.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: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)"}}]}]};Se(o,l),xe().listenTo(Ee.value,()=>{_e(()=>{o.resize()})})}function ut(){const o=te(Ae.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:He,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:V.\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:V.\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:V.\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:V.\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:V.\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(t){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=t.name;let g=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Lt(t.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)})}),H=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(H)}}),a&&o.setOption(a,{notMerge:!0,grid:{bottom:20}}),Se(o,a),xe().listenTo(Ae.value,()=>{_e(()=>{o.resize()})})}const qt=o=>{B.value=o,$e.value=X.value.slice((B.value-1)*G.value,(B.value-1)*G.value+G.value)},Ft=o=>{const a=B.value,l=G.value;return o+1+(a-1)*l};function be(){const o=te(ze.value);var a={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(t){let r=0;return j.brr.forEach(e=>{e.type==t.seriesName&&e.streetName==t.name&&(r=Number(e.area).toFixed(2))}),t.seriesName+'<span style="font-size: 14px; color: #f00;">'+r+"</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(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: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}]};Se(o,a),xe().listenTo(ze.value,()=>{_e(()=>{o.resize()})})}const Mt=()=>{Y.value=!Y.value;const o=fe.value;o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px";const a=te(o);window.addEventListener("resize",()=>{o.style.width=window.innerWidth-200+"px",o.style.height=window.innerHeight-200+"px",a.resize()}),dt()},jt=o=>{T.value.area=o};function dt(){const o=te(fe.value);let a=[],l=[],t=[],r=[],e=[],g=[];X.value.forEach(d=>{a.push(d.region),d.\u6E7F\u6DA6!==void 0?l.push(d.\u6E7F\u6DA6):l.push(0),d.\u9002\u5B9C!==void 0?t.push(d.\u9002\u5B9C):t.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/a.length*100,v={tooltip:{trigger:"axis",formatter:function(d){let w=d[0].axisValueLabel+"</br>",m=0;for(let c=0;c<d.length;c++)m+=d[c].value,d[c].seriesName!=="\u5408\u8BA1"&&(w+=d[c].seriesName+"\uFF1A"+d[c].value+"</br>");for(let c=0;c<d.length;c++)m+=Number(d[c].value),d[c].seriesName==="\u5408\u8BA1"&&(w+="\u5408\u8BA1\uFF1A"+m);return w},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:p,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:r},{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:g}]};v.series;var L=v.tooltip;function f(d){let w=d[0].axisValueLabel+"</br>",m=0;for(let c=0;c<d.length;c++)if(d[c].seriesName!=="\u5408\u8BA1"){const E=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${d[c].color}"></span>`;m+=d[c].value,w+=E+d[c].seriesName+"\uFF1A"+d[c].value+"</br>"}for(let c=0;c<d.length;c++)d[c].seriesName==="\u5408\u8BA1"&&(w+="\u5408\u8BA1\uFF1A"+m);return w}L.formatter=f,Se(o,v)}return(o,a)=>{const l=$("el-table-column"),t=$("el-table"),r=$("el-option"),e=$("el-select"),g=$("el-icon"),p=$("el-tooltip"),v=$("el-checkbox"),L=$("el-checkbox-group"),f=$("el-collapse-item"),d=$("el-collapse"),w=$("el-button"),m=$("el-form-item"),c=$("el-input-number"),E=$("el-form"),_=$("el-pagination");return S(),C("div",fa,[s("div",pa,[va,s("div",ma,[s("div",{class:"tool",onClick:a[0]||(a[0]=n=>h(Nt)())},_a),s("div",wa,[s("div",{class:we(h(U)?"tabarS":""),onClick:a[1]||(a[1]=n=>lt(!0))},"\u9EC4\u5C9B\u533A",2),s("div",{class:we(h(U)?"":"tabarS"),onClick:a[2]||(a[2]=n=>lt(!1))},"\u884C\u653F\u533A",2)]),K(s("div",Sa,[s("div",xa,[ka,La,s("p",{onClick:a[3]||(a[3]=n=>Dt())},[M(" \u4E0B\u8F7D \xA0 "),Ea])]),s("div",{ref_key:"areaDiv",ref:Le,class:"areaDiv"},null,512),s("div",{ref_key:"leftProgressBarDiv",ref:ft,class:"ProgressBar"},null,512)],512),[[ee,h(U)]]),K(s("div",Aa,[s("div",za,[Na,Ca,s("p",{onClick:a[4]||(a[4]=n=>Tt())},[M(" \u4E0B\u8F7D \xA0 "),Da])]),s("div",{ref_key:"typesofDiv",ref:Ee,class:"typesofDiv"},null,512),s("div",Ta,[b(t,{data:h(Ze),style:{width:"100%"}},{default:x(()=>[b(l,{prop:"date",label:"\u7C7B\u578B"}),b(l,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),b(l,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])],512),[[ee,h(U)]]),K(s("div",Wa,[s("div",$a,[Ia,Oa,h(Z)?(S(),C("p",{key:0,onClick:a[5]||(a[5]=n=>Wt())},[M(" \u4E0B\u8F7D \xA0 "),qa])):P("",!0)]),K(s("div",{ref_key:"farmlandDiv",ref:Ae,class:"farmlandDiv"},null,512),[[ee,h(Z)]]),h(Z)?P("",!0):(S(),C("div",Fa,ja))],512),[[ee,!h(U)]]),K(s("div",Pa,[s("div",Va,[Ba,Ga,s("p",{onClick:a[6]||(a[6]=n=>$t())},[M(" \u4E0B\u8F7D \xA0 "),Qa])]),h(Z)?(S(),q(e,{key:0,"popper-class":"select_city",modelValue:k.value,"onUpdate:modelValue":a[7]||(a[7]=n=>k.value=n),placeholder:"\u5168\u90E8"},{default:x(()=>[(S(!0),C(re,null,oe(h(j).arr,n=>(S(),q(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:a[8]||(a[8]=n=>St())},[b(p,{disabled:!h(J),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[h(J)?(S(),q(g,{key:0},{default:x(()=>[Ra]),_:1})):P("",!0)]),_:1},8,["disabled"]),b(p,{disabled:h(J),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[h(J)?P("",!0):(S(),q(g,{key:0},{default:x(()=>[Ja]),_:1}))]),_:1},8,["disabled"])])]),s("div",Ya,[h(ce).length>0?(S(),q(ua,{key:0,dataSource:h(ce),onDataHandle:Ot,allCount:h(Ue),onGetcurrentPage:Et},null,8,["dataSource","allCount"])):P("",!0)]),Ua,b(d,{class:"legend",accordion:""},{default:x(()=>[b(f,{name:"1"},{title:x(()=>[M("\u56FE\u4F8B")]),default:x(()=>[s("div",Xa,[b(L,{modelValue:ae.value,"onUpdate:modelValue":a[9]||(a[9]=n=>ae.value=n),onChange:xt},{default:x(()=>[(S(!0),C(re,null,oe(h(Q),(n,N,I)=>(S(),q(v,{key:I,"v-model":n.disabled,disabled:n.disabled,label:N},{default:x(()=>[s("span",{style:Yt({background:n.color,border:`1px solid ${n.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),M(" "+F(N),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),s("div",Ha,[Za,s("div",Ka,[(S(!0),C(re,null,oe(h(ge),(n,N)=>(S(),C("div",{class:"perform",key:N},[s("div",er,[s("div",tr,F(n.type)+":",1),s("span",null,F(Number(n.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),ar]),pt.value?(S(),q(w,{key:0,class:"back_button",onClick:a[10]||(a[10]=n=>o.back())},{default:x(()=>[M("\u8FD4\u56DE")]),_:1})):P("",!0)]),s("div",rr,[s("div",or,[b(E,{inline:!0,model:h(T),class:"demo-form-inline"},{default:x(()=>[b(m,{label:"\u65F6\u95F4:"},{default:x(()=>[b(e,{"popper-class":"selectCity",modelValue:h(T).time,"onUpdate:modelValue":a[11]||(a[11]=n=>h(T).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[(S(!0),C(re,null,oe(h(ue),(n,N)=>(S(),q(r,{key:N,label:o.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),b(m,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:x(()=>[b(e,{"popper-class":"selectCity",modelValue:h(T).statistical,"onUpdate:modelValue":a[12]||(a[12]=n=>h(T).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[b(r,{label:"\u9547\u7EA7",value:"\u9547"}),b(r,{label:"\u6751\u7EA7",value:"\u6751"}),h(Z)?(S(),q(r,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):P("",!0)]),_:1},8,["modelValue"])]),_:1}),b(m,{label:"\u5E72\u65F1\u7B49\u7EA7"},{default:x(()=>[b(e,{modelValue:h(T).droughtRating,"onUpdate:modelValue":a[13]||(a[13]=n=>h(T).droughtRating=n),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[b(r,{label:"\u5168\u90E8",value:""}),b(r,{label:"\u6E7F\u6DA6",value:"\u6E7F\u6DA6"}),b(r,{label:"\u9002\u5B9C",value:"\u9002\u5B9C"}),b(r,{label:"\u8F7B\u5EA6\u5E72\u65F1",value:"\u8F7B\u5EA6\u5E72\u65F1"}),b(r,{label:"\u4E2D\u5EA6\u5E72\u65F1",value:"\u4E2D\u5EA6\u5E72\u65F1"}),b(r,{label:"\u91CD\u5EA6\u5E72\u65F1",value:"\u91CD\u5EA6\u5E72\u65F1"})]),_:1},8,["modelValue"])]),_:1}),b(m,{label:"\u9762\u79EF(\u4EA9)>"},{default:x(()=>[b(c,{modelValue:de.value,"onUpdate:modelValue":a[14]||(a[14]=n=>de.value=n),min:1,onChange:jt},null,8,["modelValue"])]),_:1}),b(m,null,{default:x(()=>[b(w,{type:"primary",onClick:Fe},{default:x(()=>[M("\u67E5\u8BE2")]),_:1}),b(w,{plain:"",onClick:kt,disabled:!h(Y)},{default:x(()=>[M(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),h(pe)?P("",!0):(S(),q(w,{key:0,type:"primary",text:"",onClick:It},{default:x(()=>[lr,M(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),s("div",{class:"modeDiv",onClick:Mt},[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(),q(t,{key:0,data:h(D),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[b(l,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(S(!0),C(re,null,oe(h(Ie),(n,N)=>(S(),q(l,{key:N,prop:n.value,label:N==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:x(I=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(S(),C("span",ir,F(I.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(S(),C("span",ur,F(I.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(S(),C("span",dr,F(I.row[n.value]),1)):(S(),C("span",cr,F(I.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]))]),b(t,{data:h($e),"header-cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[b(l,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Ft}),(S(!0),C(re,null,oe(h(Ie),(n,N)=>(S(),q(l,{key:N,prop:n.value,label:N==0?n.lable:n.lable+"(\u4EA9)",align:"center"},{default:x(I=>[n.value=="\u8F7B\u5EA6\u5E72\u65F1"?(S(),C("span",gr,F(I.row[n.value]),1)):n.value=="\u4E2D\u5EA6\u5E72\u65F1"?(S(),C("span",hr,F(I.row[n.value]),1)):n.value=="\u91CD\u5EA6\u5E72\u65F1"?(S(),C("span",fr,F(I.row[n.value]),1)):(S(),C("span",pr,F(I.row[n.value]),1))]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),s("div",vr,[M(" \u5171"+F(X.value.length)+"\u6761 ",1),b(_,{background:"",layout:"prev, pager, next",total:X.value.length,"current-page":h(B),"page-size":h(G),onCurrentChange:qt},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)]])])])}}},Fr=Vt(yr,[["__scopeId","data-v-76dfb563"]]);export{Fr as default};