Agriculture-front-end/dist/assets/Site.9ffb2b74.js
2024-05-30 09:20:30 +08:00

2 lines
46 KiB
JavaScript

import{O as R,_ as Ut,u as Xt,r as n,G as vt,a1 as Re,t as Zt,F as Ht,a9 as Kt,R as xe,d as j,o as L,c as F,k as l,f as u,N as ke,I as H,K,m as T,e as p,w as S,l as I,j as D,U as ie,V as de,y as M,H as ea,M as ta,p as aa,q as oa}from"./index.9c864c60.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.5edff79b.js";import{T as da}from"./TimeLine.a8e7fc26.js";import{u as O,w as Ye}from"./xlsx.86b9426e.js";import{u as ze}from"./useEcharts.b0697ce5.js";import"./linesGL.ef5bef0f.js";import{e as Le}from"./element-resize-detector.ff2fdb0d.js";import{ai as ee,bj as oe}from"./linkSeriesData.77e8a68a.js";/* empty css */import"./browser-detector.e77caf03.js";function bt(E){return R({url:"crops/farmland",method:"get",params:E})}function ua(E){return R({url:"crops/statistics",method:"get",params:E})}function Ue(E){return R({url:"crops/highStandards",method:"get",params:E})}function Xe(E){return R({url:"crops/gradeStatistics",method:"get",params:E})}function yt(E){return R({url:"crops/administrativeDivisions",method:"get",params:E})}function ca(E){return R({url:"crops/growthTime",method:"get",params:E})}function ga(E){return R({url:"crops/growthList",method:"get",params:E})}function ha(E){return R({url:"crops/administrativeDivisionsChun",method:"get",params:E})}const w=E=>(aa("data-v-fe5544ef"),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)),Wa={class:"tableDiv"},ja={class:"rightTop"},Da={class:"title"},Ta=w(()=>l("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ia=w(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Ba=w(()=>l("img",{src:Ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Fa={key:0},Ma=w(()=>l("img",{src:la},null,-1)),Oa=[Ma],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)),Ja=w(()=>l("img",{src:na},null,-1)),Ra=w(()=>l("img",{src:sa},null,-1)),Ya={class:"bottom_center"},Ua={id:"popup",class:"ol-popup"},Xa=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=Xt();n(null);const Ne=n(null),Ae=n(null),$e=n(null);n(null);const We=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([]),je=n([]),De=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),Te=n([]),Ke=n([]),he=n(!0);n(null),n(null),n("");let Q=n([]),fe=n([]),v=n(""),et=n(""),Ie=n(0),tt=n([]),Be=n(""),pe=n(5),me=n([]),U=n(!0),X=!(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"],J={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}},B={},rt=0;Re(()=>x.value,()=>{Ge()}),Re(()=>v.value,(a,t)=>{x.value=window.localStorage.getItem("divisions"),Ve(x.value,v.value.name),Pe(x.value,v.value.name),X?qe(x.value,v.value.name):ct(x.value,v.value.name),Tt(v.value.name);let e=v.value.name.replace(/-/g,"_");B={\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=()=>{Ie.value=0};Re(()=>P.value,(a,t)=>{a.length>t.length&&Ie.value<1?a.filter(e=>{if(t.findIndex(s=>s===e)<0)return e}).forEach(e=>{B[e]&&dt(B[e])}):a.length<t.length&&t.filter(e=>{if(a.findIndex(s=>s===e)<0)return e}).forEach(e=>{B[e]&&i.getLayers().getArray().forEach((o,s)=>{o.A.name&&o.A.name==B[e].name&&i.getLayers().removeAt(s)})}),rt++,rt==1&&(st(),it())});var se={title:[]};let W=n({good:[],better:[],difference:[],moderate:[],poor:[]}),Z=n(null),Fe=n([]);Zt(()=>{wt()});function wt(){Dt(),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.flag?"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(X){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(),Jt=i.getView().getZoom();Se.animate({center:[c,$],duration:1e3});let mt=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Rt=>{i.getLayers().getArray().forEach((Yt,Eo)=>{if(Rt==Yt.A.name){mt=!0;return}})}),mt?Jt>=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,Xe({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;Ue({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,Me(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 Me(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);Me(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=>{U.value=a,a?(gt(),ht()):(ft(),Je())};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,Oe()},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},Oe=()=>{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,Te.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,Te.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},Wt=a=>{Ie.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 B)i.getLayers().getArray().forEach((e,o)=>{e.A.name==B[r].name&&i.getLayers().removeAt(o)});v.value=a;let t=a.name.replace(/-/g,"_");B={\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(B[r])})},jt=a=>{fe.value=me.value.slice((a-1)*pe.value,a*pe.value)},Dt=()=>{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),Be=Math.ceil(t.length/5),fe.value=me.value.slice((Be-1)*pe.value,Be*pe.value),N.value.time=a.data[a.data.length-1],Oe();let e=v.value.name.replace(/-/g,"_");B={\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([]),je=n([]),bt({divisions:a,yearMonth:t}).then(r=>{for(const e in r.data[0])r.data[0][e]&&(He.value.push(e),je.value.push(r.data[0][e]));gt()})},Pe=(a,t)=>{ua({divisions:a,yearMonth:t}).then(r=>{be=n([]);let e=n([]);De=n(0),r.data.forEach(o=>{De.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}}),Fe.value=h}}),ht()})},Tt=a=>{n([]),J={good:[],better:[],moderate:[],poor:[],difference:[]},Ue({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)J[s]&&J[s].push(o[s])})}),t.data.length>0&&ft()})};let It=()=>{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)=>{W.value.better=[],W.value.difference=[],W.value.good=[],W.value.moderate=[],W.value.poor=[],Xe({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 W.value.better.push(f.better),W.value.difference.push(f.difference),W.value.good.push(f.good),W.value.moderate.push(f.moderate),W.value.poor.push(f.poor),f})}),Je()})},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})}),W.value=r,Je()})},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 Bt(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);Me(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 Ft=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")})},Mt=a=>{let t="";V.arr.forEach(r=>{r.subregion==x.value&&(t=r.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":r.subregionName)}),qt(Fe.value,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},Ot=a=>{let t=[];Ue({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"?Xe({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=O.json_to_sheet(o),h=O.book_new();O.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=O.json_to_sheet(o),h=O.book_new();O.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=O.json_to_sheet(o),h=O.book_new();O.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=je.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:`${De.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:J.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:J.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:J.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:J.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:J.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"];Bt(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 Je(){const a=ee(We.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:W.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:W.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:W.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:W.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:W.value.difference}]};ze(a,t),Le().listenTo(We.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=j("el-table-column"),e=j("el-table"),o=j("el-option"),s=j("el-select"),h=j("el-icon"),f=j("el-tooltip"),b=j("el-checkbox"),z=j("el-checkbox-group"),y=j("el-collapse-item"),d=j("el-collapse"),_=j("el-button"),m=j("el-form-item"),g=j("el-input-number"),k=j("el-form"),A=j("el-pagination");return L(),F("div",fa,[l("div",pa,[ma,l("div",va,[l("div",{class:"tool",onClick:t[0]||(t[0]=c=>u(It)())},_a),l("div",wa,[l("div",{class:ke(u(U)?"tabarS":""),onClick:t[1]||(t[1]=c=>ut(!0))},"\u9EC4\u5C9B\u533A",2),l("div",{class:ke(u(U)?"":"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=>Ft())},[T(" \u4E0B\u8F7D \xA0 "),La])]),l("div",{ref_key:"areaDiv",ref:Ne,class:"areaDiv"},null,512)],512),[[K,u(U)]]),H(l("div",Ea,[l("div",Ca,[Na,Aa,l("p",{onClick:t[4]||(t[4]=c=>Mt())},[T(" \u4E0B\u8F7D \xA0 "),$a])]),l("div",{ref_key:"typesofDiv",ref:Ae,class:"typesofDiv"},null,512),l("div",Wa,[p(e,{data:u(Fe),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(U)]]),H(l("div",ja,[l("div",Da,[Ta,Ia,u(X)?(L(),F("p",{key:0,onClick:t[5]||(t[5]=c=>Ot())},[T(" \u4E0B\u8F7D \xA0 "),Ba])):I("",!0)]),H(l("div",{ref_key:"farmlandDiv",ref:$e,class:"farmlandDiv"},null,512),[[K,u(X)]]),u(X)?I("",!0):(L(),F("div",Fa,Oa))],512),[[K,!u(U)]]),H(l("div",Va,[l("div",Pa,[qa,Ga,l("p",{onClick:t[6]||(t[6]=c=>Vt())},[T(" \u4E0B\u8F7D \xA0 "),Qa])]),u(X)?(L(),D(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),F(ie,null,de(u(V).arr,c=>(L(),D(o,{key:c.subregion,label:c.subregionName,value:c.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):I("",!0),l("div",{ref_key:"ASdivisionDiv",ref:We,class:"ASdivision"},null,512)],512),[[K,!u(U)]]),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(),D(h,{key:0},{default:S(()=>[Ja]),_:1})):I("",!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)?I("",!0):(L(),D(h,{key:0},{default:S(()=>[Ra]),_:1}))]),_:1},8,["disabled"])])]),l("div",Ya,[u(fe).length>0?(L(),D(da,{key:0,dataSource:u(fe),onDataHandle:Wt,allCount:u(tt),onGetcurrentPage:jt},null,8,["dataSource","allCount"])):I("",!0)]),l("div",Ua,[Xa,l("div",Za,[l("div",Ha,[l("div",Ka,[eo,l("span",null,M(u(Q).good)+"\u4EA9",1)]),l("div",to,[ao,l("span",null,M(u(Q).better)+"\u4EA9",1)])]),l("div",oo,[l("div",ro,[lo,l("span",null,M(u(Q).moderate)+"\u4EA9",1)]),l("div",no,[so,l("span",null,M(u(Q).poor)+"\u4EA9",1)])]),l("div",io,[l("div",uo,[co,l("span",null,M(u(Q).difference)+"\u4EA9",1)])])]),go]),l("div",ho,[(L(!0),F(ie,null,de(u(_e).label,(c,$)=>(L(),F("div",{key:$},[l("div",null,M(c.crop)+"\uFF1A",1),l("div",null,M(c.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),u(_e).XZQMC?(L(),F("div",fo,[po,l("div",null,M(u(_e).XZQMC),1)])):I("",!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(()=>[T("\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),F(ie,null,de(u(ne),(c,$,Se)=>(L(),D(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),T(" "+M($),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Ze.value?(L(),D(_,{key:0,class:"back_button",onClick:t[12]||(t[12]=c=>Qt())},{default:S(()=>[T("\u8FD4\u56DE")]),_:1})):I("",!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),F(ie,null,de(u(ce),(c,$)=>(L(),D(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(X)?(L(),D(o,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):I("",!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:Oe},{default:S(()=>[T("\u67E5\u8BE2")]),_:1}),p(_,{plain:"",onClick:Et},{default:S(()=>[T("\u91CD\u7F6E")]),_:1}),u(he)?I("",!0):(L(),D(_,{key:0,type:"primary",text:"",onClick:Pt},{default:S(()=>[yo,T(" \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)?I("",!0):(L(),D(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),F(ie,null,de(u(Ke),(c,$)=>(L(),D(r,{key:$,prop:c.value,label:$==0?c.lable:c.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),p(e,{data:u(Te),"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,[T(" \u5171"+M(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=Ut(ko,[["__scopeId","data-v-fe5544ef"]]);export{qo as default};