Agriculture-front-end/dist/assets/Site.8c7313f7.js
2023-09-21 17:37:29 +08:00

2 lines
46 KiB
JavaScript

import{L as J,_ as Xt,u as Ut,r as n,D as vt,Y as Je,t as Zt,C as Ht,a5 as Kt,N as xe,d as W,o as L,c as O,k as l,f as u,K as ke,G as H,H as K,m as D,e as p,w as S,l as j,j as I,Q as ie,R as de,x as F,F as ea,I as ta,p as aa,q as oa}from"./index.57224d07.js";import{_ as ra}from"./fh.7489c25e.js";import Ee from"./downloads.4cdbbcc5.js";import{_ as la}from"./qx.88a5ecd3.js";import{_ as na,a as sa}from"./zhankaiss.dd067ea4.js";import{_ as ia}from"./dow.b4b83e88.js";import"./index.b8675889.js";import{T as da}from"./TimeLine.dbdee48d.js";import{u as B,w as Ye}from"./xlsx.86b9426e.js";import{u as ze}from"./useEcharts.c43bfe26.js";import"./linesGL.901ceb35.js";import{e as Le}from"./element-resize-detector.ff2fdb0d.js";import{i as ee,ar as oe}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";function bt(E){return J({url:"crops/farmland",method:"get",params:E})}function ua(E){return J({url:"crops/statistics",method:"get",params:E})}function Xe(E){return J({url:"crops/highStandards",method:"get",params:E})}function Ue(E){return J({url:"crops/gradeStatistics",method:"get",params:E})}function yt(E){return J({url:"crops/administrativeDivisions",method:"get",params:E})}function ca(E){return J({url:"crops/growthTime",method:"get",params:E})}function ga(E){return J({url:"crops/growthList",method:"get",params:E})}function ha(E){return J({url:"crops/administrativeDivisionsChun",method:"get",params:E})}const w=E=>(aa("data-v-74504acd"),E=E(),oa(),E),fa={class:"fatherDiv"},pa={class:"centerBox"},ma=w(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),va={class:"rightWra"},ba=w(()=>l("img",{src:ra},null,-1)),ya=w(()=>l("span",null,"\u8FD4\u56DE",-1)),_a=[ba,ya],wa={class:"tabar"},Sa={class:"leftTop"},xa={class:"title"},ka=w(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),za=w(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),La=w(()=>l("img",{src:Ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ea={class:"leftbottom"},Ca={class:"title"},Na=w(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Aa=w(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),$a=w(()=>l("img",{src:Ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ta={class:"tableDiv"},Wa={class:"rightTop"},Ia={class:"title"},Da=w(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ja=w(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ma=w(()=>l("img",{src:Ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Oa={key:0},Fa=w(()=>l("img",{src:la},null,-1)),Ba=[Fa],Va={class:"rightbottom"},Pa={class:"title"},qa=w(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ga=w(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Qa=w(()=>l("img",{src:Ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ra=w(()=>l("img",{src:na},null,-1)),Ja=w(()=>l("img",{src:sa},null,-1)),Ya={class:"bottom_center"},Xa={id:"popup",class:"ol-popup"},Ua=w(()=>l("div",{class:"pophead",style:{width:"100%"}},[l("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)"}}),l("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Za={id:"popup-content",style:{padding:"10px"}},Ha={class:"perform"},Ka={class:"perform_children"},eo=w(()=>l("div",{class:"label"},"\u597D\uFF1A",-1)),to={class:"perform_children"},ao=w(()=>l("div",{class:"label"},"\u8F83\u597D\uFF1A",-1)),oo={class:"perform"},ro={class:"perform_children"},lo=w(()=>l("div",{class:"label"},"\u9002\u4E2D\uFF1A",-1)),no={class:"perform_children"},so=w(()=>l("div",{class:"label"},"\u8F83\u5DEE\uFF1A",-1)),io={class:"perform"},uo={class:"perform_children"},co=w(()=>l("div",{class:"label"},"\u5DEE\uFF1A",-1)),go=w(()=>l("div",{id:"popup-pagination"},null,-1)),ho={id:"pop"},fo={key:0},po=w(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),mo={class:"mt-4"},vo={class:"tabulation"},bo={class:"searchDiv"},yo=w(()=>l("img",{src:ia,alt:""},null,-1)),_o={class:"tableBox"},wo={class:"tableBorder"},So={class:"example-pagination-block"},xo={class:"chartMode"},ko={__name:"Site",setup(E){const Ce=Ut();n(null);const Ne=n(null),Ae=n(null),$e=n(null);n(null);const Te=n(null),x=n("");x.value=window.localStorage.getItem("divisions"),n(null);let V=vt({arr:[],brr:[],crr:[]});vt({arr:[]}),n({}),n([]),n([]);const Ze=n(!1);n(!0);let Y=n(!1);n("{x:765,y:191}");let He=n([]),We=n([]),Ie=n(0);n([]);let P=n(["false"]),re=n([]);const ue=n(0);let ce=n([]),te=n(!0);const ge=n(null);let q=n(1),G=n(12),De=n([]),Ke=n([]),he=n(!0);n(null),n(null),n("");let Q=n([]),fe=n([]),v=n(""),et=n(""),je=n(0),tt=n([]),Me=n(""),pe=n(5),me=n([]),X=n(!0),U=!(window.localStorage.getItem("divisions").length>6),at=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),C=n([{\u597D:0,\u8F83\u597D:0,\u9002\u4E2D:0,\u8F83\u5DEE:0,\u5DEE:0}]),ve=n([]),ot=["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"],R={good:[],better:[],moderate:[],poor:[],difference:[]};const le=n([]);let N=n({time:"",statistical:"\u9547",droughtRating:"",area:ue.value}),be=n([]),ne={\u597D:{color:"rgba(49, 235, 7, 1)",disabled:!1},\u8F83\u597D:{color:"rgba(84, 170, 255, 1)",disabled:!1},\u9002\u4E2D:{color:"rgba(255, 251, 0, 1)",disabled:!1},\u8F83\u5DEE:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u5DEE:{color:"rgba(255, 0, 255, 1)",disabled:!1}},M={},rt=0;Je(()=>x.value,()=>{Ge()}),Je(()=>v.value,(a,t)=>{x.value=window.localStorage.getItem("divisions"),Ve(x.value,v.value.name),Pe(x.value,v.value.name),U?qe(x.value,v.value.name):ct(x.value,v.value.name),Dt(v.value.name);let e=v.value.name.replace(/-/g,"_");M={\u597D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_hao`},\u8F83\u597D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_jiaohao`},\u9002\u4E2D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_shizhong`},\u8F83\u5DEE:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_jiaocha`},\u5DEE:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_cha`}}});const _t=()=>{je.value=0};Je(()=>P.value,(a,t)=>{a.length>t.length&&je.value<1?a.filter(e=>{if(t.findIndex(s=>s===e)<0)return e}).forEach(e=>{M[e]&&dt(M[e])}):a.length<t.length&&t.filter(e=>{if(a.findIndex(s=>s===e)<0)return e}).forEach(e=>{M[e]&&i.getLayers().getArray().forEach((o,s)=>{o.A.name&&o.A.name==M[e].name&&i.getLayers().removeAt(s)})}),rt++,rt==1&&(st(),it())});var se={title:[]};let T=n({good:[],better:[],difference:[],moderate:[],poor:[]}),Z=n(null),Oe=n([]);Zt(()=>{wt()});function wt(){It(),St(),xt(),kt();for(const t in ne)ne[t].disabled!==!0&&re.value.push(t);P.value=re.value,localStorage.setItem(Ce.currentRoute.value.path,!0);let a=document.querySelector(".rightWra");a.style.transform="translate(101%,0)",localStorage.setItem(Ce.currentRoute.value.path,!0)}Ht(()=>{localStorage.getItem(Ce.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 i=n(null);n(null),n(null);let lt=n(null),ye=n(null);function St(){var a=document.querySelector(".centerBox"),t=document.getElementById("cesiumContainer");i=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.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})]}),i.on("moveend",function(e){var o=i.getView().getZoom();o>=13?Z.setVisible(!0):Z.setVisible(!1)}),i.on("singleclick",function(e){var o=e.coordinate;if(U){var s=o[0],h=o[1],f=i.getView(),b=i.getView().getZoom();f.animate({center:[s,h],duration:1e3});let z=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(d=>{i.getLayers().getArray().forEach((_,m)=>{if(d==_.A.name){z=!0;return}})}),z)b>=13?ae(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):ae(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547");else{let d=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,_=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${et.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(_,function(m){let g=new ol.format.GeoJSON().readFeatures(m.result.features),k=new ol.source.Vector;k.addFeatures(g);let c=new ol.layer.Vector({source:k}).getSource().getFeatures();for(var $=0;$<c.length;$++)c[$].getGeometry().intersectsCoordinate(o)&&ae(e,"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 z=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,y=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${at}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(z).getFeaturesBySQL(y,function(d){let _=new ol.format.GeoJSON().readFeatures(d.result.features),m=new ol.source.Vector;m.addFeatures(_);let k=new ol.layer.Vector({source:m}).getSource().getFeatures();for(var A=0;A<k.length;A++)if(k[A].getGeometry().intersectsCoordinate(o)){var c=o[0],$=o[1],Se=i.getView(),Rt=i.getView().getZoom();Se.animate({center:[c,$],duration:1e3});let mt=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Jt=>{i.getLayers().getArray().forEach((Yt,Eo)=>{if(Jt==Yt.A.name){mt=!0;return}})}),mt?Rt>=13?ae(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):ae(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547"):ae(e,"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")}})}});var r=new ResizeObserver(function(e){e.forEach(function(o){var s=o.contentRect.width,h=o.contentRect.height;t.style.width=s+"px",t.style.height=h+"px",i.updateSize()})});r.observe(a),zt(at)}function xt(){Kt.get("/json/huangdao.json").then(({data:a})=>{new ol.format.GeoJSON().readFeatures(a)[0]})}function ae(a,t,r,e){var o=new ol.geom.Point(a.coordinate),s=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:o});let h=[],f=document.querySelector("#popup-title"),b=n(null),z=n(null);new ol.supermap.QueryService(r).queryByGeometry(s,function(y){let d="";if(z=i.getLayers().getArray().find(m=>m.get("id")==="zhezhao"),i.removeLayer(z),e=="\u9547"){let m=y.result.recordsets[0].features.features[0].properties.XJQYDM;x.value=m,Ue({divisions:"370211",yearMonth:v.value.name}).then(g=>{g.data.forEach(k=>{k.subregion==m&&(d=k.subregionName,Q.value=k)}),_()})}else if(e=="\u6751"){let m=y.result.recordsets[0].features.features[0].properties.CJQYDM;ha({divisions:m,yearMonth:v.value.name}).then(g=>{g.data.forEach(k=>{Q.value=k}),d=g.data[0].subregionName,_()})}else if(e=="\u9AD8\u6807\u51C6"&&y.result.recordsets[0].features.features[0].properties.DKMC){let m=y.result.recordsets[0].features.features[0].properties.DKMC;Xe({divisions:"370211",yearMonth:v.value.name}).then(g=>{g.data.forEach(k=>{k.region==m&&(Q.value=k)}),d=m,_()})}function _(m){if(y.result.currentCount>0){y.result.recordsets[0].features&&(ye.setPosition(o.flatCoordinates),f.innerHTML=d),b=i.getLayers().getArray().find($=>$.get("id")==="dianjigaoliang"),i.removeLayer(b);var g=new ol.format.GeoJSON().readFeatures(y.result.recordsets[0].features);h=y.result.recordsets[0].features.features[0].geometry.coordinates,Fe(y.result.recordsets[0].features.features[0].geometry.coordinates);var k=new ol.source.Vector;k.addFeatures(g);const c=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var A=new ol.layer.Vector({id:"dianjigaoliang",source:k,zIndex:9999});A.setStyle(c),i.addLayer(A)}}}),lt.addEventListener("click",function(){z=i.getLayers().getArray().find(y=>y.get("id")==="zhezhao"),i.removeLayer(z),nt(h),x.value=window.localStorage.getItem("divisions"),b=i.getLayers().getArray().find(y=>y.get("id")==="dianjigaoliang"),i.removeLayer(b),b=i.getLayers().getArray().find(y=>y.get("id")==="gao"),i.removeLayer(b),ye.setPosition(void 0)})}function Fe(a,t,r,e){let o=new ol.source.Vector;var s=new ol.layer.Vector({id:t||"zhezhao",source:o,zIndex:e||50,style:new ol.style.Style({fill:new ol.style.Fill({color:r||"rgba( 105, 105, 105, 0.9)"})})});const h=nt(a),f=new ol.Feature({geometry:h});s.getSource().addFeature(f),i.addLayer(s)}function nt(a){const t=[-180,-90,180,90],r=ol.geom.Polygon.fromExtent(t);return a.forEach(o=>{const s=new ol.geom.LinearRing(o[0]);r.appendLinearRing(s)}),r}const kt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),lt=document.getElementById("popup-closer"),ye=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(ye)};function zt(a){let t="",r="",e="",o="",s="";r=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,t=a,e="XJQY3702112019WGS84",o="huangdaoqu_bianjie",s="XJQYMC";var h=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${s} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(r).getFeaturesBySQL(h,function(f){if(f.result.featureCount!=0){var b=i.getLayers().getArray().find(g=>g.get("id")==="zhezhao");i.removeLayer(b);var z=i.getLayers().getArray().find(g=>g.get("id")==="dianjigaoliang");i.removeLayer(z);var y=new ol.format.GeoJSON().readFeatures(f.result.features);Fe(f.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var d=new ol.source.Vector;d.addFeatures(y);const m=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:d});_.setStyle(m),i.addLayer(_),i.getView().fit(d.getExtent())}})}const st=()=>{Z=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}),i.addLayer(Z)},it=()=>{var a=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});i.addLayer(a)},dt=a=>{let t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${a.setOf}/rest/maps/${a.name}@${a.setOf}`,cacheEnabled:!1}),name:a.name,projection:"EPSG:4326"});i.addLayer(t)};let _e=n({label:[]});const ut=a=>{X.value=a,a?(gt(),ht()):(ft(),Re())};function Lt(){if(Y.value=!Y.value,Y.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(101%,0)"}}const Et=()=>{N.value.time=ce.value[ce.value.length-1],N.value.statistical="\u9547",N.value.droughtRating="",N.value.area=0,ue.value=0,he.value=!0,Be()},Ct=()=>{te.value=!te.value;const a=ge.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const t=ee(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",t.resize()}),pt()},Nt=a=>{N.value.area=a},Be=()=>{q.value=1,ga({time:N.value.time,statistical:N.value.statistical,droughtRating:N.value.droughtRating,area:N.value.area}).then(a=>{Ke.value=[{lable:"",value:"\u533A\u57DF\u540D\u79F0"},{lable:"\u597D",value:"\u597D"},{lable:"\u8F83\u597D",value:"\u8F83\u597D"},{lable:"\u9002\u4E2D",value:"\u9002\u4E2D"},{lable:"\u8F83\u5DEE",value:"\u8F83\u5DEE"},{lable:"\u5DEE",value:"\u5DEE"}],he.value=!1,le.value=a.data,De.value=a.data.slice((q.value-1)*G.value,(q.value-1)*G.value+G.value),ve=n([]),a.data.forEach(e=>{ve.value.push({\u533A\u57DF\u540D\u79F0:e.subName,\u597D:e.good,\u8F83\u597D:e.better,\u9002\u4E2D:e.moderate,\u8F83\u5DEE:e.poor,\u5DEE:e.difference})}),C.value[0].\u597D=0,C.value[0].\u8F83\u597D=0,C.value[0].\u9002\u4E2D=0,C.value[0].\u8F83\u5DEE=0,C.value[0].\u5DEE=0,C.value[0].\u533A\u57DF\u540D\u79F0="\u5408\u8BA1",a.data.forEach(e=>{e.good&&(C.value[0].\u597D+=Number(e.good)!==NaN?Number(e.good):0),e.better&&(C.value[0].\u8F83\u597D+=Number(e.better)!==NaN?Number(e.better):0),e.moderate&&(C.value[0].\u9002\u4E2D+=Number(e.moderate)!==NaN?Number(e.moderate):0),e.poor&&(C.value[0].\u8F83\u5DEE+=Number(e.poor)!==NaN?Number(e.poor):0),e.difference&&(C.value[0].\u5DEE+=Number(e.difference)!==NaN?Number(e.difference):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=ge.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const r=ee(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",r.resize()}),pt()})},At=a=>{q.value=a,De.value=le.value.slice((q.value-1)*G.value,(q.value-1)*G.value+G.value)},$t=a=>{const t=q.value,r=G.value;return a+1+(t-1)*r},Tt=a=>{je.value+=1,re.value=[];for(const r in ne)ne[r].disabled!==!0&&re.value.push(r);P.value=re.value;for(const r in M)i.getLayers().getArray().forEach((e,o)=>{e.A.name==M[r].name&&i.getLayers().removeAt(o)});v.value=a;let t=a.name.replace(/-/g,"_");M={\u597D:{setOf:`${a.name}-zhangshi`,name:`T${t}_hao`},\u8F83\u597D:{setOf:`${a.name}-zhangshi`,name:`T${t}_jiaohao`},\u9002\u4E2D:{setOf:`${a.name}-zhangshi`,name:`T${t}_shizhong`},\u8F83\u5DEE:{setOf:`${a.name}-zhangshi`,name:`T${t}_jiaocha`},\u5DEE:{setOf:`${a.name}-zhangshi`,name:`T${t}_cha`}},P.value.forEach(r=>{dt(M[r])})},Wt=a=>{fe.value=me.value.slice((a-1)*pe.value,a*pe.value)},It=()=>{ca().then(a=>{v.value={name:a.data[a.data.length-1]},ce.value=a.data;let t=[];a.data.forEach(o=>{t.push({name:o})}),me.value=t,tt.value=Math.ceil(me.value.length/5),Me=Math.ceil(t.length/5),fe.value=me.value.slice((Me-1)*pe.value,Me*pe.value),N.value.time=a.data[a.data.length-1],Be();let e=v.value.name.replace(/-/g,"_");M={\u597D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_hao`},\u8F83\u597D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_jiaohao`},\u9002\u4E2D:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_shizhong`},\u8F83\u5DEE:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_jiaocha`},\u5DEE:{setOf:`${v.value.name}-zhangshi`,name:`T${e}_cha`}}})},Ve=(a,t)=>{He=n([]),We=n([]),bt({divisions:a,yearMonth:t}).then(r=>{for(const e in r.data[0])r.data[0][e]&&(He.value.push(e),We.value.push(r.data[0][e]));gt()})},Pe=(a,t)=>{ua({divisions:a,yearMonth:t}).then(r=>{be=n([]);let e=n([]);Ie=n(0),r.data.forEach(o=>{Ie.value=Number(o.sum);for(const s in o){s!=="sum"&&Number.isFinite(o[s])&&(be.value.push({name:s,value:o[s]}),e.value.push({date:s,name:o[s]})),e.value.forEach(f=>{o[`${f.date}Zb`]!==void 0&&(f.address=(o[`${f.date}Zb`]*100).toFixed(2)+"%")});let h=JSON.parse(JSON.stringify(e.value));h.forEach(f=>{switch(f.date){case"good":f.date="\u597D";break;case"better":f.date="\u8F83\u597D";break;case"moderate":f.date="\u9002\u4E2D";break;case"poor":f.date="\u8F83\u5DEE";break;case"difference":f.date="\u5DEE";break}}),Oe.value=h}}),ht()})},Dt=a=>{n([]),R={good:[],better:[],moderate:[],poor:[],difference:[]},Xe({yearMonth:a,divisions:window.localStorage.getItem("divisions")}).then(t=>{ot.forEach((r,e)=>{t.data.map(o=>{if(r===o.region)for(const s in o)R[s]&&R[s].push(o[s])})}),t.data.length>0&&ft()})};let jt=()=>{document.querySelector(".tool").style.display="none",st(),Z.setVisible(!1),it(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(r=>{i.getLayers().getArray().forEach((e,o)=>{(e.A.name==r||e.A.id==r)&&i.getLayers().removeAt(o)})});var t=i.getView();t.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const qe=(a,t)=>{T.value.better=[],T.value.difference=[],T.value.good=[],T.value.moderate=[],T.value.poor=[],Ue({divisions:a,yearMonth:t}).then(r=>{V.brr=r.data,V.arr=r.data.sort((s,h)=>s.subregionName.length-h.subregionName.length),V.arr.unshift({subregion:"370211",subregionName:"\u5168\u90E8"});let e=[...r.data],o=[];e.splice(0,1),e.forEach(s=>{o.indexOf(s.subregionName)==-1&&o.push(s.subregionName)}),se.title=[...Object.values(o)],se.title.forEach((s,h)=>{r.data.map(f=>{if(s===f.subregionName)return T.value.better.push(f.better),T.value.difference.push(f.difference),T.value.good.push(f.good),T.value.moderate.push(f.moderate),T.value.poor.push(f.poor),f})}),Re()})},ct=(a,t)=>{let r={good:[],better:[],difference:[],moderate:[],poor:[]};yt({divisions:a,yearMonth:t}).then(e=>{V.brr=e.data;let o=[...e.data],s=[];o.forEach(h=>{s.indexOf(h.subregionName)==-1&&s.push(h.subregionName)}),se.title=[...Object.values(s)],se.title.forEach((h,f)=>{e.data.map(b=>{if(h===b.subregionName)return r.better.push(b.better),r.difference.push(b.difference),r.good.push(b.good),r.moderate.push(b.moderate),r.poor.push(b.poor),b})}),T.value=r,Re()})},Ge=()=>{x.value!=="370211"&&(ct(x.value,v.value.name),Ve(x.value,v.value.name),Pe(x.value,v.value.name)),x.value=="370211"&&(qe("370211",v.value.name),Ve("370211",v.value.name),Pe("370211",v.value.name))};function Mt(a){let t="",r="",e="",o="",s="";r=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,t=a,e="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",o="2019-2022gaobiaozhunnongtian",s="DKMC";var h=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${o}`,attributeFilter:`${s} like '%${t}%'`},datasetNames:[`${o}:${e}`]});new ol.supermap.FeatureService(r).getFeaturesBySQL(h,function(f){if(f.result.featureCount!=0){var b=i.getLayers().getArray().find(A=>A.get("id")==="zhezhao");i.removeLayer(b);var z=i.getLayers().getArray().find(A=>A.get("id")==="gbz");i.removeLayer(z);var y=i.getLayers().getArray().find(A=>A.get("id")==="dianjigaoliang");i.removeLayer(y);var d=i.getLayers().getArray().find(A=>A.get("id")==="dianjigaoliangs");i.removeLayer(d);var _=new ol.format.GeoJSON().readFeatures(f.result.features);Fe(f.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var m=new ol.source.Vector;m.addFeatures(_);const k=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var g=new ol.layer.Vector({id:"dianjigaoliang",source:m});g.setStyle(k),i.addLayer(g),i.getView().fit(m.getExtent())}})}const Ot=a=>{let t="";V.arr.forEach(r=>{r.subregion==x.value&&(t=r.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":r.subregionName)}),bt({divisions:x.value,yearMonth:v.value.name}).then(r=>{let e=[{region:t=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":t,good:r.data[0].good,better:r.data[0].better,moderate:r.data[0].moderate,poor:r.data[0].poor,difference:r.data[0].difference}];we(e,`${e[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},Ft=a=>{let t="";V.arr.forEach(r=>{r.subregion==x.value&&(t=r.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":r.subregionName)}),qt(Oe.value,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},Bt=a=>{let t=[];Xe({yearMonth:v.value.name,divisions:"370211"}).then(r=>{r.data.forEach(e=>{t.push({region:e.region,good:e.good,better:e.better,moderate:e.moderate,poor:e.poor,difference:e.difference})}),we(t,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},Vt=a=>{let t="",r=[];V.arr.forEach(e=>{e.subregion==x.value&&(t=e.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":e.subregionName)}),x.value==="370211"?Ue({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!1}).then(e=>{e.data.forEach(o=>{r.push({region:o.subregionName,good:o.good,better:o.better,moderate:o.moderate,poor:o.poor,difference:o.difference})}),we(r,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):yt({divisions:x.value,yearMonth:v.value.name,whetherToDownload:!1}).then(e=>{e.data.forEach(o=>{r.push({region:o.subregionName,good:o.good,better:o.better,moderate:o.moderate,poor:o.poor,difference:o.difference})}),we(r,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Pt=()=>{let a=JSON.parse(JSON.stringify(C.value[0]));a.region="\u5408\u8BA1",ve.value.push(a),Gt(ve.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},Qe=(a,t)=>a.map(e=>{const o={};for(const s in e)t[s]&&(o[t[s]]=e[s]);return o}),we=(a,t="\u7528\u6237\u5217\u8868",r="Sheet1")=>{const o=Qe(a,{region:"\u533A\u57DF\u540D\u79F0",good:"\u597D(\u4EA9)",better:"\u8F83\u597D(\u4EA9)",moderate:"\u9002\u4E2D(\u4EA9)",poor:"\u8F83\u5DEE(\u4EA9)",difference:"\u5DEE(\u4EA9)"}),s=B.json_to_sheet(o),h=B.book_new();B.book_append_sheet(h,s,r),Ye(h,`${t}.xlsx`)},qt=(a,t="\u7528\u6237\u5217\u8868",r="Sheet1")=>{const o=Qe(a,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),s=B.json_to_sheet(o),h=B.book_new();B.book_append_sheet(h,s,r),Ye(h,`${t}.xlsx`)},Gt=(a,t="\u7528\u6237\u5217\u8868",r="Sheet1")=>{const o=Qe(a,{\u533A\u57DF\u540D\u79F0:"\u533A\u57DF\u540D\u79F0",\u597D:"\u597D(\u4EA9)",\u8F83\u597D:"\u8F83\u597D(\u4EA9)",\u9002\u4E2D:"\u9002\u4E2D(\u4EA9)",\u8F83\u5DEE:"\u8F83\u5DEE(\u4EA9)",\u5DEE:"\u5DEE(\u4EA9)"}),s=B.json_to_sheet(o),h=B.book_new();B.book_append_sheet(h,s,r),Ye(h,`${t}.xlsx`)};function gt(){const a=ee(Ne.value);let t=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],r=We.value,e=!1;r.length>14?e=!0:e=!1;var o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"13%",right:"5%",left:"18%",bottom:"10%"},xAxis:[{type:"category",data:t,axisLine:{lineStyle:{color:"rgba(66, 192, 255, .3)"}},axisLabel:{interval:0,margin:10,color:"rgba(153, 153, 153, 1)",textStyle:{fontSize:14},rotate:"0"},axisTick:{show:!1}}],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}},dataZoom:[{show:e,zoomLock:!0,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:r,barWidth:"15",itemStyle:{normal:{color:new oe(0,0,0,1,[{offset:0,color:"rgba(76, 183, 255, 1)"},{offset:.98,color:"rgba(62, 122, 255, 1)"}],!1),shadowColor:"rgba(5, 213, 255, 1)",shadowBlur:4,borderRadius:[20,20,0,0]}},label:{normal:{show:!0,lineHeight:10,formatter:"{c}",position:"top",textStyle:{color:"#fff",fontSize:10}}}}]};o&&a.setOption(o),window.addEventListener("resize",function(){a.resize()}),Le().listenTo(Ne.value,()=>{xe(()=>{a.resize()})})}function ht(){const a=ee(Ae.value);be.value.forEach(o=>{switch(o.name){case"good":o.name="\u597D";break;case"better":o.name="\u8F83\u597D";break;case"moderate":o.name="\u9002\u4E2D";break;case"poor":o.name="\u8F83\u5DEE";break;case"difference":o.name="\u5DEE";break}});var t=be.value;let r={color:["rgba(49, 235, 7, 1)","rgba(84, 170, 255, 1)","rgba(255, 251, 0, 1)","rgba(255, 168, 8, 1)","rgba(255, 0, 255, 1)"],title:{text:"\u603B\u9762\u79EF",subtext:`${Ie.value}\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:"10%",textStyle:{color:"#333333",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c}\u4EA9 <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["60%","81%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:t},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]}]};ze(a,r),Le().listenTo(Ae.value,()=>{xe(()=>{a.resize()})})}function ft(){const a=ee($e.value);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:ot,axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)",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:"\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:R.good,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(49, 235, 7, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(49, 235, 7, 1)"},{offset:1,color:"rgba(49, 235, 7, 1)"}])}}},{name:"\u8F83\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:R.better,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(84, 170, 255, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(84, 170, 255, 1)"},{offset:1,color:"rgba(84, 170, 255, 1)"}])}}},{name:"\u9002\u4E2D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:R.moderate,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 251, 0, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(255, 251, 0, 1)"},{offset:1,color:"rgba(255, 251, 0, 1)"}])}}},{name:"\u8F83\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:R.poor,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 168, 8, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(255, 168, 8, 1)"},{offset:1,color:"rgba(255, 168, 8, 1)"}])}}},{name:"\u5DEE",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:R.difference,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 0, 255, 1)",color:new oe(0,0,0,1,[{offset:0,color:"rgba(255, 0, 255, 1)"},{offset:1,color:"rgba(255, 0, 255, 1)"}])}}}]};a.on("click",function(e){var o=window.location.host,s=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!s.test(o)){document.querySelector(".tool").style.display="block",et.value=e.name;let h=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Mt(e.name),h.forEach(b=>{i.getLayers().getArray().forEach((z,y)=>{z.A.name==b&&i.getLayers().removeAt(y)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach(b=>{i.getLayers().getArray().forEach((z,y)=>{(z.A.name==b||z.A.id==b)&&i.getLayers().removeAt(y)})}),Z=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}),i.addLayer(Z)}}),t&&a.setOption(t,{notMerge:!0,grid:{bottom:20}}),ze(a,t),Le().listenTo($e.value,()=>{xe(()=>{a.resize()})})}function Qt(){qe("370211"),delete _e.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),x.value="370211",Ge(),Ze.value=!1,hiddenOverlayChart()}function Re(){const a=ee(Te.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"5%",containLabel:!0},tooltip:{formatter:function(e){return e.seriesName+'<span style="font-size: 14px; color: #f00;">'+e.value.toFixed(2)+"</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:se.title,inverse:!0}],series:[{type:"bar",name:"\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u597D",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(49, 235, 7, 1)"},{offset:1,color:"rgba(49, 235, 7, 1)"}]}},data:T.value.good},{type:"bar",name:"\u8F83\u597D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u597D",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(84, 170, 255, 1)"},{offset:1,color:"rgba(84, 170, 255, 1)"}]}},data:T.value.better},{type:"bar",name:"\u9002\u4E2D",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u9002\u4E2D",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, 251, 0, 1)"},{offset:1,color:"rgba(255, 251, 0, 1)"}]}},data:T.value.moderate},{type:"bar",name:"\u8F83\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F83\u5DEE",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:T.value.poor},{type:"bar",name:"\u5DEE",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5DEE",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, 0, 255, 1)"},{offset:1,color:"rgba(255, 0, 255, 1)"}]}},data:T.value.difference}]};ze(a,t),Le().listenTo(Te.value,()=>{xe(()=>{a.resize()})})}function pt(){const a=ee(ge.value);let t=[],r=[],e=[],o=[],s=[],h=[];le.value.forEach(d=>{t.push(d.subName),d.good!==null?r.push(d.good):r.push(0),d.better!==null?e.push(d.better):e.push(0),d.moderate!==null?o.push(d.moderate):o.push(0),d.poor!==null?s.push(d.poor):s.push(0),d.difference!==null?h.push(d.difference):h.push(0)});let f=10/t.length*100,b={tooltip:{trigger:"axis",formatter:function(d){let _=d[0].axisValueLabel+"</br>",m=0;for(let g=0;g<d.length;g++)m+=d[g].value,d[g].seriesName!=="\u5408\u8BA1"&&(_+=d[g].seriesName+"\uFF1A"+d[g].value+"</br>");for(let g=0;g<d.length;g++)m+=Number(d[g].value),d[g].seriesName==="\u5408\u8BA1"&&(_+="\u5408\u8BA1\uFF1A"+m);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:f,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:t},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u597D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(49, 235, 7, 1)"},data:r},{name:"\u8F83\u597D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(84, 170, 255, 1)"},data:e},{name:"\u9002\u4E2D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 251, 0, 1)"},data:o},{name:"\u8F83\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 168, 8, 1)"},data:s},{name:"\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 0, 255, 1)"},data:h}]};b.series;var z=b.tooltip;function y(d){let _=d[0].axisValueLabel+"</br>",m=0;for(let g=0;g<d.length;g++)if(d[g].seriesName!=="\u5408\u8BA1"){const k=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${d[g].color}"></span>`;m+=d[g].value,_+=k+d[g].seriesName+"\uFF1A"+d[g].value+"</br>"}for(let g=0;g<d.length;g++)d[g].seriesName==="\u5408\u8BA1"&&(_+="\u5408\u8BA1\uFF1A"+m);return _}z.formatter=y,ze(a,b)}return n({}),(a,t)=>{const r=W("el-table-column"),e=W("el-table"),o=W("el-option"),s=W("el-select"),h=W("el-icon"),f=W("el-tooltip"),b=W("el-checkbox"),z=W("el-checkbox-group"),y=W("el-collapse-item"),d=W("el-collapse"),_=W("el-button"),m=W("el-form-item"),g=W("el-input-number"),k=W("el-form"),A=W("el-pagination");return L(),O("div",fa,[l("div",pa,[ma,l("div",va,[l("div",{class:"tool",onClick:t[0]||(t[0]=c=>u(jt)())},_a),l("div",wa,[l("div",{class:ke(u(X)?"tabarS":""),onClick:t[1]||(t[1]=c=>ut(!0))},"\u9EC4\u5C9B\u533A",2),l("div",{class:ke(u(X)?"":"tabarS"),onClick:t[2]||(t[2]=c=>ut(!1))},"\u884C\u653F\u533A",2)]),H(l("div",Sa,[l("div",xa,[ka,za,l("p",{onClick:t[3]||(t[3]=c=>Ot())},[D(" \u4E0B\u8F7D \xA0 "),La])]),l("div",{ref_key:"areaDiv",ref:Ne,class:"areaDiv"},null,512)],512),[[K,u(X)]]),H(l("div",Ea,[l("div",Ca,[Na,Aa,l("p",{onClick:t[4]||(t[4]=c=>Ft())},[D(" \u4E0B\u8F7D \xA0 "),$a])]),l("div",{ref_key:"typesofDiv",ref:Ae,class:"typesofDiv"},null,512),l("div",Ta,[p(e,{data:u(Oe),style:{width:"100%,color:'red'"}},{default:S(()=>[p(r,{prop:"date",label:"\u7C7B\u578B"}),p(r,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),p(r,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])],512),[[K,u(X)]]),H(l("div",Wa,[l("div",Ia,[Da,ja,u(U)?(L(),O("p",{key:0,onClick:t[5]||(t[5]=c=>Bt())},[D(" \u4E0B\u8F7D \xA0 "),Ma])):j("",!0)]),H(l("div",{ref_key:"farmlandDiv",ref:$e,class:"farmlandDiv"},null,512),[[K,u(U)]]),u(U)?j("",!0):(L(),O("div",Oa,Ba))],512),[[K,!u(X)]]),H(l("div",Va,[l("div",Pa,[qa,Ga,l("p",{onClick:t[6]||(t[6]=c=>Vt())},[D(" \u4E0B\u8F7D \xA0 "),Qa])]),u(U)?(L(),I(s,{key:0,"popper-class":"select_citys",style:{width:"300px"},onChange:t[7]||(t[7]=c=>Ge(a.item)),modelValue:x.value,"onUpdate:modelValue":t[8]||(t[8]=c=>x.value=c),placeholder:"\u5168\u90E8"},{default:S(()=>[(L(!0),O(ie,null,de(u(V).arr,c=>(L(),I(o,{key:c.subregion,label:c.subregionName,value:c.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):j("",!0),l("div",{ref_key:"ASdivisionDiv",ref:Te,class:"ASdivision"},null,512)],512),[[K,!u(X)]]),l("div",{class:"rightFoldDiv",onClick:t[9]||(t[9]=c=>Lt())},[p(f,{disabled:!u(Y),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[u(Y)?(L(),I(h,{key:0},{default:S(()=>[Ra]),_:1})):j("",!0)]),_:1},8,["disabled"]),p(f,{disabled:u(Y),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[u(Y)?j("",!0):(L(),I(h,{key:0},{default:S(()=>[Ja]),_:1}))]),_:1},8,["disabled"])])]),l("div",Ya,[u(fe).length>0?(L(),I(da,{key:0,dataSource:u(fe),onDataHandle:Tt,allCount:u(tt),onGetcurrentPage:Wt},null,8,["dataSource","allCount"])):j("",!0)]),l("div",Xa,[Ua,l("div",Za,[l("div",Ha,[l("div",Ka,[eo,l("span",null,F(u(Q).good)+"\u4EA9",1)]),l("div",to,[ao,l("span",null,F(u(Q).better)+"\u4EA9",1)])]),l("div",oo,[l("div",ro,[lo,l("span",null,F(u(Q).moderate)+"\u4EA9",1)]),l("div",no,[so,l("span",null,F(u(Q).poor)+"\u4EA9",1)])]),l("div",io,[l("div",uo,[co,l("span",null,F(u(Q).difference)+"\u4EA9",1)])])]),go]),l("div",ho,[(L(!0),O(ie,null,de(u(_e).label,(c,$)=>(L(),O("div",{key:$},[l("div",null,F(c.crop)+"\uFF1A",1),l("div",null,F(c.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),u(_e).XZQMC?(L(),O("div",fo,[po,l("div",null,F(u(_e).XZQMC),1)])):j("",!0),l("div",{class:"cancel",onClick:t[10]||(t[10]=(...c)=>a.hiddenOverlayChart&&a.hiddenOverlayChart(...c))},"X")]),p(d,{class:"legend",accordion:""},{default:S(()=>[p(y,{name:"1"},{title:S(()=>[D("\u56FE\u4F8B")]),default:S(()=>[l("div",mo,[p(z,{modelValue:u(P),"onUpdate:modelValue":t[11]||(t[11]=c=>ea(P)?P.value=c:P=c),onChange:_t},{default:S(()=>[(L(!0),O(ie,null,de(u(ne),(c,$,Se)=>(L(),I(b,{key:Se,"v-model":c.disabled,disabled:c.disabled,label:$},{default:S(()=>[l("span",{style:ta({background:c.color,border:`1px solid ${c.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),D(" "+F($),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Ze.value?(L(),I(_,{key:0,class:"back_button",onClick:t[12]||(t[12]=c=>Qt())},{default:S(()=>[D("\u8FD4\u56DE")]),_:1})):j("",!0)]),l("div",vo,[l("div",bo,[p(k,{inline:!0,model:u(N),class:"demo-form-inline"},{default:S(()=>[p(m,{label:"\u65F6\u95F4:"},{default:S(()=>[p(s,{"popper-class":"selectCity",modelValue:u(N).time,"onUpdate:modelValue":t[13]||(t[13]=c=>u(N).time=c),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[(L(!0),O(ie,null,de(u(ce),(c,$)=>(L(),I(o,{key:$,label:a.Zitem,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),p(m,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:S(()=>[p(s,{"popper-class":"selectCity",modelValue:u(N).statistical,"onUpdate:modelValue":t[14]||(t[14]=c=>u(N).statistical=c),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[p(o,{label:"\u9547\u7EA7",value:"\u9547"}),p(o,{label:"\u6751\u7EA7",value:"\u6751"}),u(U)?(L(),I(o,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):j("",!0)]),_:1},8,["modelValue"])]),_:1}),p(m,{label:"\u957F\u52BF\u7B49\u7EA7"},{default:S(()=>[p(s,{modelValue:u(N).droughtRating,"onUpdate:modelValue":t[15]||(t[15]=c=>u(N).droughtRating=c),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[p(o,{label:"\u5168\u90E8",value:""}),p(o,{label:"\u597D",value:"\u597D"}),p(o,{label:"\u8F83\u597D",value:"\u8F83\u597D"}),p(o,{label:"\u9002\u4E2D",value:"\u9002\u4E2D"}),p(o,{label:"\u8F83\u5DEE",value:"\u8F83\u5DEE"}),p(o,{label:"\u5DEE",value:"\u5DEE"})]),_:1},8,["modelValue"])]),_:1}),p(m,{label:"\u9762\u79EF(\u4EA9)>"},{default:S(()=>[p(g,{modelValue:ue.value,"onUpdate:modelValue":t[16]||(t[16]=c=>ue.value=c),min:0,onChange:Nt},null,8,["modelValue"])]),_:1}),p(m,null,{default:S(()=>[p(_,{type:"primary",onClick:Be},{default:S(()=>[D("\u67E5\u8BE2")]),_:1}),p(_,{plain:"",onClick:Et},{default:S(()=>[D("\u91CD\u7F6E")]),_:1}),u(he)?j("",!0):(L(),I(_,{key:0,type:"primary",text:"",onClick:Pt},{default:S(()=>[yo,D(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:Ct},[l("div",{class:ke(u(te)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:ke(u(te)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),H(l("div",_o,[l("div",wo,[u(he)?j("",!0):(L(),I(e,{key:0,data:u(C),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[p(r,{prop:"",width:"80"}),(L(!0),O(ie,null,de(u(Ke),(c,$)=>(L(),I(r,{key:$,prop:c.value,label:$==0?c.lable:c.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),p(e,{data:u(De),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:S(()=>[p(r,{type:"index",width:"80",label:"\u5E8F\u53F7",index:$t}),p(r,{prop:"subName",label:"\u533A\u57DF\u540D\u79F0"}),p(r,{prop:"good",label:"\u597D(\u4EA9)"}),p(r,{prop:"better",label:"\u8F83\u597D(\u4EA9)"}),p(r,{prop:"moderate",label:"\u9002\u4E2D(\u4EA9)"}),p(r,{prop:"poor",label:"\u8F83\u5DEE(\u4EA9)"}),p(r,{prop:"difference",label:"\u5DEE(\u4EA9)"})]),_:1},8,["data"]),l("div",So,[D(" \u5171"+F(le.value.length)+"\u6761 ",1),p(A,{background:"",layout:"prev, pager, next",total:le.value.length,"current-page":u(q),"page-size":u(G),onCurrentChange:At},null,8,["total","current-page","page-size"])])],512),[[K,u(te)]]),H(l("div",xo,[l("div",{ref_key:"chartModeDiv",ref:ge,class:"chartModeDiv"},null,512)],512),[[K,!u(te)]])])])}}},qo=Xt(ko,[["__scopeId","data-v-74504acd"]]);export{qo as default};