Agriculture-front-end/dist/assets/Freeze.35490172.js
2023-07-26 17:29:34 +08:00

2 lines
46 KiB
JavaScript

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