import{K as R,_ as Pt,u as Rt,r as s,D as st,x as Me,t as Yt,X as Xt,v as Ht,M as ve,d as A,o as z,c as T,k as l,m as $,e as p,w,f,l as j,j as B,P as ne,Q as se,y as F,F as Zt,I as Ut,J as it,G as dt,H as ut,p as Kt,q as ea}from"./index.db81687b.js";import _e from"./downloads.4cdbbcc5.js";import{_ as we}from"./linesGL.99030c5a.js";import{_ as ta}from"./fh.5fefbcf9.js";import{_ as ie}from"./icon.d0cb5387.js";import{_ as aa}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as oa}from"./TimeLine.5d80dd5c.js";import{u as q,w as Ve}from"./xlsx.86b9426e.js";import{u as be}from"./useEcharts.7cdde45a.js";import{e as ye}from"./element-resize-detector.d8720798.js";import{i as Z,L as ee}from"./install.49294472.js";/* empty css */function ct(L){return R({url:"crops/farmland",method:"get",params:L})}function ra(L){return R({url:"crops/statistics",method:"get",params:L})}function qe(L){return R({url:"crops/highStandards",method:"get",params:L})}function Ge(L){return R({url:"crops/gradeStatistics",method:"get",params:L})}function ft(L){return R({url:"crops/administrativeDivisions",method:"get",params:L})}function la(L){return R({url:"crops/growthTime",method:"get",params:L})}function na(L){return R({url:"crops/growthList",method:"get",params:L})}function sa(L){return R({url:"crops/administrativeDivisionsChun",method:"get",params:L})}const S=L=>(Kt("data-v-ccdbd20b"),L=L(),ea(),L),ia={class:"fatherDiv"},da={class:"centerBox"},ua=S(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ca={class:"leftWra"},fa={class:"leftTop"},ha={class:"title"},ga=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),pa=S(()=>l("img",{src:_e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ma={class:"leftbottom"},va={class:"title"},ba=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ya=S(()=>l("img",{src:_e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),_a={class:"tableDiv"},wa={key:0,src:we,alt:""},Sa={key:0,class:"imgrotate",src:we,alt:""},xa={class:"rightWra"},ka=S(()=>l("img",{src:ta},null,-1)),za=S(()=>l("span",null,"\u8FD4\u56DE",-1)),La=[ka,za],Ca={class:"rightTop"},Ea={class:"title"},Na=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Da=S(()=>l("img",{src:_e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Wa={class:"rightbottom"},Aa={class:"title"},Ta=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),ja=S(()=>l("img",{src:_e,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),$a={key:0,src:we,alt:""},Ba={key:0,class:"imgrotate",src:we,alt:""},Fa={class:"bottom_center"},Oa={id:"popup",class:"ol-popup"},Ma=S(()=>l("div",{class:"pophead",style:{width:"100%"}},[l("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),l("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Va={id:"popup-content",style:{padding:"10px"}},qa={class:"perform"},Ga={class:"perform_children"},Ia=S(()=>l("img",{src:ie},null,-1)),Qa=S(()=>l("span",{class:"label"},"\u597D\uFF1A",-1)),Ja={class:"perform_children"},Pa=S(()=>l("img",{src:ie},null,-1)),Ra=S(()=>l("span",{class:"label"},"\u8F83\u597D\uFF1A",-1)),Ya={class:"perform"},Xa={class:"perform_children"},Ha=S(()=>l("img",{src:ie},null,-1)),Za=S(()=>l("span",{class:"label"},"\u9002\u4E2D\uFF1A",-1)),Ua={class:"perform_children"},Ka=S(()=>l("img",{src:ie},null,-1)),eo=S(()=>l("span",{class:"label"},"\u8F83\u5DEE\uFF1A",-1)),to={class:"perform"},ao={class:"perform_children"},oo=S(()=>l("img",{src:ie},null,-1)),ro=S(()=>l("span",{class:"label"},"\u5DEE\uFF1A",-1)),lo=S(()=>l("div",{id:"popup-pagination"},null,-1)),no={id:"pop"},so={key:0},io=S(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),uo={class:"mt-4"},co={class:"tabulation"},fo={class:"searchDiv"},ho=S(()=>l("img",{src:aa,alt:""},null,-1)),go={class:"tableBox"},po={class:"tableBorder"},mo={class:"example-pagination-block"},vo={class:"chartMode"},bo={__name:"Site",setup(L){const Ie=Rt();s(null);const Se=s(null),xe=s(null),ke=s(null);s(null);const ze=s(null),x=s("");x.value=window.localStorage.getItem("divisions");const ht=s(null);let G=st({arr:[],brr:[],crr:[]});st({arr:[]}),s({}),s([]),s([]);const Qe=s(!1);let Y=s(!0),X=s(!0);s("{x:765,y:191}");let Je=s([]),Le=s([]),Ce=s(0);s([]);let O=s(["false"]),te=s([]);const Ee=s(0);let Ne=s([]),U=s(!0);const de=s(null);let I=s(1),Q=s(12),De=s([]),Pe=s([]),ue=s(!0);s(null),s(null),s("");let J=s([]),We=s([]),m=s(""),Re=s(""),ae=!(window.localStorage.getItem("divisions").length>6),Ye=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),C=s([{\u597D:0,\u8F83\u597D:0,\u9002\u4E2D:0,\u8F83\u5DEE:0,\u5DEE:0}]),ce=s([]),Xe=["2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2020\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2021\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A5","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A6","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A7"],P={good:[],better:[],moderate:[],poor:[],difference:[]};const oe=s([]);let E=s({time:"",statistical:"\u9547",droughtRating:"",area:Ee.value}),fe=s([]),re={\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={\u597D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_hao"},\u8F83\u597D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_jiaohao"},\u9002\u4E2D:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_shizhong"},\u8F83\u5DEE:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_jiaocha"},\u5DEE:{setOf:"2022-08-05-zhangshi",name:"T2022_08_05_cha"}},He=0;Me(()=>x.value,()=>{Fe()}),Me(()=>m.value,(a,t)=>{x.value=window.localStorage.getItem("divisions"),je(x.value,m.value.name),$e(x.value,m.value.name),ae?Be(x.value,m.value.name):at(x.value,m.value.name),Nt(m.value.name);let e=m.value.name.replace(/-/g,"_");M={\u597D:{setOf:`${m.value.name}-zhangshi`,name:`T${e}_hao`},\u8F83\u597D:{setOf:`${m.value.name}-zhangshi`,name:`T${e}_jiaohao`},\u9002\u4E2D:{setOf:`${m.value.name}-zhangshi`,name:`T${e}_shizhong`},\u8F83\u5DEE:{setOf:`${m.value.name}-zhangshi`,name:`T${e}_jiaocha`},\u5DEE:{setOf:`${m.value.name}-zhangshi`,name:`T${e}_cha`}};for(const r in O.value)tt(M[O.value[r]])}),Me(()=>O.value,(a,t)=>{a.length>t.length?a.filter(e=>{if(t.findIndex(n=>n===e)<0)return e}).forEach(e=>{M[e]&&tt(M[e])}):a.length{if(a.findIndex(n=>n===e)<0)return e}).forEach(e=>{M[e]&&d.getLayers().getArray().forEach((r,n)=>{r.A.name&&r.A.name==M[e].name&&d.getLayers().removeAt(n)})}),He++,He==1&&(Ke(),et())});var le={title:[]};let D=s({good:[],better:[],difference:[],moderate:[],poor:[]}),H=s(null);const gt=()=>{};let Ae=s([]);Yt(()=>{pt()});function pt(){Et(),mt(),vt(),bt();for(const a in re)re[a].disabled!==!0&&te.value.push(a);O.value=te.value,localStorage.setItem(Ie.currentRoute.value.path,!0)}Xt(()=>{localStorage.getItem(Ie.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 d=s(null);s(null),s(null);let Ze=s(null),he=s(null);function mt(){var a=document.querySelector(".centerBox"),t=document.getElementById("cesiumContainer");d=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),d.on("moveend",function(e){var r=d.getView().getZoom();r>=13?H.setVisible(!0):H.setVisible(!1)}),d.on("singleclick",function(e){var r=e.coordinate;if(ae){var n=r[0],c=r[1],g=d.getView(),b=d.getView().getZoom();g.animate({center:[n,c],duration:1e3});let N=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(u=>{d.getLayers().getArray().forEach((y,v)=>{if(u==y.A.name){N=!0;return}})}),N)b>=13?K(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):K(e,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547");else{let u="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",y=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Re.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(u).getFeaturesBySQL(y,function(v){let h=new ol.format.GeoJSON().readFeatures(v.result.features),k=new ol.source.Vector;k.addFeatures(h);let W=new ol.layer.Vector({source:k}).getSource().getFeatures();for(var V=0;V{d.getLayers().getArray().forEach((Jt,wo)=>{if(Qt==Jt.A.name){nt=!0;return}})}),nt?It>=13?K(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):K(e,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547"):K(e,"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian","http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian","\u9AD8\u6807\u51C6")}})}});var o=new ResizeObserver(function(e){e.forEach(function(r){var n=r.contentRect.width,c=r.contentRect.height;t.style.width=n+"px",t.style.height=c+"px",d.updateSize()})});o.observe(a),yt(Ye)}function vt(){Ht.get("/json/huangdao.json").then(({data:a})=>{const o=new ol.format.GeoJSON().readFeatures(a)[0];ge(o.getGeometry().getCoordinates(),"huandao")})}function K(a,t,o,e){var r=new ol.geom.Point(a.coordinate),n=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:r});let c=[],g=document.querySelector("#popup-title"),b=s(null),N=s(null);new ol.supermap.QueryService(o).queryByGeometry(n,function(_){let u="";if(N=d.getLayers().getArray().find(v=>v.get("id")==="zhezhao"),d.removeLayer(N),e=="\u9547"){let v=_.result.recordsets[0].features.features[0].properties.XJQYDM;x.value=v,Ge({divisions:"370211",yearMonth:m.value.name}).then(h=>{h.data.forEach(k=>{k.subregion==v&&(u=k.subregionName,J.value=k)}),y()})}else if(e=="\u6751"){let v=_.result.recordsets[0].features.features[0].properties.CJQYDM;sa({divisions:v,yearMonth:m.value.name}).then(h=>{h.data.forEach(k=>{J.value=k}),u=h.data[0].subregionName,y()})}else if(e=="\u9AD8\u6807\u51C6"&&_.result.recordsets[0].features.features[0].properties.DKMC){let v=_.result.recordsets[0].features.features[0].properties.DKMC;qe({divisions:"370211",yearMonth:m.value.name}).then(h=>{h.data.forEach(k=>{k.region==v&&(J.value=k)}),u=v,y()})}function y(v){if(_.result.currentCount>0){_.result.recordsets[0].features&&(he.setPosition(r.flatCoordinates),g.innerHTML=u),b=d.getLayers().getArray().find(V=>V.get("id")==="dianjigaoliang"),d.removeLayer(b);var h=new ol.format.GeoJSON().readFeatures(_.result.recordsets[0].features);c=_.result.recordsets[0].features.features[0].geometry.coordinates,ge(_.result.recordsets[0].features.features[0].geometry.coordinates);var k=new ol.source.Vector;k.addFeatures(h);const W=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var i=new ol.layer.Vector({id:"dianjigaoliang",source:k,zIndex:9999});i.setStyle(W),d.addLayer(i)}}}),Ze.addEventListener("click",function(){N=d.getLayers().getArray().find(_=>_.get("id")==="zhezhao"),d.removeLayer(N),Ue(c),x.value=window.localStorage.getItem("divisions"),b=d.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliang"),d.removeLayer(b),b=d.getLayers().getArray().find(_=>_.get("id")==="gao"),d.removeLayer(b),he.setPosition(void 0)})}function ge(a,t,o,e){let r=new ol.source.Vector;var n=new ol.layer.Vector({id:t||"zhezhao",source:r,zIndex:e||50,style:new ol.style.Style({fill:new ol.style.Fill({color:o||"rgba( 105, 105, 105, 0.9)"})})});const c=Ue(a),g=new ol.Feature({geometry:c});n.getSource().addFeature(g),d.addLayer(n)}function Ue(a){const t=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(t);return a.forEach(r=>{const n=new ol.geom.LinearRing(r[0]);o.appendLinearRing(n)}),o}const bt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ze=document.getElementById("popup-closer"),he=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),d.addOverlay(he)};function yt(a){let t="",o="",e="",r="",n="";o="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",t=a,e="XJQY3702112019WGS84",r="huangdaoqu_bianjie",n="XJQYMC";var c=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${r}`,attributeFilter:`${n} like '%${t}%'`},datasetNames:[`${r}:${e}`]});new ol.supermap.FeatureService(o).getFeaturesBySQL(c,function(g){if(g.result.featureCount!=0){var b=d.getLayers().getArray().find(h=>h.get("id")==="zhezhao");d.removeLayer(b);var N=d.getLayers().getArray().find(h=>h.get("id")==="dianjigaoliang");d.removeLayer(N);var _=new ol.format.GeoJSON().readFeatures(g.result.features);ge(g.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var u=new ol.source.Vector;u.addFeatures(_);const v=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var y=new ol.layer.Vector({id:"dianjigaoliang",source:u});y.setStyle(v),d.addLayer(y),d.getView().fit(u.getExtent())}})}const Ke=()=>{H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),d.addLayer(H)},et=()=>{var a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});d.addLayer(a)},tt=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"});d.addLayer(t)};let pe=s({label:[]});function _t(){if(Y.value=!Y.value,Y.value){let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(0,0)")}else{let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)")}}function wt(){if(X.value=!X.value,X.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(107%,0)"}}const St=()=>{E.value.time=Ne.value[0],E.value.statistical="\u9547",E.value.droughtRating="",E.value.area=0,ue.value=!0,Te()},xt=()=>{U.value=!U.value;const a=de.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const t=Z(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",t.resize()}),rt()},kt=a=>{E.value.area=a},Te=()=>{I.value=1,na({time:E.value.time,statistical:E.value.statistical,droughtRating:E.value.droughtRating,area:E.value.area}).then(a=>{Pe.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"}],ue.value=!1,oe.value=a.data,De.value=a.data.slice((I.value-1)*Q.value,(I.value-1)*Q.value+Q.value),ce=s([]),a.data.forEach(e=>{ce.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=de.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const o=Z(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",o.resize()}),rt()})},zt=a=>{I.value=a,De.value=oe.value.slice((I.value-1)*Q.value,(I.value-1)*Q.value+Q.value)},Lt=a=>{const t=I.value,o=Q.value;return a+1+(t-1)*o},Ct=a=>{te.value=[];for(const t in re)re[t].disabled!==!0&&te.value.push(t);O.value=te.value;for(const t in M)d.getLayers().getArray().forEach((o,e)=>{o.A.name==M[t].name&&d.getLayers().removeAt(e)});m.value=a},Et=()=>{la().then(a=>{m.value={name:a.data[0]},a.data.forEach(e=>{We.value.push({name:e})}),Ne.value=a.data,E.value.time=a.data[0],Te();let o=m.value.name.replace(/-/g,"_");M={\u597D:{setOf:`${m.value.name}-zhangshi`,name:`T${o}_hao`},\u8F83\u597D:{setOf:`${m.value.name}-zhangshi`,name:`T${o}_jiaohao`},\u9002\u4E2D:{setOf:`${m.value.name}-zhangshi`,name:`T${o}_shizhong`},\u8F83\u5DEE:{setOf:`${m.value.name}-zhangshi`,name:`T${o}_jiaocha`},\u5DEE:{setOf:`${m.value.name}-zhangshi`,name:`T${o}_cha`}}})},je=(a,t)=>{Je=s([]),Le=s([]),ct({divisions:a,yearMonth:t}).then(o=>{for(const e in o.data[0])o.data[0][e]&&(Je.value.push(e),Le.value.push(o.data[0][e]));Mt()})},$e=(a,t)=>{ra({divisions:a,yearMonth:t}).then(o=>{fe=s([]);let e=s([]);Ce=s(0),o.data.forEach(r=>{Ce.value=Number(r.sum);for(const n in r){n!=="sum"&&Number.isFinite(r[n])&&(fe.value.push({name:n,value:r[n]}),e.value.push({date:n,name:r[n]})),e.value.forEach(g=>{r[`${g.date}Zb`]!==void 0&&(g.address=(r[`${g.date}Zb`]*100).toFixed(2)+"%")});let c=JSON.parse(JSON.stringify(e.value));c.forEach(g=>{switch(g.date){case"good":g.date="\u597D";break;case"better":g.date="\u8F83\u597D";break;case"moderate":g.date="\u9002\u4E2D";break;case"poor":g.date="\u8F83\u5DEE";break;case"difference":g.date="\u5DEE";break}}),Ae.value=c}}),Vt()})},Nt=a=>{s([]),P={good:[],better:[],moderate:[],poor:[],difference:[]},qe({yearMonth:a,divisions:window.localStorage.getItem("divisions")}).then(t=>{Xe.forEach((o,e)=>{t.data.map(r=>{if(o===r.region)for(const n in r)P[n]&&P[n].push(r[n])})}),t.data.length>0&&qt()})};let Dt=()=>{document.querySelector(".tool").style.display="none",Ke(),H.setVisible(!1),et(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(o=>{d.getLayers().getArray().forEach((e,r)=>{(e.A.name==o||e.A.id==o)&&d.getLayers().removeAt(r)})});var t=d.getView();t.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const Be=(a,t)=>{D.value.better=[],D.value.difference=[],D.value.good=[],D.value.moderate=[],D.value.poor=[],Ge({divisions:a,yearMonth:t}).then(o=>{G.brr=o.data,G.arr=o.data.sort((n,c)=>n.subregionName.length-c.subregionName.length),G.arr.unshift({subregion:"370211",subregionName:"\u5168\u90E8"});let e=[...o.data],r=[];e.splice(0,1),e.forEach(n=>{r.indexOf(n.subregionName)==-1&&r.push(n.subregionName)}),le.title=[...Object.values(r)],le.title.forEach((n,c)=>{o.data.map(g=>{if(n===g.subregionName)return D.value.better.push(g.better),D.value.difference.push(g.difference),D.value.good.push(g.good),D.value.moderate.push(g.moderate),D.value.poor.push(g.poor),g})}),ot()})},at=(a,t)=>{let o={good:[],better:[],difference:[],moderate:[],poor:[]};ft({divisions:a,yearMonth:t}).then(e=>{G.brr=e.data;let r=[...e.data],n=[];r.forEach(c=>{n.indexOf(c.subregionName)==-1&&n.push(c.subregionName)}),le.title=[...Object.values(n)],le.title.forEach((c,g)=>{e.data.map(b=>{if(c===b.subregionName)return o.better.push(b.better),o.difference.push(b.difference),o.good.push(b.good),o.moderate.push(b.moderate),o.poor.push(b.poor),b})}),D.value=o,ot()})},Fe=()=>{x.value!=="370211"&&(at(x.value,m.value.name),je(x.value,m.value.name),$e(x.value,m.value.name)),x.value=="370211"&&(Be("370211",m.value.name),je("370211",m.value.name),$e("370211",m.value.name))};function Wt(a){let t="",o="",e="",r="",n="";o="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",t=a,e="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",r="2019-2022gaobiaozhunnongtian",n="DKMC";var c=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${e}@${r}`,attributeFilter:`${n} like '%${t}%'`},datasetNames:[`${r}:${e}`]});new ol.supermap.FeatureService(o).getFeaturesBySQL(c,function(g){if(g.result.featureCount!=0){var b=d.getLayers().getArray().find(i=>i.get("id")==="zhezhao");d.removeLayer(b);var N=d.getLayers().getArray().find(i=>i.get("id")==="gbz");d.removeLayer(N);var _=d.getLayers().getArray().find(i=>i.get("id")==="dianjigaoliang");d.removeLayer(_);var u=d.getLayers().getArray().find(i=>i.get("id")==="dianjigaoliangs");d.removeLayer(u);var y=new ol.format.GeoJSON().readFeatures(g.result.features);ge(g.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var v=new ol.source.Vector;v.addFeatures(y);const k=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var h=new ol.layer.Vector({id:"dianjigaoliang",source:v});h.setStyle(k),d.addLayer(h),d.getView().fit(v.getExtent())}})}const At=a=>{let t="";G.arr.forEach(o=>{o.subregion==x.value&&(t=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),ct({divisions:x.value,yearMonth:m.value.name}).then(o=>{let e=[{region:t=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":t,good:o.data[0].good,better:o.data[0].better,moderate:o.data[0].moderate,poor:o.data[0].poor,difference:o.data[0].difference}];me(e,`${e[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},Tt=a=>{let t="";G.arr.forEach(o=>{o.subregion==x.value&&(t=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Ft(Ae.value,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},jt=a=>{let t=[];qe({yearMonth:m.value.name,divisions:"370211"}).then(o=>{o.data.forEach(e=>{t.push({region:e.region,good:e.good,better:e.better,moderate:e.moderate,poor:e.poor,difference:e.difference})}),me(t,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},$t=a=>{let t="",o=[];G.arr.forEach(e=>{e.subregion==x.value&&(t=e.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":e.subregionName)}),x.value==="370211"?Ge({divisions:x.value,yearMonth:m.value.name,whetherToDownload:!1}).then(e=>{e.data.forEach(r=>{o.push({region:r.subregionName,good:r.good,better:r.better,moderate:r.moderate,poor:r.poor,difference:r.difference})}),me(o,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):ft({divisions:x.value,yearMonth:m.value.name,whetherToDownload:!1}).then(e=>{e.data.forEach(r=>{o.push({region:r.subregionName,good:r.good,better:r.better,moderate:r.moderate,poor:r.poor,difference:r.difference})}),me(o,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Bt=()=>{let a=JSON.parse(JSON.stringify(C.value[0]));a.region="\u5408\u8BA1",ce.value.push(a),Ot(ce.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},Oe=(a,t)=>a.map(e=>{const r={};for(const n in e)t[n]&&(r[t[n]]=e[n]);return r}),me=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Oe(a,{region:"\u533A\u57DF\u540D\u79F0",good:"\u597D(\u4EA9)",better:"\u8F83\u597D(\u4EA9)",moderate:"\u9002\u4E2D(\u4EA9)",poor:"\u8F83\u5DEE(\u4EA9)",difference:"\u5DEE(\u4EA9)"}),n=q.json_to_sheet(r),c=q.book_new();q.book_append_sheet(c,n,o),Ve(c,`${t}.xlsx`)},Ft=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Oe(a,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),n=q.json_to_sheet(r),c=q.book_new();q.book_append_sheet(c,n,o),Ve(c,`${t}.xlsx`)},Ot=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Oe(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)"}),n=q.json_to_sheet(r),c=q.book_new();q.book_append_sheet(c,n,o),Ve(c,`${t}.xlsx`)};function Mt(){const a=Z(Se.value);let t=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],o=Le.value,e=!1;o.length>14?e=!0:e=!1;var r={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",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:"#fff",textStyle:{fontSize:14},rotate:"0"},axisTick:{show:!1}}],yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"#fff",fontSize:14},type:"value",axisLabel:{color:"#fff"},splitLine:{show:!1},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:o,barWidth:"15",itemStyle:{normal:{color:new ee(0,0,0,1,[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:.98,color:"rgba(71, 179, 161, 0)"}],!1),shadowColor:"rgba(5, 213, 255, 1)",shadowBlur:4}},label:{normal:{show:!0,lineHeight:10,formatter:"{c}",position:"top",textStyle:{color:"#fff",fontSize:10}}}}]};r&&a.setOption(r),window.addEventListener("resize",function(){a.resize()}),ye().listenTo(Se.value,()=>{ve(()=>{a.resize()})})}function Vt(){const a=Z(xe.value);fe.value.forEach(r=>{switch(r.name){case"good":r.name="\u597D";break;case"better":r.name="\u8F83\u597D";break;case"moderate":r.name="\u9002\u4E2D";break;case"poor":r.name="\u8F83\u5DEE";break;case"difference":r.name="\u5DEE";break}});var t=fe.value;let o={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:`${Ce.value}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#f2f2f2",fontSize:14},icon:"roundRect",data:t},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}\u4EA9
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\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)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],tooltip:{show:!1},label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};be(a,o),ye().listenTo(xe.value,()=>{ve(()=>{a.resize()})})}function qt(){const a=Z(ke.value);let t={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:Xe,axisLine:{lineStyle:{color:"rgba(255, 255, 255, 0.7)",width:1,type:"solid"}},axisLabel:{color:"#fff",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"#fff",fontSize:14},type:"value",axisLabel:{color:"#fff"},splitLine:{lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u597D",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:P.good,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(49, 235, 7, 1)",color:new ee(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:P.better,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(84, 170, 255, 1)",color:new ee(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:P.moderate,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 251, 0, 1)",color:new ee(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:P.poor,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 168, 8, 1)",color:new ee(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:P.difference,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(255, 0, 255, 1)",color:new ee(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){document.querySelector(".tool").style.display="block",Re.value=e.name;let r=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Wt(e.name),r.forEach(c=>{d.getLayers().getArray().forEach((g,b)=>{g.A.name==c&&d.getLayers().removeAt(b)})}),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao"].forEach(c=>{d.getLayers().getArray().forEach((g,b)=>{console.log(g.A),(g.A.name==c||g.A.id==c)&&d.getLayers().removeAt(b)})}),H=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian",cacheEnabled:!1}),name:"2019-2022gaobiaozhunnongtian",projection:"EPSG:4326",zIndex:9999}),d.addLayer(H)}),t&&a.setOption(t,{notMerge:!0,grid:{bottom:20}}),be(a,t),ye().listenTo(ke.value,()=>{ve(()=>{a.resize()})})}function Gt(){Be("370211"),delete pe.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),x.value="370211",Fe(),Qe.value=!1,hiddenOverlayChart()}function ot(){const a=Z(ze.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(e){return e.seriesName+''+e.value.toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:le.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:D.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:D.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:D.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:D.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:D.value.difference}]};be(a,t),ye().listenTo(ze.value,()=>{ve(()=>{a.resize()})})}function rt(){const a=Z(de.value);let t=[],o=[],e=[],r=[],n=[],c=[];oe.value.forEach(u=>{t.push(u.subName),u.good!==null?o.push(u.good):o.push(0),u.better!==null?e.push(u.better):e.push(0),u.moderate!==null?r.push(u.moderate):r.push(0),u.poor!==null?n.push(u.poor):n.push(0),u.difference!==null?c.push(u.difference):c.push(0)});let g=10/t.length*100,b={tooltip:{trigger:"axis",formatter:function(u){let y=u[0].axisValueLabel+"
",v=0;for(let h=0;h");for(let h=0;h",v=0;for(let h=0;h`;v+=u[h].value,y+=k+u[h].seriesName+"\uFF1A"+u[h].value+"
"}for(let h=0;h{const o=A("el-table-column"),e=A("el-table"),r=A("el-tooltip"),n=A("el-option"),c=A("el-select"),g=A("el-checkbox"),b=A("el-checkbox-group"),N=A("el-collapse-item"),_=A("el-collapse"),u=A("el-button"),y=A("el-form-item"),v=A("el-input-number"),h=A("el-form"),k=A("el-pagination");return z(),T("div",ia,[l("div",da,[ua,l("div",ca,[l("div",fa,[l("div",ha,[ga,l("p",{onClick:t[0]||(t[0]=i=>At())},[$(" \u4E0B\u8F7D \xA0 "),pa])]),l("div",{ref_key:"areaDiv",ref:Se,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:ht,class:"ProgressBar"},null,512)]),l("div",ma,[l("div",va,[ba,l("p",{onClick:t[1]||(t[1]=i=>Tt())},[$(" \u4E0B\u8F7D \xA0 "),ya])]),l("div",{ref_key:"typesofDiv",ref:xe,class:"typesofDiv"},null,512),l("div",_a,[p(e,{data:f(Ae),style:{width:"100%"}},{default:w(()=>[p(o,{prop:"date",label:"\u7C7B\u578B"}),p(o,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),p(o,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=i=>_t())},[p(r,{class:"box-item","show-arrow":!1,disabled:f(Y),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:w(()=>[f(Y)?j("",!0):(z(),T("img",wa))]),_:1},8,["disabled"]),p(r,{disabled:!f(Y),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:w(()=>[f(Y)?(z(),T("img",Sa)):j("",!0)]),_:1},8,["disabled"])])]),l("div",xa,[l("div",{class:"tool",onClick:t[3]||(t[3]=i=>f(Dt)())},La),l("div",Ca,[l("div",Ea,[Na,f(ae)?(z(),T("p",{key:0,onClick:t[4]||(t[4]=i=>jt())},[$(" \u4E0B\u8F7D \xA0 "),Da])):j("",!0)]),l("div",{ref_key:"farmlandDiv",ref:ke,class:"farmlandDiv"},null,512)]),l("div",Wa,[l("div",Aa,[Ta,l("p",{onClick:t[5]||(t[5]=i=>$t())},[$(" \u4E0B\u8F7D \xA0 "),ja])]),f(ae)?(z(),B(c,{key:0,"popper-class":"select_city",onChange:t[6]||(t[6]=i=>Fe(a.item)),modelValue:x.value,"onUpdate:modelValue":t[7]||(t[7]=i=>x.value=i),placeholder:"\u5168\u90E8"},{default:w(()=>[(z(!0),T(ne,null,se(f(G).arr,i=>(z(),B(n,{key:i.subregion,label:i.subregionName,value:i.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):j("",!0),l("div",{ref_key:"ASdivisionDiv",ref:ze,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:t[8]||(t[8]=i=>wt())},[p(r,{disabled:!f(X),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:w(()=>[f(X)?(z(),T("img",$a)):j("",!0)]),_:1},8,["disabled"]),p(r,{disabled:f(X),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:w(()=>[f(X)?j("",!0):(z(),T("img",Ba))]),_:1},8,["disabled"])])]),l("div",Fa,[f(We).length>0?(z(),B(oa,{key:0,dataSource:f(We),onDataHandle:Ct},null,8,["dataSource"])):j("",!0)]),l("div",Oa,[Ma,l("div",Va,[l("div",qa,[l("div",Ga,[Ia,Qa,l("span",null,F(f(J).good)+"\u4EA9",1)]),l("div",Ja,[Pa,Ra,l("span",null,F(f(J).better)+"\u4EA9",1)])]),l("div",Ya,[l("div",Xa,[Ha,Za,l("span",null,F(f(J).moderate)+"\u4EA9",1)]),l("div",Ua,[Ka,eo,l("span",null,F(f(J).poor)+"\u4EA9",1)])]),l("div",to,[l("div",ao,[oo,ro,l("span",null,F(f(J).difference)+"\u4EA9",1)])])]),lo]),l("div",no,[(z(!0),T(ne,null,se(f(pe).label,(i,W)=>(z(),T("div",{key:W},[l("div",null,F(i.crop)+"\uFF1A",1),l("div",null,F(i.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),f(pe).XZQMC?(z(),T("div",so,[io,l("div",null,F(f(pe).XZQMC),1)])):j("",!0),l("div",{class:"cancel",onClick:t[9]||(t[9]=(...i)=>a.hiddenOverlayChart&&a.hiddenOverlayChart(...i))},"X")]),p(_,{class:"legend",accordion:""},{default:w(()=>[p(N,{name:"1"},{title:w(()=>[$("\u56FE\u4F8B")]),default:w(()=>[l("div",uo,[p(b,{modelValue:f(O),"onUpdate:modelValue":t[10]||(t[10]=i=>Zt(O)?O.value=i:O=i),onChange:gt},{default:w(()=>[(z(!0),T(ne,null,se(f(re),(i,W,V)=>(z(),B(g,{key:V,"v-model":i.disabled,disabled:i.disabled,label:W},{default:w(()=>[l("span",{style:Ut({background:i.color,border:`1px solid ${i.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),$(" "+F(W),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Qe.value?(z(),B(u,{key:0,class:"back_button",onClick:t[11]||(t[11]=i=>Gt())},{default:w(()=>[$("\u8FD4\u56DE")]),_:1})):j("",!0)]),l("div",co,[l("div",fo,[p(h,{inline:!0,model:f(E),class:"demo-form-inline"},{default:w(()=>[p(y,{label:"\u65F6\u95F4:"},{default:w(()=>[p(c,{"popper-class":"selectCity",modelValue:f(E).time,"onUpdate:modelValue":t[12]||(t[12]=i=>f(E).time=i),placeholder:"\u8BF7\u9009\u62E9"},{default:w(()=>[(z(!0),T(ne,null,se(f(Ne),(i,W)=>(z(),B(n,{key:W,label:a.Zitem,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),p(y,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:w(()=>[p(c,{"popper-class":"selectCity",modelValue:f(E).statistical,"onUpdate:modelValue":t[13]||(t[13]=i=>f(E).statistical=i),placeholder:"\u8BF7\u9009\u62E9"},{default:w(()=>[p(n,{label:"\u9547\u7EA7",value:"\u9547"}),p(n,{label:"\u6751\u7EA7",value:"\u6751"}),f(ae)?(z(),B(n,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):j("",!0)]),_:1},8,["modelValue"])]),_:1}),p(y,{label:"\u957F\u52BF\u7B49\u7EA7"},{default:w(()=>[p(c,{modelValue:f(E).droughtRating,"onUpdate:modelValue":t[14]||(t[14]=i=>f(E).droughtRating=i),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:w(()=>[p(n,{label:"\u5168\u90E8",value:""}),p(n,{label:"\u597D",value:"\u597D"}),p(n,{label:"\u8F83\u597D",value:"\u8F83\u597D"}),p(n,{label:"\u9002\u4E2D",value:"\u9002\u4E2D"}),p(n,{label:"\u8F83\u5DEE",value:"\u8F83\u5DEE"}),p(n,{label:"\u5DEE",value:"\u5DEE"})]),_:1},8,["modelValue"])]),_:1}),p(y,{label:"\u9762\u79EF(\u4EA9)>"},{default:w(()=>[p(v,{modelValue:Ee.value,"onUpdate:modelValue":t[15]||(t[15]=i=>Ee.value=i),min:0,onChange:kt},null,8,["modelValue"])]),_:1}),p(y,null,{default:w(()=>[p(u,{type:"primary",onClick:Te},{default:w(()=>[$("\u67E5\u8BE2")]),_:1}),p(u,{plain:"",onClick:St},{default:w(()=>[$("\u91CD\u7F6E")]),_:1}),f(ue)?j("",!0):(z(),B(u,{key:0,type:"primary",text:"",onClick:Bt},{default:w(()=>[ho,$(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:xt},[l("div",{class:it(f(U)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:it(f(U)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),dt(l("div",go,[l("div",po,[f(ue)?j("",!0):(z(),B(e,{key:0,data:f(C),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:w(()=>[p(o,{prop:"",width:"80"}),(z(!0),T(ne,null,se(f(Pe),(i,W)=>(z(),B(o,{key:W,prop:i.value,label:W==0?i.lable:i.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),p(e,{data:f(De),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"80%","highlight-current-row":"","header-row-class-name":"tabth"},{default:w(()=>[p(o,{type:"index",width:"80",label:"\u5E8F\u53F7",index:Lt}),p(o,{prop:"subName",label:"\u533A\u57DF\u540D\u79F0"}),p(o,{prop:"good",label:"\u597D(\u4EA9)"}),p(o,{prop:"better",label:"\u8F83\u597D(\u4EA9)"}),p(o,{prop:"moderate",label:"\u9002\u4E2D(\u4EA9)"}),p(o,{prop:"poor",label:"\u8F83\u5DEE(\u4EA9)"}),p(o,{prop:"difference",label:"\u5DEE(\u4EA9)"})]),_:1},8,["data"]),l("div",mo,[$(" \u5171"+F(oe.value.length)+"\u6761 ",1),p(k,{background:"",layout:"prev, pager, next",total:oe.value.length,"current-page":f(I),"page-size":f(Q),onCurrentChange:zt},null,8,["total","current-page","page-size"])])],512),[[ut,f(U)]]),dt(l("div",vo,[l("div",{ref_key:"chartModeDiv",ref:de,class:"chartModeDiv"},null,512)],512),[[ut,!f(U)]])])])}}},$o=Pt(bo,[["__scopeId","data-v-ccdbd20b"]]);export{$o as default};