import{Q as e,_ as a,u as t,r,I as l,a2 as o,x as n,H as i,aa as s,S as u,d,o as c,c as g,l as m,f as p,O as h,K as v,M as f,n as b,e as y,w,m as x,k as S,V as _,W as k,N as L,A as E,F as A,q as z,s as N}from"./index.e5c8b0d6.js";import{_ as C}from"./fh.7489c25e.js";import j from"./downloads.e955445d.js";import{_ as W}from"./qx.88a5ecd3.js";import{_ as q,a as T}from"./zhankaiss.6870329f.js";import{_ as M,a as F,b as O,c as $}from"./position.3b2b2301.js";import{_ as V,a as I}from"./face.d3470a20.js";import{_ as G}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as P}from"./TimeLine.89abb5b7.js";import{u as B}from"./useEcharts.31b48034.js";import"./linesGL.76a64914.js";import{d as D}from"./download.57166482.js";import{u as Q,w as J}from"./xlsx.881b8a71.js";import{e as R}from"./element-resize-detector.d4d1cd8d.js";import{ai as Y,aj as U}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";function X(a){return e({url:"equipment/statisticsOfTheArea",method:"get",params:a})}function H(a){return e({url:"equipment/proportionOfTheArea",method:"get",params:a})}function Z(a){return e({url:"equipment/eachFreezingGradeArea",method:"get",params:a})}function K(a){return e({url:"equipment/townshipArea",method:"get",params:a})}function ee(a){return e({url:"equipment/administrativeArea",method:"get",params:a})}const ae=e=>(z("data-v-702685b8"),e=e(),N(),e),te={class:"fatherDiv"},re={class:"centerBox"},le=ae((()=>m("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1))),oe={class:"rightWra"},ne=[ae((()=>m("img",{src:C},null,-1))),ae((()=>m("span",null,"返回",-1)))],ie={class:"tabar"},se={class:"leftTop"},ue={class:"title"},de=ae((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),ce=ae((()=>m("span",null,"各冷冻等级面积统计",-1))),ge=ae((()=>m("img",{src:j,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),me={class:"leftbottom"},pe={class:"title"},he=ae((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),ve=ae((()=>m("span",null,"各冷冻等级面积占比",-1))),fe=ae((()=>m("img",{src:j,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),be={class:"tableDiv"},ye={class:"rightTop"},we={class:"title"},xe=ae((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),Se=ae((()=>m("span",null,"各冷冻等级面积统计-高标准农田",-1))),_e=ae((()=>m("img",{src:j,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),ke={key:0},Le=[ae((()=>m("img",{src:W},null,-1)))],Ee={class:"rightbottom"},Ae={class:"title"},ze=ae((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),Ne=ae((()=>m("span",null,"各冷冻等级面积统计-行政区划",-1))),Ce=ae((()=>m("img",{src:j,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),je=ae((()=>m("img",{src:q},null,-1))),We=ae((()=>m("img",{src:T},null,-1))),qe={class:"bottom_center"},Te=A('
',1),Me={class:"mt-4"},Fe={id:"popup",class:"ol-popup"},Oe=ae((()=>m("div",{class:"pophead",style:{width:"100%"}},[m("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"20px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),m("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1))),$e={id:"popup-content",style:{padding:"10px"}},Ve={class:"perform_children"},Ie={class:"label"},Ge=ae((()=>m("div",{id:"popup-pagination"},null,-1))),Pe={id:"pop"},Be={key:0},De=ae((()=>m("div",null,"村名:",-1))),Qe={class:"tabulation"},Je={class:"searchDiv"},Re=ae((()=>m("img",{src:G,alt:""},null,-1))),Ye={class:"tableBox"},Ue={class:"tableBorder"},Xe=["onClick"],He=["onClick"],Ze={class:"example-pagination-block"},Ke={class:"chartMode"},ea=a({__name:"Freeze",setup(a){const A=t();let z=r(null);const N=r(null),C=r(null),j=r(null);r(null);const W=r(null),q=r("370211");q.value=window.localStorage.getItem("divisions"),r(null);let T=l({arr:[],brr:[],crr:[]});r({}),r([]);const M=r(!1);r(!1);let F=r(!1);const O=r(["false"]);let $=r([]),V=l({lable:[],value:[]}),I=r([]),G=r(0),ae=r(1),ea=r(12);const aa=r([]),ta=r(0);let ra=r([]),la=r([]),oa=r(!0),na=r([]);const ia=r(null);let sa=r(!0),ua=r(null),da=r([]),ca=r(""),ga=r(""),ma=r([]),pa=r(1),ha=r([]),va=r(""),fa=r(5),ba=r([]),ya=r(!0),wa=!(window.localStorage.getItem("divisions").length>6),xa="青岛西海岸新区"==window.localStorage.getItem("deptName")?"黄岛区":window.localStorage.getItem("deptName"),Sa=r([{"无冻害":0,"轻度冻害":0,"中度冻害":0,"重度冻害":0}]),_a=r({time:"",statistical:"镇",droughtRating:"",area:ta.value}),ka=["2019年高标准农田片区1","2019年高标准农田片区2","2019年高标准农田片区3","2019年高标准农田片区4","2020年高标准农田片区","2021年高标准农田片区","2022年高标准农田片区1","2022年高标准农田片区2","2022年高标准农田片区3","2022年高标准农田片区4","2022年高标准农田片区5","2022年高标准农田片区6","2022年高标准农田片区7"],La={"无冻害":[],"轻度冻害":[],"中度冻害":[],"重度冻害":[]},Ea=r({"无冻害":{color:"rgba(32, 242, 255, 1)",disabled:!1},"轻度冻害":{color:"rgba(255, 255, 0, 1)",disabled:!1},"中度冻害":{color:"rgba(255, 168, 8, 1)",disabled:!1},"重度冻害":{color:"rgba(224, 13, 15, 1)",disabled:!1}}),Aa={"无冻害":{setOf:"2022-12-20-lengdong",name:"T2022_12_20_wudonghai"},"轻度冻害":{setOf:"2022-12-20-lengdong",name:"T2022_12_20_qingdudonghai"},"中度冻害":{setOf:"2022-12-20-lengdong",name:"T2022_12_20_medium_donghai"},"重度冻害":{setOf:"2022-12-20-lengdong",name:"T2022_12_20_serious_donghai"}};o((()=>q.value),(()=>{lt()})),o((()=>ca.value),((e,a)=>{q.value=window.localStorage.getItem("divisions"),Za(q.value,ca.value.name),Ka(q.value,ca.value.name),et(ca.value.name),wa?at(q.value,ca.value.name):tt(q.value,ca.value.name);let t=ca.value.name.replace(/-/g,"_");Aa={"无冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_wudonghai`},"轻度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_qingdudonghai`},"中度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_medium_donghai`},"重度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_serious_donghai`}}}));var za={title:[]};let Na={"无冻害":[],"轻度冻害":[],"中度冻害":[],"重度冻害":[]},Ca=r([]);n((()=>{!function(){Ha(),qa=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),qa.on("moveend",(function(e){qa.getView().getZoom()>=13?ua.setVisible(!0):ua.setVisible(!1)})),qa.on("singleclick",(function(e){var a=e.coordinate;if(wa){var t=a[0],r=a[1],l=qa.getView(),o=qa.getView().getZoom();l.animate({center:[t,r],duration:1e3});let n=!1;if(["CJQY3702112019WGS84","XJQY3702112019WGS84"].forEach((e=>{qa.getLayers().getArray().forEach(((a,t)=>{e!=a.A.name||(n=!0)}))})),n)o>=13?Ta(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):Ta(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇");else{let t=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,r=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"T2019_2022高标准农田片区@2019-2022gaobiaozhunnongtian",attributeFilter:`DKMC = '${ga.value}'`},datasetNames:["2019-2022gaobiaozhunnongtian:T2019_2022高标准农田片区"]});new ol.supermap.FeatureService(t).getFeaturesBySQL(r,(function(t){let r=(new ol.format.GeoJSON).readFeatures(t.result.features),l=new ol.source.Vector;l.addFeatures(r);let o=new ol.layer.Vector({source:l}).getSource().getFeatures();for(var n=0;n=13?Ta(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):Ta(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇")}}))}})),function(e){let a="",t="",r="",l="",o="";t=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,a=e,r="XJQY3702112019WGS84",l="huangdaoqu_bianjie",o="XJQYMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${l}`,attributeFilter:`${o} like '%${a}%'`},datasetNames:[`${l}:${r}`]});new ol.supermap.FeatureService(t).getFeaturesBySQL(n,(function(e){if(0!=e.result.featureCount){var a=qa.getLayers().getArray().find((e=>"zhezhao"===e.get("id")));qa.removeLayer(a);var t=qa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id")));qa.removeLayer(t);var r=(new ol.format.GeoJSON).readFeatures(e.result.features);Fa(e.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var l=new ol.source.Vector;l.addFeatures(r);const n=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var o=new ol.layer.Vector({id:"dianjigaoliang",source:l});o.setStyle(n),qa.addLayer(o),qa.getView().fit(l.getExtent())}}))}(xa),s.get("/json/huangdao.json").then((({data:e})=>{(new ol.format.GeoJSON).readFeatures(e)[0]})),it(),st(),mt(),Ma();for(const a in Ea.value)!0!==Ea.value[a].disabled&&$.value.push(a);O.value=$.value;let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)"),document.querySelector(".rightWra").style.transform="translate(101%,0)",localStorage.setItem(A.currentRoute.value.path,!0)}()})),i((()=>{"false"==localStorage.getItem(A.currentRoute.value.path)?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="地图模式",window.document.querySelector("#screenfull").style.display="none"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="列表模式",window.document.querySelector("#screenfull").style.display="block")})),r(null),r(null);let ja=r(null),Wa=r(null),qa=r(null);function Ta(a,t,l,o){var n=new ol.geom.Point(a.coordinate),i=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:n});let s=[],u=document.querySelector("#popup-title"),d=r(null),c=r(null);new ol.supermap.QueryService(l).queryByGeometry(i,(function(a){let t="";if(c=qa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),qa.removeLayer(c),"镇"==o&&a.result.recordsets[0].features.features[0].properties.XJQYDM){let e=a.result.recordsets[0].features.features[0].properties.XJQYDM;q.value=e;let r=[];K({divisions:"370211",yearMonth:ca.value.name}).then((a=>{a.data.forEach((a=>{a.streetCode==e&&(t=a.streetName,r.push(a))}));let o=[];o.push(r[1]),o.push(r[0]),o.push(r[2]),o.push(r[3]),ma.value=o,l()}))}else if("村"==o&&a.result.recordsets[0].features.features[0].properties.CJQYDM){let o=a.result.recordsets[0].features.features[0].properties.CJQYDM,n=[];(r={divisions:o,yearMonth:ca.value.name},e({url:"equipment/administrativeAreaChun",method:"get",params:r})).then((e=>{e.data.forEach((e=>{n.push(e)})),t=e.data[0].streetName,ma.value=n,l()}))}else if("高标准"==o&&a.result.recordsets[0].features.features[0].properties.DKMC){let e=a.result.recordsets[0].features.features[0].properties.DKMC,r=[];Z({divisions:"370211",yearMonth:ca.value.name}).then((a=>{a.data.forEach((a=>{a.region==e&&r.push(a)})),r.forEach((e=>{e.type=e.level})),ma.value=r,t=e,l()}))}var r;function l(){if(a.result.currentCount>0){a.result.recordsets[0].features&&(Wa.setPosition(n.flatCoordinates),u.innerHTML=t),d=qa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),qa.removeLayer(d);var e=(new ol.format.GeoJSON).readFeatures(a.result.recordsets[0].features);s=a.result.recordsets[0].features.features[0].geometry.coordinates,Fa(a.result.recordsets[0].features.features[0].geometry.coordinates);var r=new ol.source.Vector;r.addFeatures(e);const o=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var l=new ol.layer.Vector({id:"dianjigaoliang",source:r,zIndex:9999});l.setStyle(o),qa.addLayer(l)}}})),ja.addEventListener("click",(function(){c=qa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),qa.removeLayer(c),Oa(s),q.value=window.localStorage.getItem("divisions"),d=qa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),qa.removeLayer(d),Wa.setPosition(void 0)}))}i((()=>{var e=document.querySelector(".centerBox"),a=document.getElementById("cesiumContainer");new ResizeObserver((function(e){e.forEach((function(e){var t=e.contentRect.width,r=e.contentRect.height;a.style.width=t+"px",a.style.height=r+"px",qa.updateSize()}))})).observe(e)}));const Ma=()=>{document.getElementById("popup"),document.getElementById("popup-content"),ja=document.getElementById("popup-closer"),Wa=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),qa.addOverlay(Wa)};function Fa(e,a,t,r){let l=new ol.source.Vector;var o=new ol.layer.Vector({id:a||"zhezhao",source:l,zIndex:r||50,style:new ol.style.Style({fill:new ol.style.Fill({color:t||"rgba( 105, 105, 105, 0.9)"})})});const n=Oa(e),i=new ol.Feature({geometry:n});o.getSource().addFeature(i),qa.addLayer(o)}function Oa(e){const a=ol.geom.Polygon.fromExtent([-180,-90,180,90]);return e.forEach((e=>{const t=new ol.geom.LinearRing(e[0]);a.appendLinearRing(t)})),a}const $a=()=>{ua=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),qa.addLayer(ua)},Va=()=>{var e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});qa.addLayer(e)},Ia=e=>{let a=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${e.setOf}/rest/maps/${e.name}@${e.setOf}`,cacheEnabled:!1}),name:e.name,projection:"EPSG:4326"});qa.addLayer(a)};let Ga=0;const Pa=()=>{pa.value=0};o((()=>O.value),((e,a)=>{if(e.length>=a.length&&pa.value<1){e.filter((e=>{if(a.findIndex((a=>a===e))<0)return e})).forEach((e=>{Aa[e]&&Ia(Aa[e])}))}else if(e.length{if(e.findIndex((e=>e===a))<0)return a}));t.forEach((e=>{Aa[e]&&(qa.getLayers().getArray().indexOf(Aa[e].name),qa.getLayers().getArray().forEach(((a,t)=>{a.A.name&&a.A.name==Aa[e].name&&qa.getLayers().removeAt(t)})))})),t.forEach((e=>{Aa[e]&&(qa.getLayers().getArray().indexOf(Aa[e].name),qa.getLayers().getArray().forEach(((a,t)=>{a.A.name&&a.A.name==Aa[e].name&&qa.getLayers().removeAt(t)})))}))}Ga++,1==Ga&&($a(),Va())}));let Ba=r({label:[]});const Da=e=>{ya.value=e,e?(it(),st()):(ut(),mt())};const Qa=e=>{_a.value.area=e},Ja=()=>{let a=[],t=[];var r;ae.value=1,(r={yearMonth:_a.value.time,statistical:_a.value.statistical,droughtRating:_a.value.droughtRating,area:_a.value.area},e({url:"equipment/freezeWarning",method:"get",params:r})).then((e=>{la.value=[{lable:"",value:"region"},{lable:"无冻害",value:"无冻害"},{lable:"轻度冻害",value:"轻度冻害"},{lable:"中度冻害",value:"中度冻害"},{lable:"重度冻害",value:"重度冻害"}],e.data.forEach((e=>{-1==a.indexOf(e.region)&&a.push(e.region)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.region&&(a.region=e.region,a[e.level]=Number(e.area).toFixed(2))}))})),oa.value=!1,aa.value=t.sort(((e,a)=>e.region.length-a.region.length)),na.value=t.slice((ae.value-1)*ea.value,(ae.value-1)*ea.value+ea.value),Sa.value[0]["无冻害"]=0,Sa.value[0]["轻度冻害"]=0,Sa.value[0]["中度冻害"]=0,Sa.value[0]["重度冻害"]=0,Sa.value[0].region="合计",t.forEach((e=>{e.无冻害&&(Sa.value[0]["无冻害"]+=NaN!==Number(e.无冻害)?Number(e.无冻害):0),e.轻度冻害&&(Sa.value[0]["轻度冻害"]+=NaN!==Number(e.轻度冻害)?Number(e.轻度冻害):0),e.中度冻害&&(Sa.value[0]["中度冻害"]+=NaN!==Number(e.中度冻害)?Number(e.中度冻害):0),e.重度冻害&&(Sa.value[0]["重度冻害"]+=NaN!==Number(e.重度冻害)?Number(e.重度冻害):0)}));for(const a in Sa.value[0])"合计"!==Sa.value[0][a]&&(Sa.value[0][a]=Sa.value[0][a].toFixed(2));const r=ia.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=Y(r);window.addEventListener("resize",(()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()})),dt()}))},Ra=()=>{sa.value=!sa.value;const e=ia.value;e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px";const a=Y(e);window.addEventListener("resize",(()=>{e.style.width=window.innerWidth-200+"px",e.style.height=window.innerHeight-200+"px",a.resize()})),dt()},Ya=()=>{let e=JSON.parse(JSON.stringify(Sa.value[0]));e.region="合计",aa.value.push(e),ot(aa.value,"冷冻面积统计表","Sheet1")},Ua=()=>{_a.value.time=ra.value[ra.value.length-1],_a.value.statistical="镇",_a.value.droughtRating="",_a.value.area=0,ta.value=1,oa.value=!0,Ja()},Xa=e=>{da.value=ba.value.slice((e-1)*fa.value,e*fa.value)},Ha=()=>{var a;e({url:"equipment/freezeWarningYear",method:"get",params:a}).then((e=>{ca.value={name:e.data[e.data.length-1]},ra.value=e.data;let a=[];e.data.forEach((e=>{a.push({name:e})})),ba.value=a,ha.value=Math.ceil(ba.value.length/5),va=Math.ceil(a.length/5),da.value=ba.value.slice((va-1)*fa.value,va*fa.value),_a.value.time=e.data[e.data.length-1],Ja();let t=ca.value.name.replace(/-/g,"_");Aa={"无冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_wudonghai`},"轻度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_qingdudonghai`},"中度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_medium_donghai`},"重度冻害":{setOf:`${ca.value.name}-lengdong`,name:`T${t}_serious_donghai`}}}))},Za=(e,a)=>{X({divisions:e,yearMonth:a}).then((e=>{V.lable=[],V.value=[],e.data.forEach((e=>{V.lable.push(e.level),V.value.push(e.area)})),it()}))},Ka=(e,a)=>{let t=r([]);H({divisions:e,yearMonth:a}).then((e=>{I=r([]),G=r(0),e.data.forEach((e=>{G.value+=Number(e.area),I.value.push({name:e.level,value:Number(e.area).toFixed(2)}),t.value.push({date:e.level,name:`${Number(e.area).toFixed(2)}`,address:`${(100*e.percentage).toFixed(2)}%`})})),Ca.value=t.value,st()}))},et=e=>{Z({yearMonth:e}).then((e=>{La={"无冻害":[],"轻度冻害":[],"中度冻害":[],"重度冻害":[]},ka.forEach(((a,t)=>{let r=e.data.map((e=>{if(a===e.region)return e}));Object.keys(La).forEach((e=>{let a=0;r.findIndex((t=>(t&&t.level===e&&(a=t.area),t&&t.level===e)))>-1?La[e].push(a):La[e].push(0)}))})),e.data.length>0&&ut()}))},at=(e,a)=>{Na={"无冻害":[],"轻度冻害":[],"中度冻害":[],"重度冻害":[]},K({divisions:e,yearMonth:a}).then((e=>{T.brr=e.data,T.arr=e.data.sort(((e,a)=>e.streetName.length-a.streetName.length)),T.arr.unshift({streetCode:"370211",streetName:"全部"});let a=[],t=[];T.arr.forEach((e=>{-1==a.indexOf(e.streetName)&&(a.push(e.streetName),t.push({streetName:e.streetName,streetCode:e.streetCode}))})),T.arr=t;let r=[...e.data],l=[];r.splice(0,1),r.forEach((e=>{-1==l.indexOf(e.streetName)&&l.push(e.streetName)})),za.title=[...Object.values(l)],za.title.forEach(((a,t)=>{let r=e.data.map((e=>{if(a===e.streetName)return e}));Object.keys(Na).forEach((e=>{r.findIndex((a=>a&&a.type===e&&a.area>0))>-1?Na[e].push(1):Na[e].push(null)}))})),mt()}))},tt=(e,a)=>{Na={"无冻害":[],"轻度冻害":[],"中度冻害":[],"重度冻害":[]},ee({divisions:e,yearMonth:a}).then((e=>{T.brr=e.data;let a=[...e.data],t=[];a.splice(0,1),a.forEach((e=>{-1==t.indexOf(e.streetName)&&t.push(e.streetName)})),za.title=[...Object.values(t)],za.title.forEach(((a,t)=>{let r=e.data.map((e=>{if(a===e.streetName)return e}));Object.keys(Na).forEach((e=>{r.findIndex((a=>a&&a.type===e&&a.area>0))>-1?Na[e].push(1):Na[e].push(null)}))})),mt()}))};let rt=()=>{document.querySelector(".tool").style.display="none",$a(),ua.setVisible(!1),Va();["2019-2022gaobiaozhunnongtian","gbz","dianjigaoliang","dianjigaoliangs","gao","zhezhao"].forEach((e=>{qa.getLayers().getArray().forEach(((a,t)=>{a.A.name!=e&&a.A.id!=e||qa.getLayers().removeAt(t)}))})),qa.getView().animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})};const lt=()=>{"370211"==q.value?(Za(q.value,ca.value.name),Ka(q.value,ca.value.name),at(q.value,ca.value.name)):(Za(q.value,ca.value.name),Ka(q.value,ca.value.name),tt(q.value,ca.value.name))},ot=(e,a="用户列表",t="Sheet1")=>{const r=((e,a)=>e.map((e=>{const t={};for(const r in e)"区域名称"==a[r]&&(t[a[r]]=e[r]);for(const r in e)"无冻害(亩)"==a[r]&&(t[a[r]]=e[r]);for(const r in e)"轻度冻害(亩)"==a[r]&&(t[a[r]]=e[r]);for(const r in e)"中度冻害(亩)"==a[r]&&(t[a[r]]=e[r]);for(const r in e)"重度冻害(亩)"==a[r]&&(t[a[r]]=e[r]);return t})))(e,{region:"区域名称","无冻害":"无冻害(亩)","轻度冻害":"轻度冻害(亩)","中度冻害":"中度冻害(亩)","重度冻害":"重度冻害(亩)"}),l=Q.json_to_sheet(r),o=Q.book_new();Q.book_append_sheet(o,l,t),J(o,`${a}.xlsx`)},nt=e=>{for(const t in Aa)qa.getLayers().getArray().forEach(((e,a)=>{e.A.name&&Aa[t].name==e.A.name&&qa.getLayers().removeAt(a)}));pa.value+=1,$.value=[];let a=[];for(const t in Aa)qa.getLayers().getArray().forEach(((e,a)=>{e.A.name==Aa[t].name&&qa.getLayers().removeAt(a)}));ca.value=e,X({divisions:"370211",yearMonth:ca.value.name}).then((e=>{e.data.forEach((e=>{Number(e.area)>1?Ea.value[e.level].disabled=!1:Ea.value[e.level].disabled=!0,a=Ea}));for(const t in a.value)!0!==a.value[t].disabled&&$.value.push(t);O.value=$.value,O.value.forEach((e=>{Ia(Aa[e])}))}))};function it(){const e=Y(N.value);var a={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:["面积"],right:"5%",icon:"rect",textStyle:{fontSize:14,color:"rgba(153, 153, 153, 1)"}},xAxis:{nameTextStyle:{color:"rgba(153, 153, 153, 1)",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(153, 153, 153, 1)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:V.lable,type:"category"},yAxis:{name:"面积(亩)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:V.value,name:"面积",type:"bar",barMaxWidth:"auto",barWidth:35,itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(33, 156, 249, 1)"},{offset:1,color:"rgba(110, 191, 251, 1)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};a&&e.setOption(a),R().listenTo(N.value,(()=>{u((()=>{e.resize()}))}))}function st(){const e=Y(C.value);var a=I.value;let t={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:"总面积",subtext:`${(G.value/1e4).toFixed(2)}万亩`,textStyle:{color:"rgba(51, 51, 51, 1)",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"rgba(51, 51, 51, 1)",fontSize:14},icon:"roundRect",data:a},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}
百分比 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"各冷冻等级面积占比",data:a},{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)"}}]}]};B(e,t),R().listenTo(C.value,(()=>{u((()=>{e.resize()}))}))}function ut(){const e=Y(j.value);let a={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"category",data:ka,axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)",width:1,type:"solid"}},axisLabel:{color:"rgba(153, 153, 153, 1)",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14}},yAxis:{name:"面积(亩)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"solid",color:"rgba(153, 153, 153, 1)"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"无冻害",type:"bar",barWidth:14,stack:"数量",data:La["无冻害"],itemStyle:{normal:{borderWidth:1,color:new U(0,0,0,1,[{offset:0,color:"rgba(9, 187, 222, 0.8)"},{offset:1,color:"rgba(9, 187, 222, 0.8)"}])}}},{name:"轻度冻害",type:"bar",barWidth:14,stack:"数量",data:La["轻度冻害"],itemStyle:{normal:{borderWidth:1,color:new U(0,0,0,1,[{offset:0,color:"rgba(255, 235, 59, 0.8)"},{offset:1,color:"rgba(255, 235, 59, 0.8)"}])}}},{name:"中度冻害",type:"bar",barWidth:14,stack:"数量",data:La["中度冻害"],itemStyle:{normal:{borderWidth:1,color:new U(0,0,0,1,[{offset:0,color:"rgba(234, 165, 93, 0.8)"},{offset:1,color:"rgba(234, 165, 93, 0.8)"}])}}},{name:"重度冻害",type:"bar",barWidth:14,stack:"数量",data:La["重度冻害"],itemStyle:{normal:{borderWidth:1,color:new U(0,0,0,1,[{offset:0,color:"rgba(224, 13, 15, 1)"},{offset:1,color:"rgba(224, 13, 15, 1)"}])}}}]};e.on("click",(function(e){var a=window.location.host;if(!/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/.test(a)){document.querySelector(".tool").style.display="block",ga.value=e.name;let a=["XJQY3702112019WGS84","CJQY3702112019WGS84"];!function(e){let a="",t="",r="",l="",o="";t=`${serverAPI.geoserverUrl}/data-2019-2022gaobiaozhunnongtian/rest/data`,a=e,r="T2019_2022高标准农田片区",l="2019-2022gaobiaozhunnongtian",o="DKMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${l}`,attributeFilter:`DKMC like '%${a}%'`},datasetNames:[`${l}:${r}`]});new ol.supermap.FeatureService(t).getFeaturesBySQL(n,(function(e){if(0!=e.result.featureCount){var a=qa.getLayers().getArray().find((e=>"zhezhao"===e.get("id")));qa.removeLayer(a);var t=qa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id")));qa.removeLayer(t);var r=qa.getLayers().getArray().find((e=>"gbz"===e.get("id")));qa.removeLayer(r);var l=qa.getLayers().getArray().find((e=>"dianjigaoliangs"===e.get("id")));qa.removeLayer(l);var o=(new ol.format.GeoJSON).readFeatures(e.result.features);Fa(e.result.features.features[0].geometry.coordinates,"gbz","rgba( 105, 105, 105, 1)",9999);var n=new ol.source.Vector;n.addFeatures(o);const s=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var i=new ol.layer.Vector({id:"dianjigaoliang",source:n});i.setStyle(s),qa.addLayer(i),qa.getView().fit(n.getExtent())}}))}(e.name),a.forEach((e=>{qa.getLayers().getArray().forEach(((a,t)=>{a.A.name==e&&qa.getLayers().removeAt(t)}))}));for(var t=document.querySelectorAll(".alerDiv"),r=0;r{qa.getLayers().getArray().forEach(((a,t)=>{a.A.name!=e&&a.A.id!=e||qa.getLayers().removeAt(t)}))})),ua=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:`${serverAPI.geoserverUrl}/map-2019-2022gaobiaozhunnongtian/rest/maps/T2019_2022%E9%AB%98%E6%A0%87%E5%87%86%E5%86%9C%E7%94%B0%E7%89%87%E5%8C%BA@2019-2022gaobiaozhunnongtian`,cacheEnabled:!1}),name:"2019-2022gaobiaozhunnongtian",projection:"EPSG:4326",zIndex:9999}),qa.addLayer(ua)}})),a&&e.setOption(a,{notMerge:!0,grid:{bottom:20}}),B(e,a),R().listenTo(j.value,(()=>{u((()=>{e.resize()}))}))}function dt(){const e=Y(ia.value);let a=[],t=[],r=[],l=[],o=[];aa.value.forEach((e=>{a.push(e.region),void 0!==e.无冻害?t.push(e.无冻害):t.push(0),void 0!==e.中度冻害?l.push(e.中度冻害):l.push(0),void 0!==e.重度冻害?o.push(e.重度冻害):o.push(0),void 0!==e.轻度冻害?r.push(e.轻度冻害):r.push(0)}));let n={tooltip:{trigger:"axis",formatter:function(e){let a=e[0].axisValueLabel+"
",t=0;for(let r=0;r");for(let r=0;r",t=0;for(let r=0;r`;t+=e[r].value,a+=l+e[r].seriesName+":"+e[r].value+"
"}for(let r=0;r{ae.value=e,na.value=aa.value.slice((ae.value-1)*ea.value,(ae.value-1)*ea.value+ea.value)},gt=e=>e+1+(ae.value-1)*ea.value;function mt(){const e=Y(W.value);var a={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},tooltip:{formatter:function(e){let a=0;return T.brr.forEach((t=>{t.type==e.seriesName&&t.streetName==e.name&&(a=Number(t.area).toFixed(2))})),e.seriesName+''+a+"亩"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(51, 51, 51, 1)",formatter:"{value}"},data:za.title,inverse:!0}],series:[{type:"bar",name:"无冻害",stack:"总量",barMaxWidth:30,label:{show:!1,position:"无冻害",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:Na.无冻害},{type:"bar",name:"轻度冻害",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"轻度冻害",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:Na.轻度冻害},{type:"bar",name:"中度冻害",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"中度冻害",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:Na.中度冻害},{type:"bar",name:"重度冻害",stack:"总量",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"重度冻害",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:Na.重度冻害}]};B(e,a),R().listenTo(W.value,(()=>{u((()=>{e.resize()}))}))}return(e,a)=>{const t=d("el-table-column"),r=d("el-table"),l=d("el-option"),o=d("el-select"),n=d("el-icon"),i=d("el-tooltip"),s=d("el-checkbox"),u=d("el-checkbox-group"),A=d("el-collapse-item"),$=d("el-collapse"),V=d("el-button"),I=d("el-form-item"),G=d("el-input-number"),B=d("el-form"),Q=d("el-pagination");return c(),g("div",te,[m("div",re,[le,m("div",oe,[m("div",{class:"tool",onClick:a[0]||(a[0]=e=>p(rt)())},ne),m("div",ie,[m("div",{class:h(p(ya)?"tabarS":""),onClick:a[1]||(a[1]=e=>Da(!0))},"黄岛区",2),m("div",{class:h(p(ya)?"":"tabarS"),onClick:a[2]||(a[2]=e=>Da(!1))},"行政区",2)]),v(m("div",se,[m("div",ue,[de,ce,m("p",{onClick:a[3]||(a[3]=e=>{X({divisions:q.value,yearMonth:ca.value.name,whetherToDownload:!0}).then((e=>{D(e.data[e.data.length-1].downloadPath)}))})},[b(" 下载   "),ge])]),m("div",{ref_key:"areaDiv",ref:N,class:"areaDiv"},null,512)],512),[[f,p(ya)]]),v(m("div",me,[m("div",pe,[he,ve,m("p",{onClick:a[4]||(a[4]=e=>{H({divisions:q.value,yearMonth:ca.value.name,whetherToDownload:!0}).then((e=>{D(e.data[e.data.length-1].downloadPath)}))})},[b(" 下载   "),fe])]),m("div",{ref_key:"typesofDiv",ref:C,class:"typesofDiv"},null,512),m("div",be,[y(r,{data:p(Ca),style:{width:"100%"}},{default:w((()=>[y(t,{prop:"date",label:"类型"}),y(t,{prop:"name",label:"面积(亩)"}),y(t,{prop:"address",label:"占比"})])),_:1},8,["data"])])],512),[[f,p(ya)]]),v(m("div",ye,[m("div",we,[xe,Se,p(wa)?(c(),g("p",{key:0,onClick:a[5]||(a[5]=e=>{Z({divisions:q.value,yearMonth:ca.value.name,whetherToDownload:!1}).then((e=>{let a=[],t=[];e.data.forEach((e=>{-1==a.indexOf(e.region)&&a.push(e.region)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.region&&(a.region=e.region,a[e.level]=Number(e.area).toFixed(2))}))})),ot(t,"各冷冻面积统计-高标准农田","Sheet1")}))})},[b(" 下载   "),_e])):x("",!0)]),v(m("div",{ref_key:"farmlandDiv",ref:j,class:"farmlandDiv"},null,512),[[f,p(wa)]]),p(wa)?x("",!0):(c(),g("div",ke,Le))],512),[[f,!p(ya)]]),v(m("div",Ee,[m("div",Ae,[ze,Ne,m("p",{onClick:a[6]||(a[6]=e=>{"370211"===q.value?K({divisions:q.value,yearMonth:ca.value.name}).then((e=>{let a=[],t=[];e.data.forEach((e=>{-1==a.indexOf(e.streetName)&&a.push(e.streetName)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.streetName&&(a.region=e.streetName,a[e.type]=Number(e.area).toFixed(2))}))})),t=t.sort(((e,a)=>e.region.length-a.region.length)),ot(t,"各冷冻面积统计-行政区划","行政区划")})):ee({divisions:q.value,yearMonth:ca.value.name,whetherToDownload:!1}).then((e=>{let a=[],t=[];e.data.forEach((e=>{-1==a.indexOf(e.streetName)&&a.push(e.streetName)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.streetName&&(a.region=e.streetName,a[e.type]=Number(e.area).toFixed(2))}))})),ot(t,"各冷冻面积统计-行政区划","Sheet1")}))})},[b(" 下载   "),Ce])]),p(wa)?(c(),S(o,{key:0,"popper-class":"select_city",modelValue:q.value,"onUpdate:modelValue":a[7]||(a[7]=e=>q.value=e),placeholder:"全部"},{default:w((()=>[(c(!0),g(_,null,k(p(T).arr,(e=>(c(),S(l,{key:e.streetCode,label:e.streetName,value:e.streetCode},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])):x("",!0),m("div",{ref_key:"ASdivisionDiv",ref:W,class:"ASdivision"},null,512)],512),[[f,!p(ya)]]),m("div",{class:"rightFoldDiv",onClick:a[8]||(a[8]=e=>(F.value=!F.value,void(F.value?document.querySelector(".rightWra").style.transform="translate(0,0)":document.querySelector(".rightWra").style.transform="translate(101%,0)")))},[y(i,{disabled:!p(F),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"收起",placement:"top"},{default:w((()=>[p(F)?(c(),S(n,{key:0},{default:w((()=>[je])),_:1})):x("",!0)])),_:1},8,["disabled"]),y(i,{disabled:p(F),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"展开",placement:"top"},{default:w((()=>[p(F)?x("",!0):(c(),S(n,{key:0},{default:w((()=>[We])),_:1}))])),_:1},8,["disabled"])])]),m("div",qe,[p(da).length>0?(c(),S(P,{key:0,dataSource:p(da),onDataHandle:nt,allCount:p(ha),onGetcurrentPage:Xa},null,8,["dataSource","allCount"])):x("",!0)]),Te,y($,{class:"legend",accordion:""},{default:w((()=>[y(A,{name:"1"},{title:w((()=>[b("图例")])),default:w((()=>[m("div",Me,[y(u,{modelValue:O.value,"onUpdate:modelValue":a[9]||(a[9]=e=>O.value=e),onChange:Pa},{default:w((()=>[(c(!0),g(_,null,k(p(Ea),((e,a,t)=>(c(),S(s,{key:t,"v-model":e.disabled,disabled:e.disabled,label:a},{default:w((()=>[m("span",{style:L({background:e.color,border:`1px solid ${e.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),b(" "+E(a),1)])),_:2},1032,["v-model","disabled","label"])))),128))])),_:1},8,["modelValue"])])])),_:1})])),_:1}),m("div",Fe,[Oe,m("div",$e,[(c(!0),g(_,null,k(p(ma),((e,a)=>(c(),g("div",{class:"perform",key:a},[m("div",Ve,[m("div",Ie,E(e.type)+":",1),m("span",null,E(Number(e.area).toFixed(2))+"(亩)",1)])])))),128))]),Ge]),m("div",Pe,[(c(!0),g(_,null,k(p(Ba).label,((e,a)=>(c(),g("div",{key:a},[m("div",null,E(e.crop)+":",1),m("div",null,E(e.Shape_Area)+" 亩",1)])))),128)),p(Ba).XZQMC?(c(),g("div",Be,[De,m("div",null,E(p(Ba).XZQMC),1)])):x("",!0)]),M.value?(c(),S(V,{key:0,class:"back_button",onClick:a[10]||(a[10]=e=>(at("370211"),delete Ba.value.XZQMC,deleteEntityByName("townLine"),deleteEntityByName("villageLine"),removeWms(["gbznt"],!0),removeWms(["aaa"]),q.value="370211",lt(),"1"===M.value&&addWms("huangdaoqu_town","huangdaoqu_town"),z.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),void(M.value=!1)))},{default:w((()=>[b("返回")])),_:1})):x("",!0)]),m("div",Qe,[m("div",Je,[y(B,{inline:!0,model:p(_a),class:"demo-form-inline"},{default:w((()=>[y(I,{label:"时间:"},{default:w((()=>[y(o,{"popper-class":"selectCity",modelValue:p(_a).time,"onUpdate:modelValue":a[11]||(a[11]=e=>p(_a).time=e),placeholder:"请选择"},{default:w((()=>[(c(!0),g(_,null,k(p(ra),((a,t)=>(c(),S(l,{key:t,label:e.Zitem,value:a},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),y(I,{label:"统计方式:"},{default:w((()=>[y(o,{"popper-class":"selectCity",modelValue:p(_a).statistical,"onUpdate:modelValue":a[12]||(a[12]=e=>p(_a).statistical=e),placeholder:"请选择"},{default:w((()=>[y(l,{label:"镇级",value:"镇"}),y(l,{label:"村级",value:"村"}),p(wa)?(c(),S(l,{key:0,label:"高标准农田",value:"高标准农田"})):x("",!0)])),_:1},8,["modelValue"])])),_:1}),y(I,{label:"冷冻等级"},{default:w((()=>[y(o,{modelValue:p(_a).droughtRating,"onUpdate:modelValue":a[13]||(a[13]=e=>p(_a).droughtRating=e),"popper-class":"selectCity",placeholder:"请选择"},{default:w((()=>[y(l,{label:"全部",value:""}),y(l,{label:"无冻害",value:"无冻害"}),y(l,{label:"轻度冻害",value:"轻度冻害"}),y(l,{label:"中度冻害",value:"中度冻害"}),y(l,{label:"重度冻害",value:"重度冻害"})])),_:1},8,["modelValue"])])),_:1}),y(I,{label:"面积(亩)>"},{default:w((()=>[y(G,{modelValue:ta.value,"onUpdate:modelValue":a[14]||(a[14]=e=>ta.value=e),min:0,onChange:Qa},null,8,["modelValue"])])),_:1}),y(I,null,{default:w((()=>[y(V,{type:"primary",onClick:Ja},{default:w((()=>[b("查询")])),_:1}),y(V,{plain:"",onClick:Ua,disabled:!p(sa)},{default:w((()=>[b(" 重置 ")])),_:1},8,["disabled"]),p(oa)?x("",!0):(c(),S(V,{key:0,type:"primary",text:"",onClick:Ya},{default:w((()=>[Re,b(" 下载 ")])),_:1}))])),_:1})])),_:1},8,["model"]),m("div",{class:"modeDiv",onClick:Ra},[m("div",{class:h(p(sa)?"Selected":"")},"表格模式",2),m("div",{class:h(p(sa)?"":"Selecteds")},"图表模式",2)])]),v(m("div",Ye,[m("div",Ue,[p(oa)?x("",!0):(c(),S(r,{key:0,data:p(Sa),"header-cell-style":{"text-align":"center"},style:{width:"100%"},"highlight-current-row":"","header-row-class-name":"tabth"},{default:w((()=>[y(t,{align:"center",prop:"合计",width:"80"}),(c(!0),g(_,null,k(p(la),((e,a)=>(c(),S(t,{key:a,prop:e.value,label:0==a?e.lable:e.lable+"(亩)",align:"center"},null,8,["prop","label"])))),128)),p(oa)?(c(),S(t,{key:0,prop:"address",align:"center",label:"操作"},{default:w((a=>[m("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:t=>e.download(a.row)}," 下载 ",8,Xe)])),_:1})):x("",!0)])),_:1},8,["data"]))]),y(r,{data:p(na),"header-cell-style":{"text-align":"center"},height:"70%","highlight-current-row":"","header-row-class-name":"tabth"},{default:w((()=>[y(t,{type:"index",width:"80",align:"center",label:"序号",index:gt}),(c(!0),g(_,null,k(p(la),((e,a)=>(c(),S(t,{key:a,prop:e.value,label:0==a?e.lable:e.lable+"(亩)",align:"center"},null,8,["prop","label"])))),128)),p(oa)?(c(),S(t,{key:0,prop:"address",align:"center",label:"操作"},{default:w((a=>[m("span",{style:{color:"rgba(67, 181, 143, 1)",cursor:"pointer"},onClick:t=>e.download(a.row)}," 下载 ",8,He)])),_:1})):x("",!0)])),_:1},8,["data"]),m("div",Ze,[b(" 共"+E(aa.value.length)+"条 ",1),y(Q,{background:"",layout:"prev, pager, next",total:aa.value.length,"current-page":p(ae),"page-size":p(ea),onCurrentChange:ct},null,8,["total","current-page","page-size"])])],512),[[f,p(sa)]]),v(m("div",Ke,[m("div",{ref_key:"chartModeDiv",ref:ia,class:"chartModeDiv"},null,512)],512),[[f,!p(sa)]])])])}}},[["__scopeId","data-v-702685b8"]]);export{ea as default};