2 lines
47 KiB
JavaScript
2 lines
47 KiB
JavaScript
import{L as G,_ as Bt,u as Qt,r as c,D as gt,Y as Be,t as Rt,C as ht,a5 as Jt,N as _e,d as W,o as S,c as I,k as n,f as g,K as we,G as X,H,m as O,e as y,w as x,l as $,j as F,Q as Z,R as K,I as Yt,x as ee,A as Ut,p as Xt,q as Ht}from"./index.4144b0df.js";import{_ as Zt}from"./fh.7489c25e.js";import Le from"./downloads.4cdbbcc5.js";import{_ as Kt}from"./qx.88a5ecd3.js";import{_ as ea,a as ta}from"./zhankaiss.dd067ea4.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.9a19de2e.js";import{_ as ia}from"./dow.b4b83e88.js";import"./index.b8675889.js";import{T as da}from"./TimeLine.547816ff.js";import{u as Se}from"./useEcharts.4511b2cd.js";import"./linesGL.901ceb35.js";import{d as pt}from"./download.1ecc0939.js";import{u as Qe,w as ua}from"./xlsx.86b9426e.js";import{e as xe}from"./element-resize-detector.ff2fdb0d.js";import{i as te,ar as ke}from"./install.5b5161c6.js";/* empty css */import"./browser-detector.e77caf03.js";function Re(A){return G({url:"equipment/statisticsOfTheArea",method:"get",params:A})}function ft(A){return G({url:"equipment/proportionOfTheArea",method:"get",params:A})}function Je(A){return G({url:"equipment/eachFreezingGradeArea",method:"get",params:A})}function Ye(A){return G({url:"equipment/townshipArea",method:"get",params:A})}function vt(A){return G({url:"equipment/administrativeArea",method:"get",params:A})}function ca(A){return G({url:"equipment/freezeWarningYear",method:"get",params:A})}function ga(A){return G({url:"equipment/freezeWarning",method:"get",params:A})}function ha(A){return G({url:"equipment/administrativeAreaChun",method:"get",params:A})}const E=A=>(Xt("data-v-7de0d568"),A=A(),Ht(),A),pa={class:"fatherDiv"},fa={class:"centerBox"},va=E(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ma={class:"rightWra"},ya=E(()=>n("img",{src:Zt},null,-1)),ba=E(()=>n("span",null,"\u8FD4\u56DE",-1)),_a=[ya,ba],wa={class:"tabar"},Sa={class:"leftTop"},xa={class:"title"},ka=E(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),La=E(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),Ea=E(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Aa={class:"leftbottom"},za={class:"title"},Ca=E(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Na=E(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),Ta=E(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Da={class:"tableDiv"},Wa={class:"rightTop"},Fa={class:"title"},Ia=E(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),$a=E(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),qa=E(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Oa={key:0},Ma=E(()=>n("img",{src:Kt},null,-1)),ja=[Ma],Pa={class:"rightbottom"},Va={class:"title"},Ga=E(()=>n("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),Ba=E(()=>n("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Qa=E(()=>n("img",{src:Le,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ra=E(()=>n("img",{src:ea},null,-1)),Ja=E(()=>n("img",{src:ta},null,-1)),Ya={class:"bottom_center"},Ua=Ut('<div class="tool" data-v-7de0d568><span data-v-7de0d568><img src="'+aa+'" alt="" data-v-7de0d568></span><span data-v-7de0d568><img src="'+ra+'" alt="" data-v-7de0d568></span><span data-v-7de0d568><img src="'+oa+'" alt="" data-v-7de0d568></span><span data-v-7de0d568><img src="'+na+'" alt="" data-v-7de0d568></span><span data-v-7de0d568><img src="'+sa+'" alt="" data-v-7de0d568></span><span data-v-7de0d568><img src="'+la+'" alt="" data-v-7de0d568></span></div>',1),Xa={class:"mt-4"},Ha={id:"popup",class:"ol-popup"},Za=E(()=>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=E(()=>n("div",{id:"popup-pagination"},null,-1)),rr={id:"pop"},or={key:0},lr=E(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),nr={class:"tabulation"},sr={class:"searchDiv"},ir=E(()=>n("img",{src:ia,alt:""},null,-1)),dr={class:"tableBox"},ur={class:"tableBorder"},cr=["onClick"],gr=["onClick"],hr={class:"example-pagination-block"},pr={class:"chartMode"},fr={__name:"Freeze",setup(A){const Ue=Qt();let mt=c(null);const Ee=c(null),Ae=c(null),ze=c(null);c(null);const Ce=c(null),k=c("370211");k.value=window.localStorage.getItem("divisions"),c(null);let M=gt({arr:[],brr:[],crr:[]});c({}),c([]);const Ne=c(!1);c(!1);let B=c(!1);const ae=c(["false"]);let ne=c([]),re=gt({lable:[],value:[]}),Te=c([]),De=c(0),j=c(1),P=c(12);const Q=c([]),de=c(1);let ue=c([]),We=c([]),oe=c(!0),Fe=c([]);const ce=c(null);let R=c(!0),J=c(null),ge=c([]),m=c(""),Xe=c(""),he=c([]),Ie=c(1),He=c([]),$e=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"),T=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:de.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}}),D={\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"}};Be(()=>k.value,()=>{dt()}),Be(()=>m.value,(r,e)=>{k.value=window.localStorage.getItem("divisions"),Me(k.value,m.value.name),je(k.value,m.value.name),Tt(m.value.name),U?Pe(k.value,m.value.name):it(k.value,m.value.name);let t=m.value.name.replace(/-/g,"_");D={\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 q={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},et=c([]);Rt(()=>{yt()});function yt(){Nt(),bt(),wt(),Ve(),Ge(),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.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),i.on("moveend",function(r){var e=i.getView().getZoom();e>=13?J.setVisible(!0):J.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 z=0;z<b.length;z++)b[z].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 u=0;u<v.length;u++)if(v[u].getGeometry().intersectsCoordinate(e)){var b=e[0],z=e[1],w=i.getView(),d=i.getView().getZoom();w.animate({center:[b,z],duration:1e3}),d>=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(u=>u.get("id")==="zhezhao"),i.removeLayer(L),t=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let u=s.result.recordsets[0].features.features[0].properties.XJQYDM;k.value=u;let b=[];Ye({divisions:"370211",yearMonth:m.value.name}).then(z=>{z.data.forEach(d=>{d.streetCode==u&&(_=d.streetName,b.push(d))});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 u=s.result.recordsets[0].features.features[0].properties.CJQYDM,b=[];ha({divisions:u,yearMonth:m.value.name}).then(z=>{z.data.forEach(w=>{b.push(w)}),_=z.data[0].streetName,he.value=b,v()})}else if(t=="\u9AD8\u6807\u51C6"&&s.result.recordsets[0].features.features[0].properties.DKMC){let u=s.result.recordsets[0].features.features[0].properties.DKMC,b=[];Je({divisions:"370211",yearMonth:m.value.name}).then(z=>{z.data.forEach(w=>{w.region==u&&b.push(w)}),b.forEach(w=>{w.type=w.level}),he.value=b,_=u,v()})}function v(){if(s.result.currentCount>0){s.result.recordsets[0].features&&(ve.setPosition(o.flatCoordinates),p.innerHTML=_),f=i.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliang"),i.removeLayer(f);var u=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);h=s.result.recordsets[0].features.features[0].geometry.coordinates,qe(s.result.recordsets[0].features.features[0].geometry.coordinates);var b=new ol.source.Vector;b.addFeatures(u);const w=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var z=new ol.layer.Vector({id:"dianjigaoliang",source:b,zIndex:9999});z.setStyle(w),i.addLayer(z)}}}),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(){Jt.get("/json/huangdao.json").then(({data:r})=>{new ol.format.GeoJSON().readFeatures(r)[0]})}function qe(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);qe(p.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var _=new ol.source.Vector;_.addFeatures(s);const u=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(u),i.addLayer(v),i.getView().fit(_.getExtent())}})}const rt=()=>{J=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(J)},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=()=>{Ie.value=0};Be(()=>ae.value,(r,e)=>{if(r.length>=e.length&&Ie.value<1)r.filter(t=>{if(e.findIndex(a=>a===t)<0)return t}).forEach(t=>{D[t]&<(D[t])});else if(r.length<e.length){const l=e.filter(t=>{if(r.findIndex(a=>a===t)<0)return t});l.forEach(t=>{D[t]&&(i.getLayers().getArray().indexOf(D[t].name),i.getLayers().getArray().forEach((o,a)=>{o.A.name&&o.A.name==D[t].name&&i.getLayers().removeAt(a)}))}),l.forEach(t=>{D[t]&&(i.getLayers().getArray().indexOf(D[t].name),i.getLayers().getArray().forEach((o,a)=>{o.A.name&&o.A.name==D[t].name&&i.getLayers().removeAt(a)}))})}nt++,nt==1&&(rt(),ot())});let me=c({label:[]});const st=r=>{Y.value=r,r?(Ve(),Ge()):(ut(),be())};function kt(){if(B.value=!B.value,B.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},Oe=()=>{let r=[],e=[];j.value=1,ga({yearMonth:C.value.time,statistical:C.value.statistical,droughtRating:C.value.droughtRating,area:C.value.area}).then(l=>{We.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),Fe.value=e.slice((j.value-1)*P.value,(j.value-1)*P.value+P.value),T.value[0].\u65E0\u51BB\u5BB3=0,T.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,T.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,T.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,T.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u65E0\u51BB\u5BB3&&(T.value[0].\u65E0\u51BB\u5BB3+=Number(a.\u65E0\u51BB\u5BB3)!==NaN?Number(a.\u65E0\u51BB\u5BB3):0),a.\u8F7B\u5EA6\u51BB\u5BB3&&(T.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&&(T.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&&(T.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(a.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(a.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const a in T.value[0])T.value[0][a]!=="\u5408\u8BA1"&&(T.value[0][a]=T.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()})},Et=()=>{R.value=!R.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()},At=()=>{let r=JSON.parse(JSON.stringify(T.value[0]));r.region="\u5408\u8BA1",Q.value.push(r),ye(Q.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},zt=()=>{C.value.time=ue.value[ue.value.length-1],C.value.statistical="\u9547",C.value.droughtRating="",C.value.area=0,de.value=1,oe.value=!0,Oe()},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]},ue.value=r.data;let e=[];r.data.forEach(o=>{e.push({name:o})}),fe.value=e,He.value=Math.ceil(fe.value.length/5),$e=Math.ceil(e.length/5),ge.value=fe.value.slice(($e-1)*pe.value,$e*pe.value),C.value.time=r.data[r.data.length-1],Oe();let t=m.value.name.replace(/-/g,"_");D={\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`}}})},Me=(r,e)=>{Re({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()})},je=(r,e)=>{let l=c([]);ft({divisions:r,yearMonth:e}).then(t=>{Te=c([]),De=c(0),t.data.forEach(o=>{De.value+=Number(o.area),Te.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,Ge()})},Tt=r=>{Je({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&&ut()})},Pe=(r,e)=>{q={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ye({divisions:r,yearMonth:e}).then(l=>{M.brr=l.data,M.arr=l.data.sort((p,f)=>p.streetName.length-f.streetName.length),M.arr.unshift({streetCode:"370211",streetName:"\u5168\u90E8"});let t=[],o=[];M.arr.forEach(p=>{t.indexOf(p.streetName)==-1&&(t.push(p.streetName),o.push({streetName:p.streetName,streetCode:p.streetCode}))}),M.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(q).forEach(s=>{L.findIndex(v=>v&&v.type===s&&v.area>0)>-1?q[s].push(1):q[s].push(null)})}),be()})},it=(r,e)=>{q={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},vt({divisions:r,yearMonth:e}).then(l=>{M.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(q).forEach(f=>{p.findIndex(s=>s&&s.type===f&&s.area>0)>-1?q[f].push(1):q[f].push(null)})}),be()})};function Dt(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);qe(p.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var u=new ol.source.Vector;u.addFeatures(v);const z=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:u});b.setStyle(z),i.addLayer(b),i.getView().fit(u.getExtent())}})}let Wt=()=>{document.querySelector(".tool").style.display="none",rt(),J.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 dt=()=>{k.value=="370211"?(Me(k.value,m.value.name),je(k.value,m.value.name),Pe(k.value,m.value.name)):(Me(k.value,m.value.name),je(k.value,m.value.name),it(k.value,m.value.name))},Ft=r=>{Re({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!0}).then(e=>{pt(e.data[e.data.length-1].downloadPath)})},It=r=>{ft({divisions:k.value,yearMonth:m.value.name,whetherToDownload:!0}).then(e=>{pt(e.data[e.data.length-1].downloadPath)})},$t=r=>{Je({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")})},qt=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")})},Ot=(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=Ot(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),ua(h,`${e}.xlsx`)},Mt=r=>{for(const l in D)i.getLayers().getArray().forEach((t,o)=>{t.A.name&&D[l].name==t.A.name&&i.getLayers().removeAt(o)});Ie.value+=1,ne.value=[];let e=[];for(const l in D)i.getLayers().getArray().forEach((t,o)=>{t.A.name==D[l].name&&i.getLayers().removeAt(o)});m.value=r,Re({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(D[t])})})};function Ve(){const r=te(Ee.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(Ee.value,()=>{_e(()=>{r.resize()})})}function Ge(){const r=te(Ae.value);var e=Te.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:`${(De.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(Ae.value,()=>{_e(()=>{r.resize()})})}function ut(){const r=te(ze.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"];Dt(t.name),L.forEach(_=>{i.getLayers().getArray().forEach((v,u)=>{v.A.name==_&&i.getLayers().removeAt(u)})});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,u)=>{(v.A.name==_||v.A.id==_)&&i.getLayers().removeAt(u)})}),J=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(J)}}),e&&r.setOption(e,{notMerge:!0,grid:{bottom:20}}),Se(r,e),xe().listenTo(ze.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 u=0;u<s.length;u++)v+=s[u].value,s[u].seriesName!=="\u5408\u8BA1"&&(_+=s[u].seriesName+"\uFF1A"+s[u].value+"</br>");for(let u=0;u<s.length;u++)v+=Number(s[u].value),s[u].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 u=0;u<s.length;u++)if(s[u].seriesName!=="\u5408\u8BA1"){const b=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s[u].color}"></span>`;v+=s[u].value,_+=b+s[u].seriesName+"\uFF1A"+s[u].value+"</br>"}for(let u=0;u<s.length;u++)s[u].seriesName==="\u5408\u8BA1"&&(_+="\u5408\u8BA1\uFF1A"+v);return _}f.formatter=L,Se(r,p)}const jt=r=>{j.value=r,Fe.value=Q.value.slice((j.value-1)*P.value,(j.value-1)*P.value+P.value)},Pt=r=>{const e=j.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",dt(),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 M.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:q.\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:q.\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:q.\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:q.\u91CD\u5EA6\u51BB\u5BB3}]};Se(r,e),xe().listenTo(Ce.value,()=>{_e(()=>{r.resize()})})}return(r,e)=>{const l=W("el-table-column"),t=W("el-table"),o=W("el-option"),a=W("el-select"),h=W("el-icon"),p=W("el-tooltip"),f=W("el-checkbox"),L=W("el-checkbox-group"),s=W("el-collapse-item"),_=W("el-collapse"),v=W("el-button"),u=W("el-form-item"),b=W("el-input-number"),z=W("el-form"),w=W("el-pagination");return S(),I("div",pa,[n("div",fa,[va,n("div",ma,[n("div",{class:"tool",onClick:e[0]||(e[0]=d=>g(Wt)())},_a),n("div",wa,[n("div",{class:we(g(Y)?"tabarS":""),onClick:e[1]||(e[1]=d=>st(!0))},"\u9EC4\u5C9B\u533A",2),n("div",{class:we(g(Y)?"":"tabarS"),onClick:e[2]||(e[2]=d=>st(!1))},"\u884C\u653F\u533A",2)]),X(n("div",Sa,[n("div",xa,[ka,La,n("p",{onClick:e[3]||(e[3]=d=>Ft())},[O(" \u4E0B\u8F7D \xA0 "),Ea])]),n("div",{ref_key:"areaDiv",ref:Ee,class:"areaDiv"},null,512)],512),[[H,g(Y)]]),X(n("div",Aa,[n("div",za,[Ca,Na,n("p",{onClick:e[4]||(e[4]=d=>It())},[O(" \u4E0B\u8F7D \xA0 "),Ta])]),n("div",{ref_key:"typesofDiv",ref:Ae,class:"typesofDiv"},null,512),n("div",Da,[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",Wa,[n("div",Fa,[Ia,$a,g(U)?(S(),I("p",{key:0,onClick:e[5]||(e[5]=d=>$t())},[O(" \u4E0B\u8F7D \xA0 "),qa])):$("",!0)]),X(n("div",{ref_key:"farmlandDiv",ref:ze,class:"farmlandDiv"},null,512),[[H,g(U)]]),g(U)?$("",!0):(S(),I("div",Oa,ja))],512),[[H,!g(Y)]]),X(n("div",Pa,[n("div",Va,[Ga,Ba,n("p",{onClick:e[6]||(e[6]=d=>qt())},[O(" \u4E0B\u8F7D \xA0 "),Qa])]),g(U)?(S(),F(a,{key:0,"popper-class":"select_city",modelValue:k.value,"onUpdate:modelValue":e[7]||(e[7]=d=>k.value=d),placeholder:"\u5168\u90E8"},{default:x(()=>[(S(!0),I(Z,null,K(g(M).arr,d=>(S(),F(o,{key:d.streetCode,label:d.streetName,value:d.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):$("",!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]=d=>kt())},[y(p,{disabled:!g(B),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:x(()=>[g(B)?(S(),F(h,{key:0},{default:x(()=>[Ra]),_:1})):$("",!0)]),_:1},8,["disabled"]),y(p,{disabled:g(B),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:x(()=>[g(B)?$("",!0):(S(),F(h,{key:0},{default:x(()=>[Ja]),_:1}))]),_:1},8,["disabled"])])]),n("div",Ya,[g(ge).length>0?(S(),F(da,{key:0,dataSource:g(ge),onDataHandle:Mt,allCount:g(He),onGetcurrentPage:Ct},null,8,["dataSource","allCount"])):$("",!0)]),Ua,y(_,{class:"legend",accordion:""},{default:x(()=>[y(s,{name:"1"},{title:x(()=>[O("\u56FE\u4F8B")]),default:x(()=>[n("div",Xa,[y(L,{modelValue:ae.value,"onUpdate:modelValue":e[9]||(e[9]=d=>ae.value=d),onChange:xt},{default:x(()=>[(S(!0),I(Z,null,K(g(le),(d,N,Gt)=>(S(),F(f,{key:Gt,"v-model":d.disabled,disabled:d.disabled,label:N},{default:x(()=>[n("span",{style:Yt({background:d.color,border:`1px solid ${d.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),O(" "+ee(N),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),n("div",Ha,[Za,n("div",Ka,[(S(!0),I(Z,null,K(g(he),(d,N)=>(S(),I("div",{class:"perform",key:N},[n("div",er,[n("div",tr,ee(d.type)+":",1),n("span",null,ee(Number(d.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),ar]),n("div",rr,[(S(!0),I(Z,null,K(g(me).label,(d,N)=>(S(),I("div",{key:N},[n("div",null,ee(d.crop)+"\uFF1A",1),n("div",null,ee(d.Shape_Area)+" \u4EA9",1)]))),128)),g(me).XZQMC?(S(),I("div",or,[lr,n("div",null,ee(g(me).XZQMC),1)])):$("",!0)]),Ne.value?(S(),F(v,{key:0,class:"back_button",onClick:e[10]||(e[10]=d=>Vt())},{default:x(()=>[O("\u8FD4\u56DE")]),_:1})):$("",!0)]),n("div",nr,[n("div",sr,[y(z,{inline:!0,model:g(C),class:"demo-form-inline"},{default:x(()=>[y(u,{label:"\u65F6\u95F4:"},{default:x(()=>[y(a,{"popper-class":"selectCity",modelValue:g(C).time,"onUpdate:modelValue":e[11]||(e[11]=d=>g(C).time=d),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[(S(!0),I(Z,null,K(g(ue),(d,N)=>(S(),F(o,{key:N,label:r.Zitem,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),y(u,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:x(()=>[y(a,{"popper-class":"selectCity",modelValue:g(C).statistical,"onUpdate:modelValue":e[12]||(e[12]=d=>g(C).statistical=d),placeholder:"\u8BF7\u9009\u62E9"},{default:x(()=>[y(o,{label:"\u9547\u7EA7",value:"\u9547"}),y(o,{label:"\u6751\u7EA7",value:"\u6751"}),g(U)?(S(),F(o,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):$("",!0)]),_:1},8,["modelValue"])]),_:1}),y(u,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:x(()=>[y(a,{modelValue:g(C).droughtRating,"onUpdate:modelValue":e[13]||(e[13]=d=>g(C).droughtRating=d),"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(u,{label:"\u9762\u79EF(\u4EA9)>"},{default:x(()=>[y(b,{modelValue:de.value,"onUpdate:modelValue":e[14]||(e[14]=d=>de.value=d),min:1,onChange:Lt},null,8,["modelValue"])]),_:1}),y(u,null,{default:x(()=>[y(v,{type:"primary",onClick:Oe},{default:x(()=>[O("\u67E5\u8BE2")]),_:1}),y(v,{plain:"",onClick:zt,disabled:!g(R)},{default:x(()=>[O(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(oe)?$("",!0):(S(),F(v,{key:0,type:"primary",text:"",onClick:At},{default:x(()=>[ir,O(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),n("div",{class:"modeDiv",onClick:Et},[n("div",{class:we(g(R)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),n("div",{class:we(g(R)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),X(n("div",dr,[n("div",ur,[g(oe)?$("",!0):(S(),F(t,{key:0,data:g(T),"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),I(Z,null,K(g(We),(d,N)=>(S(),F(l,{key:N,prop:d.value,label:N==0?d.lable:d.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(oe)?(S(),F(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:x(d=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:N=>r.download(d.row)}," \u4E0B\u8F7D ",8,cr)]),_:1})):$("",!0)]),_:1},8,["data"]))]),y(t,{data:g(Fe),"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),I(Z,null,K(g(We),(d,N)=>(S(),F(l,{key:N,prop:d.value,label:N==0?d.lable:d.lable+"(\u4EA9)",align:"center"},null,8,["prop","label"]))),128)),g(oe)?(S(),F(l,{key:0,prop:"address",align:"center",label:"\u64CD\u4F5C"},{default:x(d=>[n("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:N=>r.download(d.row)}," \u4E0B\u8F7D ",8,gr)]),_:1})):$("",!0)]),_:1},8,["data"]),n("div",hr,[O(" \u5171"+ee(Q.value.length)+"\u6761 ",1),y(w,{background:"",layout:"prev, pager, next",total:Q.value.length,"current-page":g(j),"page-size":g(P),onCurrentChange:jt},null,8,["total","current-page","page-size"])])],512),[[H,g(R)]]),X(n("div",pr,[n("div",{ref_key:"chartModeDiv",ref:ce,class:"chartModeDiv"},null,512)],512),[[H,!g(R)]])])])}}},Fr=Bt(fr,[["__scopeId","data-v-7de0d568"]]);export{Fr as default};
|