Agriculture-front-end/dist/assets/Site.e59d48d3.js

2 lines
50 KiB
JavaScript

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