2 lines
46 KiB
JavaScript
2 lines
46 KiB
JavaScript
import{K as R,_ as Rt,u as Yt,r as s,D as it,x as Ve,t as Xt,X as Ht,v as Zt,M as me,d as $,o as k,c as D,k as l,m as j,e as p,w,f,l as T,j as F,P as ne,Q as se,y as O,F as Ut,I as Kt,J as dt,G as ut,H as ct,p as ea,q as ta}from"./index.1974707a.js";import ye from"./downloads.4cdbbcc5.js";import{_ as _e}from"./linesGL.99030c5a.js";import{a as aa,_ as oa}from"./fh.cf269d4d.js";import{_ as ie}from"./icon.d0cb5387.js";import{_ as ra}from"./dow.b4b83e88.js";import"./index.e2d056fa.js";import{T as la}from"./TimeLine.50b18dc6.js";import{u as V,w as qe}from"./xlsx.86b9426e.js";import{u as ve}from"./useEcharts.2e9d7b11.js";import{e as be}from"./element-resize-detector.d8720798.js";import{i as Z,L as te}from"./install.49294472.js";/* empty css */function ft(L){return R({url:"crops/farmland",method:"get",params:L})}function na(L){return R({url:"crops/statistics",method:"get",params:L})}function Ge(L){return R({url:"crops/highStandards",method:"get",params:L})}function Ie(L){return R({url:"crops/gradeStatistics",method:"get",params:L})}function ht(L){return R({url:"crops/administrativeDivisions",method:"get",params:L})}function sa(L){return R({url:"crops/growthTime",method:"get",params:L})}function ia(L){return R({url:"crops/growthList",method:"get",params:L})}function da(L){return R({url:"crops/administrativeDivisionsChun",method:"get",params:L})}const S=L=>(ea("data-v-5064060b"),L=L(),ta(),L),ua={class:"fatherDiv"},ca={class:"centerBox"},fa=S(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ha={class:"leftWra"},ga={class:"leftTop"},pa={class:"title"},ma=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),va=S(()=>l("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ba={class:"leftbottom"},ya={class:"title"},_a=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),wa=S(()=>l("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Sa={class:"tableDiv"},xa={key:0,src:_e,alt:""},ka={key:0,class:"imgrotate",src:_e,alt:""},za={class:"rightWra"},La=S(()=>l("img",{src:aa},null,-1)),Ca=S(()=>l("span",null,"\u8FD4\u56DE",-1)),Ea=[La,Ca],Na={class:"rightTop"},Wa={class:"title"},Aa=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),$a=S(()=>l("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Da={key:0},Ta=S(()=>l("img",{src:oa},null,-1)),ja=[Ta],Ba={class:"rightbottom"},Fa={class:"title"},Oa=S(()=>l("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ma=S(()=>l("img",{src:ye,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Va={key:0,src:_e,alt:""},qa={key:0,class:"imgrotate",src:_e,alt:""},Ga={class:"bottom_center"},Ia={id:"popup",class:"ol-popup"},Qa=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)),Ja={id:"popup-content",style:{padding:"10px"}},Pa={class:"perform"},Ra={class:"perform_children"},Ya=S(()=>l("img",{src:ie},null,-1)),Xa=S(()=>l("span",{class:"label"},"\u597D\uFF1A",-1)),Ha={class:"perform_children"},Za=S(()=>l("img",{src:ie},null,-1)),Ua=S(()=>l("span",{class:"label"},"\u8F83\u597D\uFF1A",-1)),Ka={class:"perform"},eo={class:"perform_children"},to=S(()=>l("img",{src:ie},null,-1)),ao=S(()=>l("span",{class:"label"},"\u9002\u4E2D\uFF1A",-1)),oo={class:"perform_children"},ro=S(()=>l("img",{src:ie},null,-1)),lo=S(()=>l("span",{class:"label"},"\u8F83\u5DEE\uFF1A",-1)),no={class:"perform"},so={class:"perform_children"},io=S(()=>l("img",{src:ie},null,-1)),uo=S(()=>l("span",{class:"label"},"\u5DEE\uFF1A",-1)),co=S(()=>l("div",{id:"popup-pagination"},null,-1)),fo={id:"pop"},ho={key:0},go=S(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),po={class:"mt-4"},mo={class:"tabulation"},vo={class:"searchDiv"},bo=S(()=>l("img",{src:ra,alt:""},null,-1)),yo={class:"tableBox"},_o={class:"tableBorder"},wo={class:"example-pagination-block"},So={class:"chartMode"},xo={__name:"Site",setup(L){const Qe=Yt();s(null);const we=s(null),Se=s(null),xe=s(null);s(null);const ke=s(null),x=s("");x.value=window.localStorage.getItem("divisions");const gt=s(null);let q=it({arr:[],brr:[],crr:[]});it({arr:[]}),s({}),s([]),s([]);const Je=s(!1);let Y=s(!0),X=s(!0);s("{x:765,y:191}");let Pe=s([]),ze=s([]),Le=s(0);s([]);let G=s(["false"]),ae=s([]);const Ce=s(0);let Ee=s([]),U=s(!0);const de=s(null);let I=s(1),Q=s(12),Ne=s([]),Re=s([]),ue=s(!0);s(null),s(null),s("");let J=s([]),We=s([]),m=s(""),Ye=s(""),Ae=s(0),K=!(window.localStorage.getItem("divisions").length>6),Xe=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([]),He=["2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2019\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2020\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2021\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A1","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A2","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A3","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A4","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A5","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A6","2022\u5E74\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A7"],P={good:[],better:[],moderate:[],poor:[],difference:[]};const oe=s([]);let E=s({time:"",statistical:"\u9547",droughtRating:"",area:Ce.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}},B={},Ze=0;Ve(()=>x.value,()=>{Oe()}),Ve(()=>m.value,(a,t)=>{x.value=window.localStorage.getItem("divisions"),je(x.value,m.value.name),Be(x.value,m.value.name),K?Fe(x.value,m.value.name):ot(x.value,m.value.name),Wt(m.value.name);let e=m.value.name.replace(/-/g,"_");B={\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`}}});const pt=()=>{Ae.value=0};Ve(()=>G.value,(a,t)=>{a.length>t.length&&Ae.value<1?a.filter(e=>{if(t.findIndex(n=>n===e)<0)return e}).forEach(e=>{B[e]&&at(B[e])}):a.length<t.length&&t.filter(e=>{if(a.findIndex(n=>n===e)<0)return e}).forEach(e=>{B[e]&&d.getLayers().getArray().forEach((r,n)=>{r.A.name&&r.A.name==B[e].name&&d.getLayers().removeAt(n)})}),Ze++,Ze==1&&(et(),tt())});var le={title:[]};let W=s({good:[],better:[],difference:[],moderate:[],poor:[]}),H=s(null),$e=s([]);Xt(()=>{mt()});function mt(){Nt(),vt(),bt(),yt();for(const a in re)re[a].disabled!==!0&&ae.value.push(a);G.value=ae.value,localStorage.setItem(Qe.currentRoute.value.path,!0)}Ht(()=>{localStorage.getItem(Qe.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 Ue=s(null),he=s(null);function vt(){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(K){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?ee(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):ee(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 = '${Ye.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),z=new ol.source.Vector;z.addFeatures(h);let A=new ol.layer.Vector({source:z}).getSource().getFeatures();for(var M=0;M<A.length;M++)A[M].getGeometry().intersectsCoordinate(r)&&ee(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")})}}else{let N="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",_=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Xe}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(N).getFeaturesBySQL(_,function(u){let y=new ol.format.GeoJSON().readFeatures(u.result.features),v=new ol.source.Vector;v.addFeatures(y);let z=new ol.layer.Vector({source:v}).getSource().getFeatures();for(var i=0;i<z.length;i++)if(z[i].getGeometry().intersectsCoordinate(r)){var A=r[0],M=r[1],nt=d.getView(),Qt=d.getView().getZoom();nt.animate({center:[A,M],duration:1e3});let st=!1;["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(Jt=>{d.getLayers().getArray().forEach((Pt,Lo)=>{if(Jt==Pt.A.name){st=!0;return}})}),st?Qt>=13?ee(e,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):ee(e,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547"):ee(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),_t(Xe)}function bt(){Zt.get("/json/huangdao.json").then(({data:a})=>{new ol.format.GeoJSON().readFeatures(a)[0]})}function ee(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,Ie({divisions:"370211",yearMonth:m.value.name}).then(h=>{h.data.forEach(z=>{z.subregion==v&&(u=z.subregionName,J.value=z)}),y()})}else if(e=="\u6751"){let v=_.result.recordsets[0].features.features[0].properties.CJQYDM;da({divisions:v,yearMonth:m.value.name}).then(h=>{h.data.forEach(z=>{J.value=z}),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;Ge({divisions:"370211",yearMonth:m.value.name}).then(h=>{h.data.forEach(z=>{z.region==v&&(J.value=z)}),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(M=>M.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,De(_.result.recordsets[0].features.features[0].geometry.coordinates);var z=new ol.source.Vector;z.addFeatures(h);const A=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:z,zIndex:9999});i.setStyle(A),d.addLayer(i)}}}),Ue.addEventListener("click",function(){N=d.getLayers().getArray().find(_=>_.get("id")==="zhezhao"),d.removeLayer(N),Ke(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 De(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=Ke(a),g=new ol.Feature({geometry:c});n.getSource().addFeature(g),d.addLayer(n)}function Ke(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 yt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Ue=document.getElementById("popup-closer"),he=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),d.addOverlay(he)};function _t(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);De(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 et=()=>{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)},tt=()=>{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)},at=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 ge=s({label:[]});function wt(){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 St(){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 xt=()=>{E.value.time=Ee.value[0],E.value.statistical="\u9547",E.value.droughtRating="",E.value.area=0,ue.value=!0,Te()},kt=()=>{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()}),lt()},zt=a=>{E.value.area=a},Te=()=>{I.value=1,ia({time:E.value.time,statistical:E.value.statistical,droughtRating:E.value.droughtRating,area:E.value.area}).then(a=>{Re.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,Ne.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()}),lt()})},Lt=a=>{I.value=a,Ne.value=oe.value.slice((I.value-1)*Q.value,(I.value-1)*Q.value+Q.value)},Ct=a=>{const t=I.value,o=Q.value;return a+1+(t-1)*o},Et=a=>{Ae.value+=1,ae.value=[];for(const o in re)re[o].disabled!==!0&&ae.value.push(o);G.value=ae.value;for(const o in B)d.getLayers().getArray().forEach((e,r)=>{e.A.name==B[o].name&&d.getLayers().removeAt(r)});m.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`}},G.value.forEach(o=>{at(B[o])})},Nt=()=>{sa().then(a=>{m.value={name:a.data[a.data.length-1]},a.data.forEach(e=>{We.value.push({name:e})}),Ee.value=a.data,E.value.time=a.data[0],Te();let o=m.value.name.replace(/-/g,"_");B={\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)=>{Pe=s([]),ze=s([]),ft({divisions:a,yearMonth:t}).then(o=>{for(const e in o.data[0])o.data[0][e]&&(Pe.value.push(e),ze.value.push(o.data[0][e]));Vt()})},Be=(a,t)=>{na({divisions:a,yearMonth:t}).then(o=>{fe=s([]);let e=s([]);Le=s(0),o.data.forEach(r=>{Le.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}}),$e.value=c}}),qt()})},Wt=a=>{s([]),P={good:[],better:[],moderate:[],poor:[],difference:[]},Ge({yearMonth:a,divisions:window.localStorage.getItem("divisions")}).then(t=>{He.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&&Gt()})};let At=()=>{document.querySelector(".tool").style.display="none",et(),H.setVisible(!1),tt(),["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 Fe=(a,t)=>{W.value.better=[],W.value.difference=[],W.value.good=[],W.value.moderate=[],W.value.poor=[],Ie({divisions:a,yearMonth:t}).then(o=>{q.brr=o.data,q.arr=o.data.sort((n,c)=>n.subregionName.length-c.subregionName.length),q.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 W.value.better.push(g.better),W.value.difference.push(g.difference),W.value.good.push(g.good),W.value.moderate.push(g.moderate),W.value.poor.push(g.poor),g})}),rt()})},ot=(a,t)=>{let o={good:[],better:[],difference:[],moderate:[],poor:[]};ht({divisions:a,yearMonth:t}).then(e=>{q.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})}),W.value=o,rt()})},Oe=()=>{x.value!=="370211"&&(ot(x.value,m.value.name),je(x.value,m.value.name),Be(x.value,m.value.name)),x.value=="370211"&&(Fe("370211",m.value.name),je("370211",m.value.name),Be("370211",m.value.name))};function $t(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);De(g.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var v=new ol.source.Vector;v.addFeatures(y);const z=new ol.style.Style({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(z),d.addLayer(h),d.getView().fit(v.getExtent())}})}const Dt=a=>{let t="";q.arr.forEach(o=>{o.subregion==x.value&&(t=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),ft({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}];pe(e,`${e[0].region}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1`,"Sheet1")})},Tt=a=>{let t="";q.arr.forEach(o=>{o.subregion==x.value&&(t=o.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":o.subregionName)}),Ot($e.value,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4`,"Sheet1")},jt=a=>{let t=[];Ge({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})}),pe(t,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530\u5217\u8868","Sheet1")})},Bt=a=>{let t="",o=[];q.arr.forEach(e=>{e.subregion==x.value&&(t=e.subregionName=="\u5168\u90E8"?"\u9EC4\u5C9B\u533A":e.subregionName)}),x.value==="370211"?Ie({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})}),pe(o,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")}):ht({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})}),pe(o,`${t}\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212`,"Sheet1")})},Ft=()=>{let a=JSON.parse(JSON.stringify(C.value[0]));a.region="\u5408\u8BA1",ce.value.push(a),Mt(ce.value,"\u957F\u52BF\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},Me=(a,t)=>a.map(e=>{const r={};for(const n in e)t[n]&&(r[t[n]]=e[n]);return r}),pe=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Me(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=V.json_to_sheet(r),c=V.book_new();V.book_append_sheet(c,n,o),qe(c,`${t}.xlsx`)},Ot=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Me(a,{date:"\u7C7B\u578B",name:"\u9762\u79EF(\u4EA9)",address:"\u5360\u6BD4"}),n=V.json_to_sheet(r),c=V.book_new();V.book_append_sheet(c,n,o),qe(c,`${t}.xlsx`)},Mt=(a,t="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=Me(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=V.json_to_sheet(r),c=V.book_new();V.book_append_sheet(c,n,o),qe(c,`${t}.xlsx`)};function Vt(){const a=Z(we.value);let t=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],o=ze.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 te(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()}),be().listenTo(we.value,()=>{me(()=>{a.resize()})})}function qt(){const a=Z(Se.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:`${Le.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} <br/>{b} : {c}\u4EA9 <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\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"}}}]}]};ve(a,o),be().listenTo(Se.value,()=>{me(()=>{a.resize()})})}function Gt(){const a=Z(xe.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:He,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 te(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 te(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 te(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 te(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 te(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",Ye.value=e.name;let r=["XJQY3702112019WGS84","CJQY3702112019WGS84"];$t(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)=>{(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}}),ve(a,t),be().listenTo(xe.value,()=>{me(()=>{a.resize()})})}function It(){Fe("370211"),delete ge.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),x.value="370211",Oe(),Je.value=!1,hiddenOverlayChart()}function rt(){const a=Z(ke.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",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(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: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}]};ve(a,t),be().listenTo(ke.value,()=>{me(()=>{a.resize()})})}function lt(){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+"</br>",v=0;for(let h=0;h<u.length;h++)v+=u[h].value,u[h].seriesName!=="\u5408\u8BA1"&&(y+=u[h].seriesName+"\uFF1A"+u[h].value+"</br>");for(let h=0;h<u.length;h++)v+=Number(u[h].value),u[h].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+v);return y},axisPointer:{type:"shadow"}},legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},dataZoom:[{type:"slider",width:"40%",top:"90%",zoomLock:!0,start:0,end:g,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"30%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],grid:{left:"3%",right:"10%",bottom:"15%",top:"5%",containLabel:!0},xAxis:{type:"category",name:"\u533A\u57DF",axisLabel:{fontSize:12,interval:0,rotate:0},axisLine:{lineStyle:{}},data: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:o},{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:r},{name:"\u8F83\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 168, 8, 1)"},data:n},{name:"\u5DEE",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 0, 255, 1)"},data:c}]};b.series;var N=b.tooltip;function _(u){let y=u[0].axisValueLabel+"</br>",v=0;for(let h=0;h<u.length;h++)if(u[h].seriesName!=="\u5408\u8BA1"){const z=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${u[h].color}"></span>`;v+=u[h].value,y+=z+u[h].seriesName+"\uFF1A"+u[h].value+"</br>"}for(let h=0;h<u.length;h++)u[h].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+v);return y}N.formatter=_,ve(a,b)}return s({}),(a,t)=>{const o=$("el-table-column"),e=$("el-table"),r=$("el-tooltip"),n=$("el-option"),c=$("el-select"),g=$("el-checkbox"),b=$("el-checkbox-group"),N=$("el-collapse-item"),_=$("el-collapse"),u=$("el-button"),y=$("el-form-item"),v=$("el-input-number"),h=$("el-form"),z=$("el-pagination");return k(),D("div",ua,[l("div",ca,[fa,l("div",ha,[l("div",ga,[l("div",pa,[ma,l("p",{onClick:t[0]||(t[0]=i=>Dt())},[j(" \u4E0B\u8F7D \xA0 "),va])]),l("div",{ref_key:"areaDiv",ref:we,class:"areaDiv"},null,512),l("div",{ref_key:"leftProgressBarDiv",ref:gt,class:"ProgressBar"},null,512)]),l("div",ba,[l("div",ya,[_a,l("p",{onClick:t[1]||(t[1]=i=>Tt())},[j(" \u4E0B\u8F7D \xA0 "),wa])]),l("div",{ref_key:"typesofDiv",ref:Se,class:"typesofDiv"},null,512),l("div",Sa,[p(e,{data:f($e),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=>wt())},[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)?T("",!0):(k(),D("img",xa))]),_: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)?(k(),D("img",ka)):T("",!0)]),_:1},8,["disabled"])])]),l("div",za,[l("div",{class:"tool",onClick:t[3]||(t[3]=i=>f(At)())},Ea),l("div",Na,[l("div",Wa,[Aa,f(K)?(k(),D("p",{key:0,onClick:t[4]||(t[4]=i=>jt())},[j(" \u4E0B\u8F7D \xA0 "),$a])):T("",!0)]),l("div",{ref_key:"farmlandDiv",ref:xe,class:"farmlandDiv"},null,512),f(K)?T("",!0):(k(),D("div",Da,ja))]),l("div",Ba,[l("div",Fa,[Oa,l("p",{onClick:t[5]||(t[5]=i=>Bt())},[j(" \u4E0B\u8F7D \xA0 "),Ma])]),f(K)?(k(),F(c,{key:0,"popper-class":"select_city",onChange:t[6]||(t[6]=i=>Oe(a.item)),modelValue:x.value,"onUpdate:modelValue":t[7]||(t[7]=i=>x.value=i),placeholder:"\u5168\u90E8"},{default:w(()=>[(k(!0),D(ne,null,se(f(q).arr,i=>(k(),F(n,{key:i.subregion,label:i.subregionName,value:i.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):T("",!0),l("div",{ref_key:"ASdivisionDiv",ref:ke,class:"ASdivision"},null,512)]),l("div",{class:"rightFoldDiv",onClick:t[8]||(t[8]=i=>St())},[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)?(k(),D("img",Va)):T("",!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)?T("",!0):(k(),D("img",qa))]),_:1},8,["disabled"])])]),l("div",Ga,[f(We).length>0?(k(),F(la,{key:0,dataSource:f(We),onDataHandle:Et},null,8,["dataSource"])):T("",!0)]),l("div",Ia,[Qa,l("div",Ja,[l("div",Pa,[l("div",Ra,[Ya,Xa,l("span",null,O(f(J).good)+"\u4EA9",1)]),l("div",Ha,[Za,Ua,l("span",null,O(f(J).better)+"\u4EA9",1)])]),l("div",Ka,[l("div",eo,[to,ao,l("span",null,O(f(J).moderate)+"\u4EA9",1)]),l("div",oo,[ro,lo,l("span",null,O(f(J).poor)+"\u4EA9",1)])]),l("div",no,[l("div",so,[io,uo,l("span",null,O(f(J).difference)+"\u4EA9",1)])])]),co]),l("div",fo,[(k(!0),D(ne,null,se(f(ge).label,(i,A)=>(k(),D("div",{key:A},[l("div",null,O(i.crop)+"\uFF1A",1),l("div",null,O(i.Shape_Area.toFixed(2))+" \u4EA9",1)]))),128)),f(ge).XZQMC?(k(),D("div",ho,[go,l("div",null,O(f(ge).XZQMC),1)])):T("",!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(()=>[j("\u56FE\u4F8B")]),default:w(()=>[l("div",po,[p(b,{modelValue:f(G),"onUpdate:modelValue":t[10]||(t[10]=i=>Ut(G)?G.value=i:G=i),onChange:pt},{default:w(()=>[(k(!0),D(ne,null,se(f(re),(i,A,M)=>(k(),F(g,{key:M,"v-model":i.disabled,disabled:i.disabled,label:A},{default:w(()=>[l("span",{style:Kt({background:i.color,border:`1px solid ${i.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),j(" "+O(A),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Je.value?(k(),F(u,{key:0,class:"back_button",onClick:t[11]||(t[11]=i=>It())},{default:w(()=>[j("\u8FD4\u56DE")]),_:1})):T("",!0)]),l("div",mo,[l("div",vo,[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(()=>[(k(!0),D(ne,null,se(f(Ee),(i,A)=>(k(),F(n,{key:A,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(K)?(k(),F(n,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):T("",!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:Ce.value,"onUpdate:modelValue":t[15]||(t[15]=i=>Ce.value=i),min:0,onChange:zt},null,8,["modelValue"])]),_:1}),p(y,null,{default:w(()=>[p(u,{type:"primary",onClick:Te},{default:w(()=>[j("\u67E5\u8BE2")]),_:1}),p(u,{plain:"",onClick:xt},{default:w(()=>[j("\u91CD\u7F6E")]),_:1}),f(ue)?T("",!0):(k(),F(u,{key:0,type:"primary",text:"",onClick:Ft},{default:w(()=>[bo,j(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),l("div",{class:"modeDiv",onClick:kt},[l("div",{class:dt(f(U)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),l("div",{class:dt(f(U)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),ut(l("div",yo,[l("div",_o,[f(ue)?T("",!0):(k(),F(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"}),(k(!0),D(ne,null,se(f(Re),(i,A)=>(k(),F(o,{key:A,prop:i.value,label:A==0?i.lable:i.lable+"(\u4EA9)"},null,8,["prop","label"]))),128))]),_:1},8,["data"]))]),p(e,{data:f(Ne),"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:Ct}),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",wo,[j(" \u5171"+O(oe.value.length)+"\u6761 ",1),p(z,{background:"",layout:"prev, pager, next",total:oe.value.length,"current-page":f(I),"page-size":f(Q),onCurrentChange:Lt},null,8,["total","current-page","page-size"])])],512),[[ct,f(U)]]),ut(l("div",So,[l("div",{ref_key:"chartModeDiv",ref:de,class:"chartModeDiv"},null,512)],512),[[ct,!f(U)]])])])}}},Vo=Rt(xo,[["__scopeId","data-v-5064060b"]]);export{Vo as default};
|