Agriculture-front-end/dist/assets/Freeze.8e2c2447.js

2 lines
46 KiB
JavaScript

import{Q as B,_ as Gt,u as Qt,r as c,I as gt,a2 as Ge,x as Jt,H as ht,aa as Rt,S as _e,d as F,o as S,c as $,l as n,f as g,O as we,K as X,M as H,n as I,e as y,w as x,m as q,k as T,V as Z,W as K,N as Yt,A as ee,F as Ut,q as Xt,s as Ht}from"./index.9f28707e.js";import{_ as Zt}from"./fh.7489c25e.js";import Le from"./downloads.e955445d.js";import{_ as Kt}from"./qx.88a5ecd3.js";import{_ as ea,a as ta}from"./zhankaiss.6870329f.js";import{_ as aa,a as ra,b as oa,c as la}from"./position.3b2b2301.js";import{_ as na,a as sa}from"./face.d3470a20.js";import{_ as ia}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as ua}from"./TimeLine.65e192a9.js";import{u as Se}from"./useEcharts.342dbaed.js";import"./linesGL.76a64914.js";import{d as pt}from"./download.da137c17.js";import{u as Qe,w as da}from"./xlsx.881b8a71.js";import{e as xe}from"./element-resize-detector.d4d1cd8d.js";import{ai as te,aj as ke}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";function Je(z){return B({url:"equipment/statisticsOfTheArea",method:"get",params:z})}function ft(z){return B({url:"equipment/proportionOfTheArea",method:"get",params:z})}function Re(z){return B({url:"equipment/eachFreezingGradeArea",method:"get",params:z})}function Ye(z){return B({url:"equipment/townshipArea",method:"get",params:z})}function vt(z){return B({url:"equipment/administrativeArea",method:"get",params:z})}function ca(z){return B({url:"equipment/freezeWarningYear",method:"get",params:z})}function ga(z){return B({url:"equipment/freezeWarning",method:"get",params:z})}function ha(z){return B({url:"equipment/administrativeAreaChun",method:"get",params:z})}const A=z=>(Xt("data-v-702685b8"),z=z(),Ht(),z),pa={class:"fatherDiv"},fa={class:"centerBox"},va=A(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ma={class:"rightWra"},ya=A(()=>n("img",{src:Zt},null,-1)),ba=A(()=>n("span",null,"\u8FD4\u56DE",-1)),_a=[ya,ba],wa={class:"tabar"},Sa={class:"leftTop"},xa={class:"title"},ka=A(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),La=A(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Aa=A(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),za={class:"leftbottom"},Ea={class:"title"},Ca=A(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Na=A(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Da=A(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Wa={class:"tableDiv"},Fa={class:"rightTop"},Ta={class:"title"},$a=A(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),qa=A(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Oa=A(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ia={key:0},ja=A(()=>n("img",{src:Kt},null,-1)),Ma=[ja],Pa={class:"rightbottom"},Va={class:"title"},Ba=A(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ga=A(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Qa=A(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ja=A(()=>n("img",{src:ea},null,-1)),Ra=A(()=>n("img",{src:ta},null,-1)),Ya={class:"bottom_center"},Ua=Ut('<div class="tool" data-v-702685b8><span data-v-702685b8><img src="'+aa+'" alt="" data-v-702685b8></span><span data-v-702685b8><img src="'+ra+'" alt="" data-v-702685b8></span><span data-v-702685b8><img src="'+oa+'" alt="" data-v-702685b8></span><span data-v-702685b8><img src="'+na+'" alt="" data-v-702685b8></span><span data-v-702685b8><img src="'+sa+'" alt="" data-v-702685b8></span><span data-v-702685b8><img src="'+la+'" alt="" data-v-702685b8></span></div>',1),Xa={class:"mt-4"},Ha={id:"popup",class:"ol-popup"},Za=A(()=>n("div",{class:"pophead",style:{width:"100%"}},[n("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)"}}),n("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Ka={id:"popup-content",style:{padding:"10px"}},er={class:"perform_children"},tr={class:"label"},ar=A(()=>n("div",{id:"popup-pagination"},null,-1)),rr={id:"pop"},or={key:0},lr=A(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),nr={class:"tabulation"},sr={class:"searchDiv"},ir=A(()=>n("img",{src:ia,alt:""},null,-1)),ur={class:"tableBox"},dr={class:"tableBorder"},cr=["onClick"],gr=["onClick"],hr={class:"example-pagination-block"},pr={class:"chartMode"},fr={__name:"Freeze",setup(z){const Ue=Qt();let mt=c(null);const Ae=c(null),ze=c(null),Ee=c(null);c(null);const Ce=c(null),k=c("370211");k.value=window.localStorage.getItem("divisions"),c(null);let j=gt({arr:[],brr:[],crr:[]});c({}),c([]);const Ne=c(!1);c(!1);let G=c(!1);const ae=c(["false"]);let ne=c([]),re=gt({lable:[],value:[]}),De=c([]),We=c(0),M=c(1),P=c(12);const Q=c([]),ue=c(0);let de=c([]),Fe=c([]),oe=c(!0),Te=c([]);const ce=c(null);let J=c(!0),R=c(null),ge=c([]),m=c(""),Xe=c(""),he=c([]),$e=c(1),He=c([]),qe=c(""),pe=c(5),fe=c([]),Y=c(!0),U=!(window.localStorage.getItem("divisions").length>6),Ze=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),D=c([{\u65E0\u51BB\u5BB3:0,\u8F7B\u5EA6\u51BB\u5BB3:0,\u4E2D\u5EA6\u51BB\u5BB3:0,\u91CD\u5EA6\u51BB\u5BB3:0}]),C=c({time:"",statistical:"\u9547",droughtRating:"",area:ue.value}),Ke=["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"],V={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},le=c({\u65E0\u51BB\u5BB3:{color:"rgba(32, 242, 255, 1)",disabled:!1},\u8F7B\u5EA6\u51BB\u5BB3:{color:"rgba(255, 255, 0, 1)",disabled:!1},\u4E2D\u5EA6\u51BB\u5BB3:{color:"rgba(255, 168, 8, 1)",disabled:!1},\u91CD\u5EA6\u51BB\u5BB3:{color:"rgba(224, 13, 15, 1)",disabled:!1}}),W={\u65E0\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_wudonghai"},\u8F7B\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_qingdudonghai"},\u4E2D\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_medium_donghai"},\u91CD\u5EA6\u51BB\u5BB3:{setOf:"2022-12-20-lengdong",name:"T2022_12_20_serious_donghai"}};Ge(()=>k.value,()=>{ut()}),Ge(()=>m.value,(r,e)=>{k.value=window.localStorage.getItem("divisions"),je(k.value,m.value.name),Me(k.value,m.value.name),Dt(m.value.name),U?Pe(k.value,m.value.name):it(k.value,m.value.name);let t=m.value.name.replace(/-/g,"_");W={\u65E0\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_wudonghai`},\u8F7B\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_qingdudonghai`},\u4E2D\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_medium_donghai`},\u91CD\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_serious_donghai`}}});var se={title:[]};let O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},et=c([]);Jt(()=>{yt()});function yt(){Nt(),bt(),wt(),Ve(),Be(),be(),_t();for(const l in le.value)le.value[l].disabled!==!0&&ne.value.push(l);ae.value=ne.value;let r=document.querySelector(".leftWra");r&&(r.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)",localStorage.setItem(Ue.currentRoute.value.path,!0)}ht(()=>{localStorage.getItem(Ue.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")}),c(null),c(null);let tt=c(null),ve=c(null),i=c(null);function bt(){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(r){var e=i.getView().getZoom();e>=13?R.setVisible(!0):R.setVisible(!1)}),i.on("singleclick",function(r){var e=r.coordinate;if(U){var l=e[0],t=e[1],o=i.getView(),a=i.getView().getZoom();o.animate({center:[l,t],duration:1e3});let h=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(f=>{i.getLayers().getArray().forEach((L,s)=>{if(f==L.A.name){h=!0;return}})}),h)a>=13?ie(r,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):ie(r,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547");else{let f=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,L=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${Xe.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A"]});new ol.supermap.FeatureService(f).getFeaturesBySQL(L,function(s){let _=new ol.format.GeoJSON().readFeatures(s.result.features),v=new ol.source.Vector;v.addFeatures(_);let b=new ol.layer.Vector({source:v}).getSource().getFeatures();for(var E=0;E<b.length;E++)b[E].getGeometry().intersectsCoordinate(e)&&ie(r,"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 h=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,p=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Ze}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(h).getFeaturesBySQL(p,function(f){let L=new ol.format.GeoJSON().readFeatures(f.result.features),s=new ol.source.Vector;s.addFeatures(L);let v=new ol.layer.Vector({source:s}).getSource().getFeatures();for(var d=0;d<v.length;d++)if(v[d].getGeometry().intersectsCoordinate(e)){var b=e[0],E=e[1],w=i.getView(),u=i.getView().getZoom();w.animate({center:[b,E],duration:1e3}),u>=13?ie(r,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):ie(r,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547")}})}}),St(Ze)}ht(()=>{var r=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),l=new ResizeObserver(function(t){t.forEach(function(o){var a=o.contentRect.width,h=o.contentRect.height;e.style.width=a+"px",e.style.height=h+"px",i.updateSize()})});l.observe(r)});function ie(r,e,l,t){var o=new ol.geom.Point(r.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:o});let h=[],p=document.querySelector("#popup-title"),f=c(null),L=c(null);new ol.supermap.QueryService(l).queryByGeometry(a,function(s){let _="";if(L=i.getLayers().getArray().find(d=>d.get("id")==="zhezhao"),i.removeLayer(L),t=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let d=s.result.recordsets[0].features.features[0].properties.XJQYDM;k.value=d;let b=[];Ye({divisions:"370211",yearMonth:m.value.name}).then(E=>{E.data.forEach(u=>{u.streetCode==d&&(_=u.streetName,b.push(u))});let w=[];w.push(b[1]),w.push(b[0]),w.push(b[2]),w.push(b[3]),he.value=w,v()})}else if(t=="\u6751"&&s.result.recordsets[0].features.features[0].properties.CJQYDM){let d=s.result.recordsets[0].features.features[0].properties.CJQYDM,b=[];ha({divisions:d,yearMonth:m.value.name}).then(E=>{E.data.forEach(w=>{b.push(w)}),_=E.data[0].streetName,he.value=b,v()})}else if(t=="\u9AD8\u6807\u51C6"&&s.result.recordsets[0].features.features[0].properties.DKMC){let d=s.result.recordsets[0].features.features[0].properties.DKMC,b=[];Re({divisions:"370211",yearMonth:m.value.name}).then(E=>{E.data.forEach(w=>{w.region==d&&b.push(w)}),b.forEach(w=>{w.type=w.level}),he.value=b,_=d,v()})}function v(){if(s.result.currentCount>0){s.result.recordsets[0].features&&(ve.setPosition(o.flatCoordinates),p.innerHTML=_),f=i.getLayers().getArray().find(u=>u.get("id")==="dianjigaoliang"),i.removeLayer(f);var d=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);h=s.result.recordsets[0].features.features[0].geometry.coordinates,Oe(s.result.recordsets[0].features.features[0].geometry.coordinates);var b=new ol.source.Vector;b.addFeatures(d);const w=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var E=new ol.layer.Vector({id:"dianjigaoliang",source:b,zIndex:9999});E.setStyle(w),i.addLayer(E)}}}),tt.addEventListener("click",function(){L=i.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),i.removeLayer(L),at(h),k.value=window.localStorage.getItem("divisions"),f=i.getLayers().getArray().find(s=>s.get("id")==="dianjigaoliang"),i.removeLayer(f),ve.setPosition(void 0)})}const _t=()=>{document.getElementById("popup"),document.getElementById("popup-content"),tt=document.getElementById("popup-closer"),ve=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),i.addOverlay(ve)};function wt(){Rt.get("/json/huangdao.json").then(({data:r})=>{new ol.format.GeoJSON().readFeatures(r)[0]})}function Oe(r,e,l,t){let o=new ol.source.Vector;var a=new ol.layer.Vector({id:e||"zhezhao",source:o,zIndex:t||50,style:new ol.style.Style({fill:new ol.style.Fill({color:l||"rgba( 105, 105, 105, 0.9)"})})});const h=at(r),p=new ol.Feature({geometry:h});a.getSource().addFeature(p),i.addLayer(a)}function at(r){const e=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(e);return r.forEach(o=>{const a=new ol.geom.LinearRing(o[0]);l.appendLinearRing(a)}),l}function St(r){let e="",l="",t="",o="",a="";l=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,e=r,t="XJQY3702112019WGS84",o="huangdaoqu_bianjie",a="XJQYMC";var h=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${o}`,attributeFilter:`${a} like '%${e}%'`},datasetNames:[`${o}:${t}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(h,function(p){if(p.result.featureCount!=0){var f=i.getLayers().getArray().find(b=>b.get("id")==="zhezhao");i.removeLayer(f);var L=i.getLayers().getArray().find(b=>b.get("id")==="dianjigaoliang");i.removeLayer(L);var s=new ol.format.GeoJSON().readFeatures(p.result.features);Oe(p.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var _=new ol.source.Vector;_.addFeatures(s);const d=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var v=new ol.layer.Vector({id:"dianjigaoliang",source:_});v.setStyle(d),i.addLayer(v),i.getView().fit(_.getExtent())}})}const rt=()=>{R=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(R)},ot=()=>{var r=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(r)},lt=r=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${r.setOf}/rest/maps/${r.name}@${r.setOf}`,cacheEnabled:!1}),name:r.name,projection:"EPSG:4326"});i.addLayer(e)};let nt=0;const xt=()=>{$e.value=0};Ge(()=>ae.value,(r,e)=>{if(r.length>=e.length&&$e.value<1)r.filter(t=>{if(e.findIndex(a=>a===t)<0)return t}).forEach(t=>{W[t]&&lt(W[t])});else if(r.length<e.length){const l=e.filter(t=>{if(r.findIndex(a=>a===t)<0)return t});l.forEach(t=>{W[t]&&(i.getLayers().getArray().indexOf(W[t].name),i.getLayers().getArray().forEach((o,a)=>{o.A.name&&o.A.name==W[t].name&&i.getLayers().removeAt(a)}))}),l.forEach(t=>{W[t]&&(i.getLayers().getArray().indexOf(W[t].name),i.getLayers().getArray().forEach((o,a)=>{o.A.name&&o.A.name==W[t].name&&i.getLayers().removeAt(a)}))})}nt++,nt==1&&(rt(),ot())});let me=c({label:[]});const st=r=>{Y.value=r,r?(Ve(),Be()):(dt(),be())};function kt(){if(G.value=!G.value,G.value){let r=document.querySelector(".rightWra");r.style.transform="translate(0,0)"}else{let r=document.querySelector(".rightWra");r.style.transform="translate(101%,0)"}}const Lt=r=>{C.value.area=r},Ie=()=>{let r=[],e=[];M.value=1,ga({yearMonth:C.value.time,statistical:C.value.statistical,droughtRating:C.value.droughtRating,area:C.value.area}).then(l=>{Fe.value=[{lable:"",value:"region"},{lable:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"},{lable:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"},{lable:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"},{lable:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"}],l.data.forEach(a=>{r.indexOf(a.region)==-1&&r.push(a.region)}),r.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{l.data.map(h=>{a.regio===h.region&&(a.region=h.region,a[h.level]=Number(h.area).toFixed(2))})}),oe.value=!1,Q.value=e.sort((a,h)=>a.region.length-h.region.length),Te.value=e.slice((M.value-1)*P.value,(M.value-1)*P.value+P.value),D.value[0].\u65E0\u51BB\u5BB3=0,D.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,D.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,D.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,D.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u65E0\u51BB\u5BB3&&(D.value[0].\u65E0\u51BB\u5BB3+=Number(a.\u65E0\u51BB\u5BB3)!==NaN?Number(a.\u65E0\u51BB\u5BB3):0),a.\u8F7B\u5EA6\u51BB\u5BB3&&(D.value[0].\u8F7B\u5EA6\u51BB\u5BB3+=Number(a.\u8F7B\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u8F7B\u5EA6\u51BB\u5BB3):0),a.\u4E2D\u5EA6\u51BB\u5BB3&&(D.value[0].\u4E2D\u5EA6\u51BB\u5BB3+=Number(a.\u4E2D\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u4E2D\u5EA6\u51BB\u5BB3):0),a.\u91CD\u5EA6\u51BB\u5BB3&&(D.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(a.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const a in D.value[0])D.value[0][a]!=="\u5408\u8BA1"&&(D.value[0][a]=D.value[0][a].toFixed(2));const t=ce.value;t.style.width=window.innerWidth-100+"px",t.style.height=window.innerHeight-100+"px";const o=te(t);window.addEventListener("resize",()=>{t.style.width=window.innerWidth-200+"px",t.style.height=window.innerHeight-200+"px",o.resize()}),ct()})},At=()=>{J.value=!J.value;const r=ce.value;r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px";const e=te(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",e.resize()}),ct()},zt=()=>{let r=JSON.parse(JSON.stringify(D.value[0]));r.region="\u5408\u8BA1",Q.value.push(r),ye(Q.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},Et=()=>{C.value.time=de.value[de.value.length-1],C.value.statistical="\u9547",C.value.droughtRating="",C.value.area=0,ue.value=1,oe.value=!0,Ie()},Ct=r=>{ge.value=fe.value.slice((r-1)*pe.value,r*pe.value)},Nt=()=>{ca().then(r=>{m.value={name:r.data[r.data.length-1]},de.value=r.data;let e=[];r.data.forEach(o=>{e.push({name:o})}),fe.value=e,He.value=Math.ceil(fe.value.length/5),qe=Math.ceil(e.length/5),ge.value=fe.value.slice((qe-1)*pe.value,qe*pe.value),C.value.time=r.data[r.data.length-1],Ie();let t=m.value.name.replace(/-/g,"_");W={\u65E0\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_wudonghai`},\u8F7B\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_qingdudonghai`},\u4E2D\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_medium_donghai`},\u91CD\u5EA6\u51BB\u5BB3:{setOf:`${m.value.name}-lengdong`,name:`T${t}_serious_donghai`}}})},je=(r,e)=>{Je({divisions:r,yearMonth:e}).then(l=>{re.lable=[],re.value=[],l.data.forEach(t=>{re.lable.push(t.level),re.value.push(t.area)}),Ve()})},Me=(r,e)=>{let l=c([]);ft({divisions:r,yearMonth:e}).then(t=>{De=c([]),We=c(0),t.data.forEach(o=>{We.value+=Number(o.area),De.value.push({name:o.level,value:Number(o.area).toFixed(2)}),l.value.push({date:o.level,name:`${Number(o.area).toFixed(2)}`,address:`${(o.percentage*100).toFixed(2)}%`})}),et.value=l.value,Be()})},Dt=r=>{Re({yearMonth:r}).then(e=>{V={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ke.forEach((l,t)=>{let o=e.data.map(a=>{if(l===a.region)return a});Object.keys(V).forEach(a=>{let h=0;o.findIndex(f=>(f&&f.level===a&&(h=f.area),f&&f.level===a))>-1?V[a].push(h):V[a].push(0)})}),e.data.length>0&&dt()})},Pe=(r,e)=>{O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ye({divisions:r,yearMonth:e}).then(l=>{j.brr=l.data,j.arr=l.data.sort((p,f)=>p.streetName.length-f.streetName.length),j.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let t=[],o=[];j.arr.forEach(p=>{t.indexOf(p.streetName)==-1&&(t.push(p.streetName),o.push({streetName:p.streetName,streetCode:p.streetCode}))}),j.arr=o;let a=[...l.data],h=[];a.splice(0,1),a.forEach(p=>{h.indexOf(p.streetName)==-1&&h.push(p.streetName)}),se.title=[...Object.values(h)],se.title.forEach((p,f)=>{let L=l.data.map(s=>{if(p===s.streetName)return s});Object.keys(O).forEach(s=>{L.findIndex(v=>v&&v.type===s&&v.area>0)>-1?O[s].push(1):O[s].push(null)})}),be()})},it=(r,e)=>{O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},vt({divisions:r,yearMonth:e}).then(l=>{j.brr=l.data;let t=[...l.data],o=[];t.splice(0,1),t.forEach(a=>{o.indexOf(a.streetName)==-1&&o.push(a.streetName)}),se.title=[...Object.values(o)],se.title.forEach((a,h)=>{let p=l.data.map(f=>{if(a===f.streetName)return f});Object.keys(O).forEach(f=>{p.findIndex(s=>s&&s.type===f&&s.area>0)>-1?O[f].push(1):O[f].push(null)})}),be()})};function Wt(r){let e="",l="",t="",o="",a="";l=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,e=r,t="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",o="2019-2022gaobiaozhunnongtian",a="DKMC";var h=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${t}@${o}`,attributeFilter:`${a} like '%${e}%'`},datasetNames:[`${o}:${t}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(h,function(p){if(p.result.featureCount!=0){var f=i.getLayers().getArray().find(w=>w.get("id")==="zhezhao");i.removeLayer(f);var L=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");i.removeLayer(L);var s=i.getLayers().getArray().find(w=>w.get("id")==="gbz");i.removeLayer(s);var _=i.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliangs");i.removeLayer(_);var v=new ol.format.GeoJSON().readFeatures(p.result.features);Oe(p.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var d=new ol.source.Vector;d.addFeatures(v);const E=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var b=new ol.layer.Vector({id:"dianjigaoliang",source:d});b.setStyle(E),i.addLayer(b),i.getView().fit(d.getExtent())}})}let Ft=()=>{document.querySelector(".tool").style.display="none",rt(),R.setVisible(!1),ot(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(l=>{i.getLayers().getArray().forEach((t,o)=>{(t.A.name==l||t.A.id==l)&&i.getLayers().removeAt(o)})});var e=i.getView();e.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const ut=()=>{k.value=="370211"?(je(k.value,m.value.name),Me(k.value,m.value.name),Pe(k.value,m.value.name)):(je(k.value,m.value.name),Me(k.value,m.value.name),it(k.value,m.value.name))},Tt=r=>{Je({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!0}).then(e=>{pt(e.data[e.data.length-1].downloadPath)})},$t=r=>{ft({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!0}).then(e=>{pt(e.data[e.data.length-1].downloadPath)})},qt=r=>{Re({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!1}).then(e=>{let l=[],t=[];e.data.forEach(o=>{l.indexOf(o.region)==-1&&l.push(o.region)}),l.forEach(o=>{t.push(Object.create(null,{regio:{value:o}}))}),t.forEach(o=>{e.data.map(a=>{o.regio===a.region&&(o.region=a.region,o[a.level]=Number(a.area).toFixed(2))})}),ye(t,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Ot=r=>{k.value==="370211"?Ye({divisions:k.value,yearMonth:m.value.name}).then(e=>{let l=[],t=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{t.push(Object.create(null,{regio:{value:o}}))}),t.forEach(o=>{e.data.map(a=>{o.regio===a.streetName&&(o.region=a.streetName,o[a.type]=Number(a.area).toFixed(2))})}),t=t.sort((o,a)=>o.region.length-a.region.length),ye(t,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212","\u884C\u653F\u533A\u5212")}):vt({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!1}).then(e=>{let l=[],t=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{t.push(Object.create(null,{regio:{value:o}}))}),t.forEach(o=>{e.data.map(a=>{o.regio===a.streetName&&(o.region=a.streetName,o[a.type]=Number(a.area).toFixed(2))})}),ye(t,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212","Sheet1")})},It=(r,e)=>r.map(t=>{const o={};for(const a in t)e[a]=="\u533A\u57DF\u540D\u79F0"&&(o[e[a]]=t[a]);for(const a in t)e[a]=="\u65E0\u51BB\u5BB3(\u4EA9)"&&(o[e[a]]=t[a]);for(const a in t)e[a]=="\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[a]]=t[a]);for(const a in t)e[a]=="\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[a]]=t[a]);for(const a in t)e[a]=="\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[a]]=t[a]);return o}),ye=(r,e="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const o=It(r,{region:"\u533A\u57DF\u540D\u79F0",\u65E0\u51BB\u5BB3:"\u65E0\u51BB\u5BB3(\u4EA9)",\u8F7B\u5EA6\u51BB\u5BB3:"\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)",\u4E2D\u5EA6\u51BB\u5BB3:"\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)",\u91CD\u5EA6\u51BB\u5BB3:"\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)"}),a=Qe.json_to_sheet(o),h=Qe.book_new();Qe.book_append_sheet(h,a,l),da(h,`${e}.xlsx`)},jt=r=>{for(const l in W)i.getLayers().getArray().forEach((t,o)=>{t.A.name&&W[l].name==t.A.name&&i.getLayers().removeAt(o)});$e.value+=1,ne.value=[];let e=[];for(const l in W)i.getLayers().getArray().forEach((t,o)=>{t.A.name==W[l].name&&i.getLayers().removeAt(o)});m.value=r,Je({divisions:"370211",yearMonth:m.value.name}).then(l=>{l.data.forEach(t=>{Number(t.area)>1?le.value[t.level].disabled=!1:le.value[t.level].disabled=!0,e=le});for(const t in e.value)e.value[t].disabled!==!0&&ne.value.push(t);ae.value=ne.value,ae.value.forEach(t=>{lt(W[t])})})};function Ve(){const r=te(Ae.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(153, 153, 153, 1)"}},xAxis:{nameTextStyle:{color:"rgba(153, 153, 153, 1)",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(153, 153, 153, 1)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:re.lable,type:"category"},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"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:re.value,name:"\u9762\u79EF",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(33, 156, 249, 1)"},{offset:1,color:"rgba(110, 191, 251, 1)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};e&&r.setOption(e),xe().listenTo(Ae.value,()=>{_e(()=>{r.resize()})})}function Be(){const r=te(ze.value);var e=De.value;let l={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(224, 13, 15, 1)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${(We.value/1e4).toFixed(2)}\u4E07\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:"2%",textStyle:{color:"rgba(51, 51, 51, 1)",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c} <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{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)"}}]}]};Se(r,l),xe().listenTo(ze.value,()=>{_e(()=>{r.resize()})})}function dt(){const r=te(Ee.value);let e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:Ke,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:"solid",color:"rgba(153, 153, 153, 1)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u65E0\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,color:new ke(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u8F7B\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,color:new ke(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u4E2D\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,color:new ke(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:V.\u91CD\u5EA6\u51BB\u5BB3,itemStyle:{normal:{borderWidth:1,color:new ke(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};r.on("click",function(t){var o=window.location.host,a=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;if(!a.test(o)){document.querySelector(".tool").style.display="block",Xe.value=t.name;let L=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Wt(t.name),L.forEach(_=>{i.getLayers().getArray().forEach((v,d)=>{v.A.name==_&&i.getLayers().removeAt(d)})});for(var h=document.querySelectorAll(".alerDiv"),p=0;p<h.length;p++){var f=h[p];f.style.display="none"}["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs"].forEach(_=>{i.getLayers().getArray().forEach((v,d)=>{(v.A.name==_||v.A.id==_)&&i.getLayers().removeAt(d)})}),R=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(R)}}),e&&r.setOption(e,{notMerge:!0,grid:{bottom:20}}),Se(r,e),xe().listenTo(Ee.value,()=>{_e(()=>{r.resize()})})}function ct(){const r=te(ce.value);let e=[],l=[],t=[],o=[],a=[];Q.value.forEach(s=>{e.push(s.region),s.\u65E0\u51BB\u5BB3!==void 0?l.push(s.\u65E0\u51BB\u5BB3):l.push(0),s.\u4E2D\u5EA6\u51BB\u5BB3!==void 0?o.push(s.\u4E2D\u5EA6\u51BB\u5BB3):o.push(0),s.\u91CD\u5EA6\u51BB\u5BB3!==void 0?a.push(s.\u91CD\u5EA6\u51BB\u5BB3):a.push(0),s.\u8F7B\u5EA6\u51BB\u5BB3!==void 0?t.push(s.\u8F7B\u5EA6\u51BB\u5BB3):t.push(0)});let h=10/e.length*100,p={tooltip:{trigger:"axis",formatter:function(s){let _=s[0].axisValueLabel+"</br>",v=0;for(let d=0;d<s.length;d++)v+=s[d].value,s[d].seriesName!=="\u5408\u8BA1"&&(_+=s[d].seriesName+"\uFF1A"+s[d].value+"</br>");for(let d=0;d<s.length;d++)v+=Number(s[d].value),s[d].seriesName==="\u5408\u8BA1"&&(_+="\u5408\u8BA1\uFF1A"+v);return _},axisPointer:{type:"shadow"}},dataZoom:[{type:"slider",width:"40%",top:"90%",zoomLock:!0,start:0,end:h,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"}],legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},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:e},yAxis:[{type:"value",name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLabel:{color:"#cbeaf6"},axisLine:{lineStyle:{}},splitLine:{lineStyle:{},show:!0}}],series:[{name:"\u65E0\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(32, 242, 255, 1)"},data:l},{name:"\u8F7B\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 255, 0, 1)"},data:t},{name:"\u4E2D\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(255, 168, 8, 1)"},data:o},{name:"\u91CD\u5EA6\u51BB\u5BB3",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:"rgba(224, 13, 15, 1)"},data:a}]};p.series;var f=p.tooltip;function L(s){let _=s[0].axisValueLabel+"</br>",v=0;for(let d=0;d<s.length;d++)if(s[d].seriesName!=="\u5408\u8BA1"){const b=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s[d].color}"></span>`;v+=s[d].value,_+=b+s[d].seriesName+"\uFF1A"+s[d].value+"</br>"}for(let d=0;d<s.length;d++)s[d].seriesName==="\u5408\u8BA1"&&(_+="\u5408\u8BA1\uFF1A"+v);return _}f.formatter=L,Se(r,p)}const Mt=r=>{M.value=r,Te.value=Q.value.slice((M.value-1)*P.value,(M.value-1)*P.value+P.value)},Pt=r=>{const e=M.value,l=P.value;return r+1+(e-1)*l};function Vt(){Pe("370211"),delete me.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),removeWms(["gbznt"],!0),removeWms(["aaa"]),k.value="370211",ut(),Ne.value==="1"&&addWms("huangdaoqu_town","huangdaoqu_town"),mt.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Ne.value=!1}function be(){const r=te(Ce.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(t){let o=0;return j.brr.forEach(a=>{a.type==t.seriesName&&a.streetName==t.name&&(o=Number(a.area).toFixed(2))}),t.seriesName+'<span style="font-size: 14px; color: #f00;">'+o+"</span>\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(51, 51, 51, 1)",formatter:"{value}"},data:se.title,inverse:!0}],series:[{type:"bar",name:"\u65E0\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u65E0\u51BB\u5BB3",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(32, 242, 255, 1)"},{offset:1,color:"rgba(32, 242, 255, 1)"}]}},data:O.\u65E0\u51BB\u5BB3},{type:"bar",name:"\u8F7B\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u8F7B\u5EA6\u51BB\u5BB3",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(255, 255, 0, 1)"},{offset:1,color:"rgba(255, 255, 0, 1)"}]}},data:O.\u8F7B\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u4E2D\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u4E2D\u5EA6\u51BB\u5BB3",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:O.\u4E2D\u5EA6\u51BB\u5BB3},{type:"bar",name:"\u91CD\u5EA6\u51BB\u5BB3",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u91CD\u5EA6\u51BB\u5BB3",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(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}]}},data:O.\u91CD\u5EA6\u51BB\u5BB3}]};Se(r,e),xe().listenTo(Ce.value,()=>{_e(()=>{r.resize()})})}return(r,e)=>{const l=F("el-table-column"),t=F("el-table"),o=F("el-option"),a=F("el-select"),h=F("el-icon"),p=F("el-tooltip"),f=F("el-checkbox"),L=F("el-checkbox-group"),s=F("el-collapse-item"),_=F("el-collapse"),v=F("el-button"),d=F("el-form-item"),b=F("el-input-number"),E=F("el-form"),w=F("el-pagination");return S(),$("div",pa,[n("div",fa,[va,n("div",ma,[n("div",{class:"tool",onClick:e[0]||(e[0]=u=>g(Ft)())},_a),n("div",wa,[n("div",{class:we(g(Y)?"tabarS":""),onClick:e[1]||(e[1]=u=>st(!0))},"\u9EC4\u5C9B\u533A",2),n("div",{class:we(g(Y)?"":"tabarS"),onClick:e[2]||(e[2]=u=>st(!1))},"\u884C\u653F\u533A",2)]),X(n("div",Sa,[n("div",xa,[ka,La,n("p",{onClick:e[3]||(e[3]=u=>Tt())},[I(" \u4E0B\u8F7D \xA0 "),Aa])]),n("div",{ref_key:"areaDiv",ref:Ae,class:"areaDiv"},null,512)],512),[[H,g(Y)]]),X(n("div",za,[n("div",Ea,[Ca,Na,n("p",{onClick:e[4]||(e[4]=u=>$t())},[I(" \u4E0B\u8F7D \xA0 "),Da])]),n("div",{ref_key:"typesofDiv",ref:ze,class:"typesofDiv"},null,512),n("div",Wa,[y(t,{data:g(et),style:{width:"100%"}},{default:x(()=>[y(l,{prop:"date",label:"\u7C7B\u578B"}),y(l,{prop:"name",label:"\u9762\u79EF(\u4EA9)"}),y(l,{prop:"address",label:"\u5360\u6BD4"})]),_:1},8,["data"])])],512),[[H,g(Y)]]),X(n("div",Fa,[n("div",Ta,[$a,qa,g(U)?(S(),$("p",{key:0,onClick:e[5]||(e[5]=u=>qt())},[I(" \u4E0B\u8F7D \xA0 "),Oa])):q("",!0)]),X(n("div",{ref_key:"farmlandDiv",ref:Ee,class:"farmlandDiv"},null,512),[[H,g(U)]]),g(U)?q("",!0):(S(),$("div",Ia,Ma))],512),[[H,!g(Y)]]),X(n("div",Pa,[n("div",Va,[Ba,Ga,n("p",{onClick:e[6]||(e[6]=u=>Ot())},[I(" \u4E0B\u8F7D \xA0 "),Qa])]),g(U)?(S(),T(a,{key:0,"popper-class":"select_city",modelValue:k.value,"onUpdate:modelValue":e[7]||(e[7]=u=>k.value=u),placeholder:"\u5168\u90E8"},{default:x(()=>[(S(!0),$(Z,null,K(g(j).arr,u=>(S(),T(o,{key:u.streetCode,label:u.streetName,value:u.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):q("",!0),n("div",{ref_key:"ASdivisionDiv",ref:Ce,class:"ASdivision"},null,512)],512),[[H,!g(Y)]]),n("div",{class:"rightFoldDiv",onClick:e[8]||(e[8]=u=>kt())},[y(p,{disabled:!g(G),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[g(G)?(S(),T(h,{key:0},{default:x(()=>[Ja]),_:1})):q("",!0)]),_:1},8,["disabled"]),y(p,{disabled:g(G),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[g(G)?q("",!0):(S(),T(h,{key:0},{default:x(()=>[Ra]),_:1}))]),_:1},8,["disabled"])])]),n("div",Ya,[g(ge).length>0?(S(),T(ua,{key:0,dataSource:g(ge),onDataHandle:jt,allCount:g(He),onGetcurrentPage:Ct},null,8,["dataSource","allCount"])):q("",!0)]),Ua,y(_,{class:"legend",accordion:""},{default:x(()=>[y(s,{name:"1"},{title:x(()=>[I("\u56FE\u4F8B")]),default:x(()=>[n("div",Xa,[y(L,{modelValue:ae.value,"onUpdate:modelValue":e[9]||(e[9]=u=>ae.value=u),onChange:xt},{default:x(()=>[(S(!0),$(Z,null,K(g(le),(u,N,Bt)=>(S(),T(f,{key:Bt,"v-model":u.disabled,disabled:u.disabled,label:N},{default:x(()=>[n("span",{style:Yt({background:u.color,border:`1px solid ${u.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),I(" "+ee(N),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),n("div",Ha,[Za,n("div",Ka,[(S(!0),$(Z,null,K(g(he),(u,N)=>(S(),$("div",{class:"perform",key:N},[n("div",er,[n("div",tr,ee(u.type)+":",1),n("span",null,ee(Number(u.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),ar]),n("div",rr,[(S(!0),$(Z,null,K(g(me).label,(u,N)=>(S(),$("div",{key:N},[n("div",null,ee(u.crop)+"\uFF1A",1),n("div",null,ee(u.Shape_Area)+" \u4EA9",1)]))),128)),g(me).XZQMC?(S(),$("div",or,[lr,n("div",null,ee(g(me).XZQMC),1)])):q("",!0)]),Ne.value?(S(),T(v,{key:0,class:"back_button",onClick:e[10]||(e[10]=u=>Vt())},{default:x(()=>[I("\u8FD4\u56DE")]),_:1})):q("",!0)]),n("div",nr,[n("div",sr,[y(E,{inline:!0,model:g(C),class:"demo-form-inline"},{default:x(()=>[y(d,{label:"\u65F6\u95F4:"},{default:x(()=>[y(a,{"popper-class":"selectCity",modelValue:g(C).time,"onUpdate:modelValue":e[11]||(e[11]=u=>g(C).time=u),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[(S(!0),$(Z,null,K(g(de),(u,N)=>(S(),T(o,{key:N,label:r.Zitem,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(d,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:x(()=>[y(a,{"popper-class":"selectCity",modelValue:g(C).statistical,"onUpdate:modelValue":e[12]||(e[12]=u=>g(C).statistical=u),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[y(o,{label:"\u9547\u7EA7",value:"\u9547"}),y(o,{label:"\u6751\u7EA7",value:"\u6751"}),g(U)?(S(),T(o,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):q("",!0)]),_:1},8,["modelValue"])]),_:1}),y(d,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:x(()=>[y(a,{modelValue:g(C).droughtRating,"onUpdate:modelValue":e[13]||(e[13]=u=>g(C).droughtRating=u),"popper-class":"selectCity",placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[y(o,{label:"\u5168\u90E8",value:""}),y(o,{label:"\u65E0\u51BB\u5BB3",value:"\u65E0\u51BB\u5BB3"}),y(o,{label:"\u8F7B\u5EA6\u51BB\u5BB3",value:"\u8F7B\u5EA6\u51BB\u5BB3"}),y(o,{label:"\u4E2D\u5EA6\u51BB\u5BB3",value:"\u4E2D\u5EA6\u51BB\u5BB3"}),y(o,{label:"\u91CD\u5EA6\u51BB\u5BB3",value:"\u91CD\u5EA6\u51BB\u5BB3"})]),_:1},8,["modelValue"])]),_:1}),y(d,{label:"\u9762\u79EF(\u4EA9)>"},{default:x(()=>[y(b,{modelValue:ue.value,"onUpdate:modelValue":e[14]||(e[14]=u=>ue.value=u),min:0,onChange:Lt},null,8,["modelValue"])]),_:1}),y(d,null,{default:x(()=>[y(v,{type:"primary",onClick:Ie},{default:x(()=>[I("\u67E5\u8BE2")]),_:1}),y(v,{plain:"",onClick:Et,disabled:!g(J)},{default:x(()=>[I(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(oe)?q("",!0):(S(),T(v,{key:0,type:"primary",text:"",onClick:zt},{default:x(()=>[ir,I(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:At},[n("div",{class:we(g(J)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:we(g(J)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),X(n("div",ur,[n("div",dr,[g(oe)?q("",!0):(S(),T(t,{key:0,data:g(D),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[y(l,{align:"center",prop:"\u5408\u8BA1",width:"80"}),(S(!0),$(Z,null,K(g(Fe),(u,N)=>(S(),T(l,{key:N,prop:u.value,label:N==0?u.lable:u.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(oe)?(S(),T(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:x(u=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:N=>r.download(u.row)}," \u4E0B\u8F7D ",8,cr)]),_:1})):q("",!0)]),_:1},8,["data"]))]),y(t,{data:g(Te),"header-cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:x(()=>[y(l,{type:"index",width:"80",align:"center",label:"\u5E8F\u53F7",index:Pt}),(S(!0),$(Z,null,K(g(Fe),(u,N)=>(S(),T(l,{key:N,prop:u.value,label:N==0?u.lable:u.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(oe)?(S(),T(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:x(u=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:N=>r.download(u.row)}," \u4E0B\u8F7D ",8,gr)]),_:1})):q("",!0)]),_:1},8,["data"]),n("div",hr,[I(" \u5171"+ee(Q.value.length)+"\u6761 ",1),y(w,{background:"",layout:"prev, pager, next",total:Q.value.length,"current-page":g(M),"page-size":g(P),onCurrentChange:Mt},null,8,["total","current-page","page-size"])])],512),[[H,g(J)]]),X(n("div",pr,[n("div",{ref_key:"chartModeDiv",ref:ce,class:"chartModeDiv"},null,512)],512),[[H,!g(J)]])])])}}},Tr=Gt(fr,[["__scopeId","data-v-702685b8"]]);export{Tr as default};