2 lines
46 KiB
JavaScript
2 lines
46 KiB
JavaScript
import{K as G,_ as $t,u as Bt,r as f,D as ot,x as je,t as Vt,X as lt,v as Gt,M as fe,d as T,o as w,c as N,k as i,m as j,e as m,w as S,f as g,l as q,j as F,P as X,Q as H,I as It,y as Z,J as nt,G as st,H as it,B as Qt,p as Pt,q as Jt}from"./index.db81687b.js";import me from"./downloads.4cdbbcc5.js";import{_ as ve}from"./linesGL.99030c5a.js";import{_ as Rt}from"./fh.5fefbcf9.js";import{_ as Yt,a as Xt,b as Ht,c as Zt}from"./position.a021215f.js";import{_ as Ut,a as Kt}from"./face.2eec3bdc.js";import{_ as ea}from"./icon.d0cb5387.js";import{_ as ta}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as aa}from"./TimeLine.5d80dd5c.js";import{u as ge}from"./useEcharts.7cdde45a.js";import{d as ut}from"./download.67ee05d3.js";import{u as Me,w as ra}from"./xlsx.86b9426e.js";import{e as he}from"./element-resize-detector.d8720798.js";import{i as U,L as pe}from"./install.49294472.js";/* empty css */function $e(z){return G({url:"equipment/statisticsOfTheArea",method:"get",params:z})}function dt(z){return G({url:"equipment/proportionOfTheArea",method:"get",params:z})}function Be(z){return G({url:"equipment/eachFreezingGradeArea",method:"get",params:z})}function Ve(z){return G({url:"equipment/townshipArea",method:"get",params:z})}function ct(z){return G({url:"equipment/administrativeArea",method:"get",params:z})}function oa(z){return G({url:"equipment/freezeWarningYear",method:"get",params:z})}function la(z){return G({url:"equipment/freezeWarning",method:"get",params:z})}function na(z){return G({url:"equipment/administrativeAreaChun",method:"get",params:z})}const W=z=>(Pt("data-v-692b0447"),z=z(),Jt(),z),sa={class:"fatherDiv"},ia={class:"centerBox"},ua=W(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),da={class:"leftWra"},ca={class:"leftTop"},fa={class:"title"},ga=W(()=>i("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),ha=W(()=>i("img",{src:me,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),pa={class:"leftbottom"},ma={class:"title"},va=W(()=>i("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),ya=W(()=>i("img",{src:me,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ba={class:"tableDiv"},_a={key:0,src:ve,alt:""},wa={key:0,class:"imgrotate",src:ve,alt:""},Sa={class:"rightWra"},xa=W(()=>i("img",{src:Rt},null,-1)),ka=W(()=>i("span",null,"\u8FD4\u56DE",-1)),La=[xa,ka],za={class:"rightTop"},Ca={class:"title"},Ea=W(()=>i("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Aa=W(()=>i("img",{src:me,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Na={class:"rightbottom"},Wa={class:"title"},Da=W(()=>i("span",null,"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ta=W(()=>i("img",{src:me,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),qa={key:0,src:ve,alt:""},Fa={key:0,class:"imgrotate",src:ve,alt:""},Oa={class:"bottom_center"},ja=Qt('<div class="tool" data-v-692b0447><span data-v-692b0447><img src="'+Yt+'" alt="" data-v-692b0447></span><span data-v-692b0447><img src="'+Xt+'" alt="" data-v-692b0447></span><span data-v-692b0447><img src="'+Ht+'" alt="" data-v-692b0447></span><span data-v-692b0447><img src="'+Ut+'" alt="" data-v-692b0447></span><span data-v-692b0447><img src="'+Kt+'" alt="" data-v-692b0447></span><span data-v-692b0447><img src="'+Zt+'" alt="" data-v-692b0447></span></div>',1),Ma={class:"mt-4"},$a={id:"popup",class:"ol-popup"},Ba=W(()=>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)),Va={id:"popup-content",style:{padding:"10px"}},Ga={class:"perform_children"},Ia=W(()=>i("img",{src:ea},null,-1)),Qa=W(()=>i("div",{id:"popup-pagination"},null,-1)),Pa={id:"pop"},Ja={key:0},Ra=W(()=>i("div",null,"\u6751\u540D\uFF1A",-1)),Ya={class:"tabulation"},Xa={class:"searchDiv"},Ha=W(()=>i("img",{src:ta,alt:""},null,-1)),Za={class:"tableBox"},Ua={class:"tableBorder"},Ka=["onClick"],er=["onClick"],tr={class:"example-pagination-block"},ar={class:"chartMode"},rr={__name:"Freeze",setup(z){const Ge=Bt();let ft=f(null);const ye=f(null),be=f(null),_e=f(null);f(null);const we=f(null),k=f("370211");k.value=window.localStorage.getItem("divisions");const gt=f(null);let M=ot({arr:[],brr:[],crr:[]});f({}),f([]);const Se=f(!1);let I=f(!1),Q=f(!1);const P=f(["false"]);let ae=f([]),K=ot({lable:[],value:[]}),xe=f([]),ke=f(0),$=f(1),B=f(12);const J=f([]),Le=f(1);let ze=f([]),Ce=f([]),ee=f(!0),Ee=f([]);const ne=f(null);let R=f(!0),Y=f(null),Ae=f([]),v=f(""),Ie=f(""),se=f([]),Ne=f(0),re=!(window.localStorage.getItem("divisions").length>6),Qe=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),D=f([{\u65E0\u51BB\u5BB3:0,\u8F7B\u5EA6\u51BB\u5BB3:0,\u4E2D\u5EA6\u51BB\u5BB3:0,\u91CD\u5EA6\u51BB\u5BB3:0}]),A=f({time:"",statistical:"\u9547",droughtRating:"",area:Le.value}),Pe=["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:[]},te=f({\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}}),C={\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"}};je(()=>k.value,()=>{Ke()}),je(()=>v.value,(a,e)=>{k.value=window.localStorage.getItem("divisions"),Te(k.value,v.value.name),qe(k.value,v.value.name),zt(v.value.name),re?Fe(k.value,v.value.name):Ue(k.value,v.value.name);let r=v.value.name.replace(/-/g,"_");C={\u65E0\u51BB\u5BB3:{setOf:`${v.value.name}-lengdong`,name:`T${r}_wudonghai`},\u8F7B\u5EA6\u51BB\u5BB3:{setOf:`${v.value.name}-lengdong`,name:`T${r}_qingdudonghai`},\u4E2D\u5EA6\u51BB\u5BB3:{setOf:`${v.value.name}-lengdong`,name:`T${r}_medium_donghai`},\u91CD\u5EA6\u51BB\u5BB3:{setOf:`${v.value.name}-lengdong`,name:`T${r}_serious_donghai`}}});var oe={title:[]};let O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Je=f([]);Vt(()=>{ht()});function ht(){Lt(),pt(),vt(),et(),tt(),Oe(),mt();for(const l in te.value)te.value[l].disabled!==!0&&ae.value.push(l);P.value=ae.value;let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)",localStorage.setItem(Ge.currentRoute.value.path,!0)}lt(()=>{localStorage.getItem(Ge.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")}),f(null),f(null);let Re=f(null),ie=f(null),u=f(null);function pt(){u=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"})})]}),u.on("moveend",function(a){var e=u.getView().getZoom();e>=13?Y.setVisible(!0):Y.setVisible(!1)}),u.on("singleclick",function(a){var e=a.coordinate;if(re){var l=e[0],r=e[1],o=u.getView(),t=u.getView().getZoom();o.animate({center:[l,r],duration:1e3});let d=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach(p=>{u.getLayers().getArray().forEach((x,s)=>{if(p==x.A.name){d=!0;return}})}),d)t>=13?le(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):le(a,"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 = '${Ie.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 E=0;E<_.length;E++)_[E].getGeometry().intersectsCoordinate(e)&&le(a,"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 d="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 = '${Qe}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(d).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 c=0;c<b.length;c++)if(b[c].getGeometry().intersectsCoordinate(e)){var _=e[0],E=e[1],n=u.getView(),L=u.getView().getZoom();n.animate({center:[_,E],duration:1e3}),L>=13?le(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):le(a,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")}})}}),yt(Qe)}lt(()=>{var a=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),l=new ResizeObserver(function(r){r.forEach(function(o){var t=o.contentRect.width,d=o.contentRect.height;e.style.width=t+"px",e.style.height=d+"px",u.updateSize()})});l.observe(a)});function le(a,e,l,r){var o=new ol.geom.Point(a.coordinate),t=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:o});let d=[],h=document.querySelector("#popup-title"),p=f(null),x=f(null);new ol.supermap.QueryService(l).queryByGeometry(t,function(s){let y="";if(x=u.getLayers().getArray().find(c=>c.get("id")==="zhezhao"),u.removeLayer(x),r=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let c=s.result.recordsets[0].features.features[0].properties.XJQYDM;k.value=c;let _=[];Ve({divisions:"370211",yearMonth:v.value.name}).then(E=>{E.data.forEach(L=>{L.streetCode==c&&(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(r=="\u6751"&&s.result.recordsets[0].features.features[0].properties.CJQYDM){let c=s.result.recordsets[0].features.features[0].properties.CJQYDM,_=[];na({divisions:c,yearMonth:v.value.name}).then(E=>{E.data.forEach(n=>{_.push(n)}),y=E.data[0].streetName,se.value=_,b()})}else if(r=="\u9AD8\u6807\u51C6"&&s.result.recordsets[0].features.features[0].properties.DKMC){let c=s.result.recordsets[0].features.features[0].properties.DKMC,_=[];Be({divisions:"370211",yearMonth:v.value.name}).then(E=>{E.data.forEach(n=>{n.region==c&&_.push(n)}),_.forEach(n=>{n.type=n.level}),se.value=_,y=c,b()})}function b(){if(s.result.currentCount>0){s.result.recordsets[0].features&&(ie.setPosition(o.flatCoordinates),h.innerHTML=y),p=u.getLayers().getArray().find(L=>L.get("id")==="dianjigaoliang"),u.removeLayer(p);var c=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);d=s.result.recordsets[0].features.features[0].geometry.coordinates,ue(s.result.recordsets[0].features.features[0].geometry.coordinates);var _=new ol.source.Vector;_.addFeatures(c);const n=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var E=new ol.layer.Vector({id:"dianjigaoliang",source:_,zIndex:9999});E.setStyle(n),u.addLayer(E)}}}),Re.addEventListener("click",function(){x=u.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),u.removeLayer(x),Ye(d),k.value=window.localStorage.getItem("divisions"),p=u.getLayers().getArray().find(s=>s.get("id")==="dianjigaoliang"),u.removeLayer(p),ie.setPosition(void 0)})}const mt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Re=document.getElementById("popup-closer"),ie=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),u.addOverlay(ie)};function vt(){Gt.get("/json/huangdao.json").then(({data:a})=>{const l=new ol.format.GeoJSON().readFeatures(a)[0];ue(l.getGeometry().getCoordinates(),"huandao")})}function ue(a,e,l,r){let o=new ol.source.Vector;var t=new ol.layer.Vector({id:e||"zhezhao",source:o,zIndex:r||50,style:new ol.style.Style({fill:new ol.style.Fill({color:l||"rgba( 105, 105, 105, 0.9)"})})});const d=Ye(a),h=new ol.Feature({geometry:d});t.getSource().addFeature(h),u.addLayer(t)}function Ye(a){const e=[-180,-90,180,90],l=ol.geom.Polygon.fromExtent(e);return a.forEach(o=>{const t=new ol.geom.LinearRing(o[0]);l.appendLinearRing(t)}),l}function yt(a){let e="",l="",r="",o="",t="";l="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",e=a,r="XJQY3702112019WGS84",o="huangdaoqu_bianjie",t="XJQYMC";var d=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${o}`,attributeFilter:`${t} like '%${e}%'`},datasetNames:[`${o}:${r}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(d,function(h){if(h.result.featureCount!=0){var p=u.getLayers().getArray().find(_=>_.get("id")==="zhezhao");u.removeLayer(p);var x=u.getLayers().getArray().find(_=>_.get("id")==="dianjigaoliang");u.removeLayer(x);var s=new ol.format.GeoJSON().readFeatures(h.result.features);ue(h.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var y=new ol.source.Vector;y.addFeatures(s);const c=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(c),u.addLayer(b),u.getView().fit(y.getExtent())}})}const Xe=()=>{Y=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}),u.addLayer(Y)},He=()=>{var a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});u.addLayer(a)},We=a=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${a.setOf}/rest/maps/${a.name}@${a.setOf}`,cacheEnabled:!1}),name:a.name,projection:"EPSG:4326"});u.addLayer(e)};let Ze=0;je(()=>P.value,(a,e)=>{let l=[];if(u.getLayers().getArray().forEach((r,o)=>{r.A.name&&l.push(r.A.name)}),(Ne.value>0&&a.length<e.length||Ne.value>0&&a.length>e.length)&&P.value.forEach(r=>{if(l.indexOf(C[r].name)==-1){We(C[r]);return}}),a.length>=e.length)a.length==e.length?P.value.forEach(r=>{l.indexOf(C[r].name)==-1&&We(C[r])}):a.filter(o=>{if(e.findIndex(d=>d===o)<0)return o}).forEach(o=>{C[o]&&l.indexOf(C[o].name)==-1&&We(C[o])});else if(a.length<e.length){const r=e.filter(o=>{if(a.findIndex(d=>d===o)<0)return o});r.forEach(o=>{C[o]&&(u.getLayers().getArray().indexOf(C[o].name),u.getLayers().getArray().forEach((t,d)=>{t.A.name&&t.A.name==C[o].name&&u.getLayers().removeAt(d)}))}),r.forEach(o=>{C[o]&&(u.getLayers().getArray().indexOf(C[o].name),u.getLayers().getArray().forEach((t,d)=>{t.A.name&&t.A.name==C[o].name&&u.getLayers().removeAt(d)}))})}Ze++,Ze==1&&(Xe(),He())});let de=f({label:[]});function bt(){if(I.value=!I.value,I.value){let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(0,0)")}else{let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)")}}function _t(){if(Q.value=!Q.value,Q.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(107%,0)"}}const wt=a=>{A.value.area=a},De=()=>{let a=[],e=[];$.value=1,la({yearMonth:A.value.time,statistical:A.value.statistical,droughtRating:A.value.droughtRating,area:A.value.area}).then(l=>{Ce.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=>{a.indexOf(t.region)==-1&&a.push(t.region)}),a.forEach(t=>{e.push(Object.create(null,{regio:{value:t}}))}),e.forEach(t=>{l.data.map(d=>{t.regio===d.region&&(t.region=d.region,t[d.level]=Number(d.area).toFixed(2))})}),ee.value=!1,J.value=e.sort((t,d)=>t.region.length-d.region.length),Ee.value=e.slice(($.value-1)*B.value,($.value-1)*B.value+B.value),D.value[0].\u65E0\u51BB\u5BB3=0,D.value[0].\u8F7B\u5EA6\u51BB\u5BB3=0,D.value[0].\u4E2D\u5EA6\u51BB\u5BB3=0,D.value[0].\u91CD\u5EA6\u51BB\u5BB3=0,D.value[0].region="\u5408\u8BA1",e.forEach(t=>{t.\u65E0\u51BB\u5BB3&&(D.value[0].\u65E0\u51BB\u5BB3+=Number(t.\u65E0\u51BB\u5BB3)!==NaN?Number(t.\u65E0\u51BB\u5BB3):0),t.\u8F7B\u5EA6\u51BB\u5BB3&&(D.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&&(D.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&&(D.value[0].\u91CD\u5EA6\u51BB\u5BB3+=Number(t.\u91CD\u5EA6\u51BB\u5BB3)!==NaN?Number(t.\u91CD\u5EA6\u51BB\u5BB3):0)});for(const t in D.value[0])D.value[0][t]!=="\u5408\u8BA1"&&(D.value[0][t]=D.value[0][t].toFixed(2));const r=ne.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const o=U(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",o.resize()}),at()})},St=()=>{R.value=!R.value;const a=ne.value;a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px";const e=U(a);window.addEventListener("resize",()=>{a.style.width=window.innerWidth-200+"px",a.style.height=window.innerHeight-200+"px",e.resize()}),at()},xt=()=>{let a=JSON.parse(JSON.stringify(D.value[0]));a.region="\u5408\u8BA1",J.value.push(a),ce(J.value,"\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},kt=()=>{A.value.time=ze.value[0],A.value.statistical="\u9547",A.value.droughtRating="",A.value.area=0,ee.value=!0,De()},Lt=()=>{oa().then(a=>{v.value={name:a.data[0]},a.data.forEach(r=>{Ae.value.push({name:r})}),ze.value=a.data,A.value.time=a.data[0],De();let l=v.value.name.replace(/-/g,"_");C={\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`}}})},Te=(a,e)=>{K.lable=[],K.value=[],$e({divisions:a,yearMonth:e}).then(l=>{l.data.forEach(r=>{K.lable.push(r.level),K.value.push(r.area)}),et()})},qe=(a,e)=>{let l=f([]);dt({divisions:a,yearMonth:e}).then(r=>{xe=f([]),ke=f(0),r.data.forEach(o=>{ke.value+=Number(o.area),xe.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)}%`})}),Je.value=l.value,tt()})},zt=a=>{Be({yearMonth:a}).then(e=>{V={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Pe.forEach((l,r)=>{let o=e.data.map(t=>{if(l===t.region)return t});Object.keys(V).forEach(t=>{let d=0;o.findIndex(p=>(p&&p.level===t&&(d=p.area),p&&p.level===t))>-1?V[t].push(d):V[t].push(0)})}),e.data.length>0&&Ft()})},Fe=(a,e)=>{O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},Ve({divisions:a,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 r=[],o=[];M.arr.forEach(h=>{r.indexOf(h.streetName)==-1&&(r.push(h.streetName),o.push({streetName:h.streetName,streetCode:h.streetCode}))}),M.arr=o;let t=[...l.data],d=[];t.splice(0,1),t.forEach(h=>{d.indexOf(h.streetName)==-1&&d.push(h.streetName)}),oe.title=[...Object.values(d)],oe.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)})}),Oe()})},Ue=(a,e)=>{O={\u65E0\u51BB\u5BB3:[],\u8F7B\u5EA6\u51BB\u5BB3:[],\u4E2D\u5EA6\u51BB\u5BB3:[],\u91CD\u5EA6\u51BB\u5BB3:[]},ct({divisions:a,yearMonth:e}).then(l=>{M.brr=l.data;let r=[...l.data],o=[];r.splice(0,1),r.forEach(t=>{o.indexOf(t.streetName)==-1&&o.push(t.streetName)}),oe.title=[...Object.values(o)],oe.title.forEach((t,d)=>{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)})}),Oe()})};function Ct(a){let e="",l="",r="",o="",t="";l="http://36.134.44.75:8090/iserver/services/data-2019-2022gaobiaozhunnongtian/rest/data",e=a,r="T2019_2022\u9AD8\u6807\u51C6\u519C\u7530\u7247\u533A",o="2019-2022gaobiaozhunnongtian",t="DKMC";var d=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${o}`,attributeFilter:`${t} like '%${e}%'`},datasetNames:[`${o}:${r}`]});new ol.supermap.FeatureService(l).getFeaturesBySQL(d,function(h){if(h.result.featureCount!=0){var p=u.getLayers().getArray().find(n=>n.get("id")==="zhezhao");u.removeLayer(p);var x=u.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliang");u.removeLayer(x);var s=u.getLayers().getArray().find(n=>n.get("id")==="gbz");u.removeLayer(s);var y=u.getLayers().getArray().find(n=>n.get("id")==="dianjigaoliangs");u.removeLayer(y);var b=new ol.format.GeoJSON().readFeatures(h.result.features);ue(h.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var c=new ol.source.Vector;c.addFeatures(b);const E=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var _=new ol.layer.Vector({id:"dianjigaoliang",source:c});_.setStyle(E),u.addLayer(_),u.getView().fit(c.getExtent())}})}let Et=()=>{document.querySelector(".tool").style.display="none",Xe(),Y.setVisible(!1),He(),["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach(l=>{u.getLayers().getArray().forEach((r,o)=>{(r.A.name==l||r.A.id==l)&&u.getLayers().removeAt(o)})});var e=u.getView();e.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const Ke=()=>{k.value=="370211"?(Te(k.value,v.value.name),qe(k.value,v.value.name),Fe(k.value,v.value.name)):(Te(k.value,v.value.name),qe(k.value,v.value.name),Ue(k.value,v.value.name))},At=a=>{$e({divisions:k.value,yearMonth:v.value.name,whetherToDownload:!0}).then(e=>{ut(e.data[e.data.length-1].downloadPath)})},Nt=a=>{dt({divisions:k.value,yearMonth:v.value.name,whetherToDownload:!0}).then(e=>{ut(e.data[e.data.length-1].downloadPath)})},Wt=a=>{Be({divisions:k.value,yearMonth:v.value.name,whetherToDownload:!1}).then(e=>{let l=[],r=[];e.data.forEach(o=>{l.indexOf(o.region)==-1&&l.push(o.region)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.region&&(o.region=t.region,o[t.level]=Number(t.area).toFixed(2))})}),ce(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Dt=a=>{k.value==="370211"?Ve({divisions:k.value,yearMonth:v.value.name}).then(e=>{let l=[],r=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.streetName&&(o.region=t.streetName,o[t.type]=Number(t.area).toFixed(2))})}),r=r.sort((o,t)=>o.region.length-t.region.length),ce(r,"\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=[],r=[];e.data.forEach(o=>{l.indexOf(o.streetName)==-1&&l.push(o.streetName)}),l.forEach(o=>{r.push(Object.create(null,{regio:{value:o}}))}),r.forEach(o=>{e.data.map(t=>{o.regio===t.streetName&&(o.region=t.streetName,o[t.type]=Number(t.area).toFixed(2))})}),ce(r,"\u5404\u51B7\u51BB\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530","Sheet1")})},Tt=(a,e)=>a.map(r=>{const o={};for(const t in r)e[t]=="\u533A\u57DF\u540D\u79F0"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u65E0\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u8F7B\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u4E2D\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);for(const t in r)e[t]=="\u91CD\u5EA6\u51BB\u5BB3(\u4EA9)"&&(o[e[t]]=r[t]);return o}),ce=(a,e="\u7528\u6237\u5217\u8868",l="Sheet1")=>{const o=Tt(a,{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=Me.json_to_sheet(o),d=Me.book_new();Me.book_append_sheet(d,t,l),ra(d,`${e}.xlsx`)},qt=a=>{for(const l in C)u.getLayers().getArray().forEach((r,o)=>{r.A.name&&C[l].name==r.A.name&&u.getLayers().removeAt(o)});Ne.value+=1,ae.value=[];let e=[];for(const l in C)u.getLayers().getArray().forEach((r,o)=>{r.A.name==C[l].name&&u.getLayers().removeAt(o)});v.value=a,$e({divisions:"370211",yearMonth:v.value.name}).then(l=>{l.data.forEach(r=>{console.log(r),Number(r.area)>1?te.value[r.level].disabled=!1:te.value[r.level].disabled=!0,e=te});for(const r in e.value)e.value[r].disabled!==!0&&ae.value.push(r);P.value=ae.value})};function et(){const a=U(ye.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&&a.setOption(e),he().listenTo(ye.value,()=>{fe(()=>{a.resize()})})}function tt(){const a=U(be.value);var e=xe.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:`${(ke.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"}}}]}]};ge(a,l),he().listenTo(be.value,()=>{fe(()=>{a.resize()})})}function Ft(){const a=U(_e.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:Pe,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 pe(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 pe(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 pe(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 pe(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};a.on("click",function(r){document.querySelector(".tool").style.display="block",Ie.value=r.name;let o=["XJQY3702112019WGS84","CJQY3702112019WGS84"];Ct(r.name),o.forEach(x=>{u.getLayers().getArray().forEach((s,y)=>{s.A.name==x&&u.getLayers().removeAt(y)})});for(var t=document.querySelectorAll(".alerDiv"),d=0;d<t.length;d++){var h=t[d];h.style.display="none"}["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs"].forEach(x=>{u.getLayers().getArray().forEach((s,y)=>{console.log(s.A),(s.A.name==x||s.A.id==x)&&u.getLayers().removeAt(y)})}),Y=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}),u.addLayer(Y)}),e&&a.setOption(e,{notMerge:!0,grid:{bottom:20}}),ge(a,e),he().listenTo(_e.value,()=>{fe(()=>{a.resize()})})}function at(){const a=U(ne.value);let e=[],l=[],r=[],o=[],t=[];J.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?t.push(s.\u91CD\u5EA6\u51BB\u5BB3):t.push(0),s.\u8F7B\u5EA6\u51BB\u5BB3!==void 0?r.push(s.\u8F7B\u5EA6\u51BB\u5BB3):r.push(0)});let d=10/e.length*100,h={tooltip:{trigger:"axis",formatter:function(s){let y=s[0].axisValueLabel+"</br>",b=0;for(let c=0;c<s.length;c++)b+=s[c].value,s[c].seriesName!=="\u5408\u8BA1"&&(y+=s[c].seriesName+"\uFF1A"+s[c].value+"</br>");for(let c=0;c<s.length;c++)b+=Number(s[c].value),s[c].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:d,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:r},{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:t}]};h.series;var p=h.tooltip;function x(s){let y=s[0].axisValueLabel+"</br>",b=0;for(let c=0;c<s.length;c++)if(s[c].seriesName!=="\u5408\u8BA1"){const _=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${s[c].color}"></span>`;b+=s[c].value,y+=_+s[c].seriesName+"\uFF1A"+s[c].value+"</br>"}for(let c=0;c<s.length;c++)s[c].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+b);return y}p.formatter=x,ge(a,h)}const Ot=a=>{$.value=a,Ee.value=J.value.slice(($.value-1)*B.value,($.value-1)*B.value+B.value)},jt=a=>{const e=$.value,l=B.value;return a+1+(e-1)*l};function Mt(){Fe("370211"),delete de.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),removeWms(["gbznt"],!0),removeWms(["aaa"]),k.value="370211",Ke(),Se.value==="1"&&addWms("huangdaoqu_town","huangdaoqu_town"),ft.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Se.value=!1}function Oe(){const a=U(we.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(r){let o=0;return M.brr.forEach(t=>{t.type==r.seriesName&&t.streetName==r.name&&(o=Number(t.area).toFixed(2))}),r.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(255, 255, 255, 1)",formatter:"{value}"},data:oe.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}]};ge(a,e),he().listenTo(we.value,()=>{fe(()=>{a.resize()})})}return(a,e)=>{const l=T("el-table-column"),r=T("el-table"),o=T("el-tooltip"),t=T("el-option"),d=T("el-select"),h=T("el-checkbox"),p=T("el-checkbox-group"),x=T("el-collapse-item"),s=T("el-collapse"),y=T("el-button"),b=T("el-form-item"),c=T("el-input-number"),_=T("el-form"),E=T("el-pagination");return w(),N("div",sa,[i("div",ia,[ua,i("div",da,[i("div",ca,[i("div",fa,[ga,i("p",{onClick:e[0]||(e[0]=n=>At())},[j(" \u4E0B\u8F7D \xA0 "),ha])]),i("div",{ref_key:"areaDiv",ref:ye,class:"areaDiv"},null,512),i("div",{ref_key:"leftProgressBarDiv",ref:gt,class:"ProgressBar"},null,512)]),i("div",pa,[i("div",ma,[va,i("p",{onClick:e[1]||(e[1]=n=>Nt())},[j(" \u4E0B\u8F7D \xA0 "),ya])]),i("div",{ref_key:"typesofDiv",ref:be,class:"typesofDiv"},null,512),i("div",ba,[m(r,{data:g(Je),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=>bt())},[m(o,{class:"box-item","show-arrow":!1,disabled:g(I),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[g(I)?q("",!0):(w(),N("img",_a))]),_:1},8,["disabled"]),m(o,{disabled:!g(I),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[g(I)?(w(),N("img",wa)):q("",!0)]),_:1},8,["disabled"])])]),i("div",Sa,[i("div",{class:"tool",onClick:e[3]||(e[3]=n=>g(Et)())},La),i("div",za,[i("div",Ca,[Ea,g(re)?(w(),N("p",{key:0,onClick:e[4]||(e[4]=n=>Wt())},[j(" \u4E0B\u8F7D \xA0 "),Aa])):q("",!0)]),i("div",{ref_key:"farmlandDiv",ref:_e,class:"farmlandDiv"},null,512)]),i("div",Na,[i("div",Wa,[Da,i("p",{onClick:e[5]||(e[5]=n=>Dt())},[j(" \u4E0B\u8F7D \xA0 "),Ta])]),g(re)?(w(),F(d,{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),N(X,null,H(g(M).arr,n=>(w(),F(t,{key:n.streetCode,label:n.streetName,value:n.streetCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):q("",!0),i("div",{ref_key:"ASdivisionDiv",ref:we,class:"ASdivision"},null,512)]),i("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=n=>_t())},[m(o,{disabled:!g(Q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:S(()=>[g(Q)?(w(),N("img",qa)):q("",!0)]),_:1},8,["disabled"]),m(o,{disabled:g(Q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:S(()=>[g(Q)?q("",!0):(w(),N("img",Fa))]),_:1},8,["disabled"])])]),i("div",Oa,[g(Ae).length>0?(w(),F(aa,{key:0,dataSource:g(Ae),onDataHandle:qt},null,8,["dataSource"])):q("",!0)]),ja,m(s,{class:"legend",accordion:""},{default:S(()=>[m(x,{name:"1"},{title:S(()=>[j("\u56FE\u4F8B")]),default:S(()=>[i("div",Ma,[m(p,{modelValue:P.value,"onUpdate:modelValue":e[8]||(e[8]=n=>P.value=n),onChange:a.change},{default:S(()=>[(w(!0),N(X,null,H(g(te),(n,L,rt)=>(w(),F(h,{key:rt,"v-model":n.disabled,disabled:n.disabled,label:L},{default:S(()=>[i("span",{style:It({background:n.color,border:`1px solid ${n.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),j(" "+Z(L),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),i("div",$a,[Ba,i("div",Va,[(w(!0),N(X,null,H(g(se),(n,L)=>(w(),N("div",{class:"perform",key:L},[i("div",Ga,[Ia,i("span",null,Z(n.type),1),j(" : "),i("span",null,Z(Number(n.area).toFixed(2))+"(\u4EA9)",1)])]))),128))]),Qa]),i("div",Pa,[(w(!0),N(X,null,H(g(de).label,(n,L)=>(w(),N("div",{key:L},[i("div",null,Z(n.crop)+"\uFF1A",1),i("div",null,Z(n.Shape_Area)+" \u4EA9",1)]))),128)),g(de).XZQMC?(w(),N("div",Ja,[Ra,i("div",null,Z(g(de).XZQMC),1)])):q("",!0)]),Se.value?(w(),F(y,{key:0,class:"back_button",onClick:e[9]||(e[9]=n=>Mt())},{default:S(()=>[j("\u8FD4\u56DE")]),_:1})):q("",!0)]),i("div",Ya,[i("div",Xa,[m(_,{inline:!0,model:g(A),class:"demo-form-inline"},{default:S(()=>[m(b,{label:"\u65F6\u95F4:"},{default:S(()=>[m(d,{"popper-class":"selectCity",modelValue:g(A).time,"onUpdate:modelValue":e[10]||(e[10]=n=>g(A).time=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[(w(!0),N(X,null,H(g(ze),(n,L)=>(w(),F(t,{key:L,label:a.Zitem,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),m(b,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:S(()=>[m(d,{"popper-class":"selectCity",modelValue:g(A).statistical,"onUpdate:modelValue":e[11]||(e[11]=n=>g(A).statistical=n),placeholder:"\u8BF7\u9009\u62E9"},{default:S(()=>[m(t,{label:"\u9547\u7EA7",value:"\u9547"}),m(t,{label:"\u6751\u7EA7",value:"\u6751"}),g(re)?(w(),F(t,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):q("",!0)]),_:1},8,["modelValue"])]),_:1}),m(b,{label:"\u51B7\u51BB\u7B49\u7EA7"},{default:S(()=>[m(d,{modelValue:g(A).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=n=>g(A).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(c,{modelValue:Le.value,"onUpdate:modelValue":e[13]||(e[13]=n=>Le.value=n),min:1,onChange:wt},null,8,["modelValue"])]),_:1}),m(b,null,{default:S(()=>[m(y,{type:"primary",onClick:De},{default:S(()=>[j("\u67E5\u8BE2")]),_:1}),m(y,{plain:"",onClick:kt,disabled:!g(R)},{default:S(()=>[j(" \u91CD\u7F6E ")]),_:1},8,["disabled"]),g(ee)?q("",!0):(w(),F(y,{key:0,type:"primary",text:"",onClick:xt},{default:S(()=>[Ha,j(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"]),i("div",{class:"modeDiv",onClick:St},[i("div",{class:nt(g(R)?"Selected":"")},"\u8868\u683C\u6A21\u5F0F",2),i("div",{class:nt(g(R)?"":"Selecteds")},"\u56FE\u8868\u6A21\u5F0F",2)])]),st(i("div",Za,[i("div",Ua,[g(ee)?q("",!0):(w(),F(r,{key:0,data:g(D),"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),N(X,null,H(g(Ce),(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)),g(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=>a.download(n.row)}," \u4E0B\u8F7D ",8,Ka)]),_:1})):q("",!0)]),_:1},8,["data"]))]),m(r,{data:g(Ee),"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:jt}),(w(!0),N(X,null,H(g(Ce),(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)),g(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=>a.download(n.row)}," \u4E0B\u8F7D ",8,er)]),_:1})):q("",!0)]),_:1},8,["data"]),i("div",tr,[j(" \u5171"+Z(J.value.length)+"\u6761 ",1),m(E,{background:"",layout:"prev, pager, next",total:J.value.length,"current-page":g($),"page-size":g(B),onCurrentChange:Ot},null,8,["total","current-page","page-size"])])],512),[[it,g(R)]]),st(i("div",ar,[i("div",{ref_key:"chartModeDiv",ref:ne,class:"chartModeDiv"},null,512)],512),[[it,!g(R)]])])])}}},_r=$t(rr,[["__scopeId","data-v-692b0447"]]);export{_r as default};
|