import{Q as e,_ as a,u as t,r as l,I as o,x as r,H as n,aa as i,a2 as s,S as d,d as u,o as c,c as g,l as m,O as p,f as h,K as v,M as y,n as f,k as b,w as S,e as w,m as x,V as A,W as k,N as z,A as E,F as L,q as C,s as _}from"./index.e5c8b0d6.js";import F from"./downloads.e955445d.js";import{_ as q}from"./qx.88a5ecd3.js";import{_ as j,a as M}from"./zhankaiss.6870329f.js";import{_ as O,a as N,b as B,c as D}from"./position.3b2b2301.js";import{_ as I,a as G}from"./face.d3470a20.js";import{_ as V}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as Y}from"./TimeLine.89abb5b7.js";import{u as Q}from"./useEcharts.31b48034.js";import"./linesGL.76a64914.js";import{d as W}from"./download.57166482.js";import{u as J,w as P}from"./xlsx.881b8a71.js";import{e as T}from"./element-resize-detector.d4d1cd8d.js";import{ai as U,aj as R}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";function X(a){return e({url:"equipment/damageArea",method:"get",params:a})}function H(a){return e({url:"equipment/proportion",method:"get",params:a})}function Z(a){return e({url:"equipment/highStandard",method:"get",params:a})}function $(a){return e({url:"equipment/townInformation",method:"get",params:a})}const K=e=>(C("data-v-04e5bdb5"),e=e(),_(),e),ee={class:"fatherDiv"},ae={class:"centerBox"},te=K((()=>m("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1))),le={class:"rightWra"},oe={class:"tabar"},re={class:"leftTop"},ne={class:"title"},ie=K((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),se=K((()=>m("span",null,"农作物受灾面积统计",-1))),de=K((()=>m("img",{src:F,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),ue={class:"leftbottom"},ce={class:"title"},ge=K((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),me=K((()=>m("span",null,"农作物受灾面积占比",-1))),pe=K((()=>m("img",{src:F,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),he={class:"tableDiv"},ve={class:"rightTop"},ye={class:"title"},fe=K((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),be=K((()=>m("span",null,"洪涝面积统计-高标准农田",-1))),Se=K((()=>m("img",{src:F,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),we={key:0},xe=[K((()=>m("img",{src:q},null,-1)))],Ae={class:"rightbottom"},ke={class:"title"},ze=K((()=>m("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1))),Ee=K((()=>m("span",null,"洪涝面积统计-行政区划",-1))),Le=K((()=>m("img",{src:F,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1))),Ce=K((()=>m("img",{src:j},null,-1))),_e=K((()=>m("img",{src:M},null,-1))),Fe={class:"bottom_center"},qe=L('
',1),je={class:"mt-4"},Me={id:"popup",class:"ol-popup"},Oe=K((()=>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))),Ne={id:"popup-content",style:{padding:"10px"}},Be={class:"perform_children"},De=K((()=>m("div",{class:"label"},"洪涝区 :",-1))),Ie=K((()=>m("div",{id:"popup-pagination"},null,-1))),Ge={id:"pop"},Ve={key:0},Ye=K((()=>m("div",null,"村名:",-1))),Qe={class:"tabulation"},We={class:"searchDiv"},Je=K((()=>m("img",{src:V,alt:""},null,-1))),Pe={class:"chartMode"},Te=a({__name:"FloodExtraction",setup(a){const L=t();l(null);const C=l(null),_=l(null);l(null);const F=l(null),q=l(null),j=l("370211");j.value=window.localStorage.getItem("divisions"),l(null);let M=o({arr:[],brr:[],crr:[]});l({name:"",value:""}),l([]);const O=l(!1);l(!1);let N=l(!1);const B=l([]);let D=l([]),I=o({lable:[],value:[]}),G=l([]),V=l(0),K=l([]);const Te=l([]);let Ue=l([]);const Re=l(0);let Xe=l(!0);l(1),l(12);let He=l([]),Ze=l([]);const $e=l(null);let Ke=l([]),ea=l(""),aa=l(null);l("");let ta=l([]),la=l([]),oa=!(window.localStorage.getItem("divisions").length>6),ra=l([]),na=l(1),ia=l([]),sa=l(""),da=l(!0),ua=l(5),ca="青岛西海岸新区"==window.localStorage.getItem("deptName")?"黄岛区":window.localStorage.getItem("deptName"),ga=l([{"洪涝":0}]),ma=l({time:"",statistical:"行政区划",droughtRating:"",area:Re.value}),pa={"洪涝区":{color:"rgba(9, 187, 222, 1)",disabled:!1}},ha=l([]),va={"洪涝区":{setOf:"2020-05-26-honglao",name:"T2020_05_26_honglao"}},ya=l([]);r((()=>{!function(){Ma(),Sa=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})]}),Sa.on("moveend",(function(e){Sa.getView().getZoom()>=13?aa.setVisible(!0):aa.setVisible(!1)})),Sa.on("singleclick",(function(e){var a=e.coordinate;if(oa){var t=a[0],l=a[1],o=Sa.getView(),r=Sa.getView().getZoom();o.animate({center:[t,l],duration:1e3}),r>=13?wa(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):wa(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇")}else{let t=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,l=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${ca}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(t).getFeaturesBySQL(l,(function(t){let l=(new ol.format.GeoJSON).readFeatures(t.result.features),o=new ol.source.Vector;o.addFeatures(l);let r=new ol.layer.Vector({source:o}).getSource().getFeatures();for(var n=0;n=13?wa(e,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"村"):wa(e,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"镇")}}))}})),function(e){let a="",t="",l="",o="",r="";t=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,a=e,l="XJQY3702112019WGS84",o="huangdaoqu_bianjie",r="XJQYMC";var n=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${o}`,attributeFilter:`${r} like '%${a}%'`},datasetNames:[`${o}:${l}`]});new ol.supermap.FeatureService(t).getFeaturesBySQL(n,(function(e){if(0!=e.result.featureCount){var a=Sa.getLayers().getArray().find((e=>"zhezhao"===e.get("id")));Sa.removeLayer(a);var t=Sa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id")));Sa.removeLayer(t);var l=(new ol.format.GeoJSON).readFeatures(e.result.features);Aa(e.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var o=new ol.source.Vector;o.addFeatures(l);const n=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var r=new ol.layer.Vector({id:"dianjigaoliang",source:o});r.setStyle(n),Sa.addLayer(r),Sa.getView().fit(o.getExtent())}}))}(ca),i.get("/json/huangdao.json").then((({data:e})=>{(new ol.format.GeoJSON).readFeatures(e)[0]})),xa(),Wa(),Ja();for(const a in pa)!0!==pa[a].disabled&&D.value.push(a);B.value=D.value;let e=document.querySelector(".leftWra");e&&(e.style.transform="translate(-107%,0)"),document.querySelector(".rightWra").style.transform="translate(101%,0)"}()})),n((()=>{"false"==localStorage.getItem(L.currentRoute.value.path)?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="地图模式"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="列表模式")})),l(null),l(null);let fa=l(null),ba=l(null),Sa=l(null);function wa(a,t,o,r){var n=new ol.geom.Point(a.coordinate),i=new ol.supermap.QueryByGeometryParameters({queryParams:{name:t},geometry:n});let s=[],d=document.querySelector("#popup-title"),u=l(null),c=l(null);new ol.supermap.QueryService(o).queryByGeometry(i,(function(a){let t="";if(c=Sa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),Sa.removeLayer(c),"镇"==r&&a.result.recordsets[0].features.features[0].properties.XJQYDM){let e=a.result.recordsets[0].features.features[0].properties.XJQYDM,l=[];$({divisions:"370211",yearMonth:ea.value.name}).then((a=>{a.data.forEach((a=>{a.subregion==e&&(t=a.name,l.push(a)),la.value=l})),o()}))}else if("村"==r&&a.result.recordsets[0].features.features[0].properties.CJQYDM){let r=a.result.recordsets[0].features.features[0].properties.CJQYDM,n=[];(l={divisions:r,yearMonth:ea.value.name},e({url:"equipment/villageChun",method:"get",params:l})).then((e=>{e.data.forEach((e=>{n.push(e)})),t=e.data[0].name,la.value=n,o()}))}var l;function o(){if(a.result.currentCount>0){a.result.recordsets[0].features&&(ba.setPosition(n.flatCoordinates),d.innerHTML=t),u=Sa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),Sa.removeLayer(u);var e=(new ol.format.GeoJSON).readFeatures(a.result.recordsets[0].features);s=a.result.recordsets[0].features.features[0].geometry.coordinates,Aa(a.result.recordsets[0].features.features[0].geometry.coordinates);var l=new ol.source.Vector;l.addFeatures(e);const r=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var o=new ol.layer.Vector({id:"dianjigaoliang",source:l,zIndex:9999});o.setStyle(r),Sa.addLayer(o)}}})),fa.addEventListener("click",(function(){c=Sa.getLayers().getArray().find((e=>"zhezhao"===e.get("id"))),Sa.removeLayer(c),ka(s),j.value=window.localStorage.getItem("divisions"),u=Sa.getLayers().getArray().find((e=>"dianjigaoliang"===e.get("id"))),Sa.removeLayer(u),ba.setPosition(void 0)}))}n((()=>{var e=document.querySelector(".centerBox"),a=document.getElementById("cesiumContainer");new ResizeObserver((function(e){e.forEach((function(e){var t=e.contentRect.width,l=e.contentRect.height;a.style.width=t+"px",a.style.height=l+"px",Sa.updateSize()}))})).observe(e)}));const xa=()=>{document.getElementById("popup"),document.getElementById("popup-content"),fa=document.getElementById("popup-closer"),ba=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),Sa.addOverlay(ba)};function Aa(e,a,t,l){let o=new ol.source.Vector;var r=new ol.layer.Vector({id:a||"zhezhao",source:o,zIndex:l||50,style:new ol.style.Style({fill:new ol.style.Fill({color:t||"rgba( 105, 105, 105, 0.9)"})})});const n=ka(e),i=new ol.Feature({geometry:n});r.getSource().addFeature(i),Sa.addLayer(r)}function ka(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 za=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"});Sa.addLayer(a)};let Ea=0;const La=()=>{na.value=0};s((()=>B.value),((e,a)=>{if(e.length>a.length&&na.value<1){e.filter((e=>{if(a.findIndex((a=>a===e))<0)return e})).forEach((e=>{va[e]&&za(va[e])}))}else if(e.length{if(e.findIndex((e=>e===a))<0)return a})).forEach((e=>{va[e]&&(Sa.getLayers().getArray().indexOf(va[e].name),Sa.getLayers().getArray().forEach(((a,t)=>{a.A.name&&a.A.name==va[e].name&&Sa.getLayers().removeAt(t)})))}))}var t;Ea++,1==Ea&&(aa=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}),Sa.addLayer(aa),t=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}),Sa.addLayer(t))})),s((()=>ea.value),((e,a)=>{j.value=window.localStorage.getItem("divisions"),Oa(j.value,ea.value.name),Na(j.value,ea.value.name),Ba(ea.value.name),Da(j.value,ea.value.name);let t=ea.value.name.replace(/-/g,"_");va={"洪涝区":{setOf:`${ea.value.name}-honglao`,name:`T${t}_honglao`}}}));let Ca=l({label:[]});const _a=e=>{ma.value.area=e},Fa=()=>{let a=[],t=[];var l;(l={yearMonth:ma.value.time,statistical:ma.value.statistical,droughtRating:ma.value.droughtRating?ma.value.droughtRating:"1",area:ma.value.area},e({url:"equipment/listDroughtsDamage",method:"get",params:l})).then((e=>{if("行政区划"==ma.value.statistical){e.data.forEach((e=>{-1==a.indexOf(e.typeName)&&a.push(e.typeName)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.typeName&&(a.region=e.typeName,a["洪涝"]=Number(e.yesFlooding).toFixed(2))}))})),Xe.value=!1,Te.value=t,ga.value[0]["洪涝"]=0,ga.value[0].region="合计",t.forEach((e=>{e.洪涝&&(ga.value[0]["洪涝"]+=NaN!==Number(e.洪涝)?Number(e.洪涝):0)}));for(const e in ga.value[0])"合计"!==ga.value[0][e]&&(ga.value[0][e]=ga.value[0][e].toFixed(2))}else if("作物类型"==ma.value.statistical){e.data.forEach((e=>{-1==a.indexOf(e.type)&&a.push(e.type)})),a.forEach((e=>{t.push(Object.create(null,{regio:{value:e}}))})),t.forEach((a=>{e.data.map((e=>{a.regio===e.type&&(a.region=e.type,a["洪涝"]=Number(e.yesFlooding).toFixed(2))}))})),Xe.value=!1,Te.value=t,ga.value[0]["洪涝"]=0,ga.value[0].region="合计",t.forEach((e=>{e.洪涝&&(ga.value[0]["洪涝"]+=NaN!==Number(e.洪涝)?Number(e.洪涝):0)}));for(const e in ga.value[0])"合计"!==ga.value[0][e]&&(ga.value[0][e]=ga.value[0][e].toFixed(2))}else if("高标准农田"==ma.value.statistical){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["洪涝"]=Number(e.yesFlooding).toFixed(2))}))})),Xe.value=!1,Te.value=t,ga.value[0]["洪涝"]=0,ga.value[0].region="合计",t.forEach((e=>{e.洪涝&&(ga.value[0]["洪涝"]+=NaN!==Number(e.洪涝)?Number(e.洪涝):0)}));for(const e in ga.value[0])"合计"!==ga.value[0][e]&&(ga.value[0][e]=ga.value[0][e].toFixed(2))}const l=$e.value;l.style.width=window.innerWidth-100+"px",l.style.height=window.innerHeight-100+"px";const o=U(l);window.addEventListener("resize",(()=>{l.style.width=window.innerWidth-200+"px",l.style.height=window.innerHeight-200+"px",o.resize()})),function(){const e=U($e.value);let a=[],t=[];Te.value.forEach((e=>{a.push(e.region),void 0!==e.洪涝?t.push(e.洪涝):t.push(0)}));let l=10/a.length*100,o={tooltip:{trigger:"axis",formatter:function(e){let a=e[0].axisValueLabel+"
",t=0;for(let l=0;l");for(let l=0;l",t=0;for(let l=0;l`;t+=e[l].value,a+=o+e[l].seriesName+":"+e[l].value+"
"}for(let l=0;l{ma.value.time=He.value[He.value.length-1],ma.value.statistical="行政区划",ma.value.droughtRating="",ma.value.area=0,Re.value=0,Xe.value=!0,Fa()},ja=e=>{Ke.value=Ze.value.slice((e-1)*ua.value,e*ua.value)},Ma=()=>{var a;e({url:"equipment/listDroughtsDamageYear",method:"get",params:a}).then((e=>{ea.value={name:e.data[e.data.length-1]},He.value=e.data;let a=[];e.data.forEach((e=>{a.push({name:e})})),Ze.value=a,ia.value=Math.ceil(Ze.value.length/5),sa=Math.ceil(a.length/5),Ke.value=Ze.value.slice((sa-1)*ua.value,sa*ua.value),ma.value.time=e.data[e.data.length-1],Fa();let t=ea.value.name.replace(/-/g,"_");va={"洪涝区":{setOf:`${ea.value.name}-honglao`,name:`T${t}_honglao`}}}))},Oa=(e,a)=>{X({divisions:e,yearMonth:a}).then((e=>{I=o({lable:[],value:[]}),e.data.forEach((e=>{I.lable.push(e.type),I.value.push(e.yesFlooding)})),Wa()}))},Na=(e,a)=>{let t=l([]);H({divisions:e,yearMonth:a}).then((e=>{G=l([]),ya=l([]),V=l(0),e.data.forEach((e=>{V.value+=Number(e.yesFlooding),G.value.push({name:e.type,value:e.yesFlooding}),t.value.push({type:e.type,yesFlooding:`${e.yesFlooding}亩`,zb:`${(100*e.zb).toFixed(2)}%`})})),ya.value=t.value,ra.value=Math.random(),Ja()}))},Ba=e=>{Z({yearMonth:e}).then((e=>{ha.value=JSON.parse(JSON.stringify(e.data)),Pa()}))},Da=(e,a)=>{$({divisions:e,yearMonth:a}).then((e=>{K=l([]);let a=[];ta.value=JSON.parse(JSON.stringify(e.data)),M.arr=e.data.sort(((e,a)=>e.name.length-a.name.length)),M.arr.forEach((e=>{a.push({name:e.name,subregion:e.subregion,yesFloodingPercentage:e.yesFloodingPercentage,createdTime:e.createdTime})})),K.value=a,ra.value=Math.random(),M.arr.unshift({subregion:"370211",name:"全部"});let t=[],o=[];M.arr.forEach((e=>{-1==t.indexOf(e.name)&&(t.push(e.name),o.push({name:e.name,subregion:e.subregion,area:e.area,type:e.type}))})),M.arr=o,Ue.value=JSON.parse(JSON.stringify(M.arr)),Ue.value[0].subregion=null,Ta()}))},Ia=e=>{da.value=e,e?(Wa(),Ja()):(Pa(),Ta())},Ga=a=>{var t;"370211"==j.value?$({divisions:j.value,whetherToDownload:!0,yearMonth:ea.value.name}).then((e=>{W(e.data[e.data.length-1].downloadPath)})):(t={divisions:j.value,whetherToDownload:!0,yearMonth:ea.value.name},e({url:"equipment/village",method:"get",params:t})).then((e=>{W(e.data[e.data.length-1].downloadPath)}))},Va=()=>{let e=JSON.parse(JSON.stringify(ga.value[0]));e.region="合计",Te.value.push(e),Ya(Te.value,"洪涝面积统计表","Sheet1")},Ya=(e,a="用户列表",t="Sheet1")=>{const l=((e,a)=>e.map((e=>{const t={};for(const l in e)a[l]&&(t[a[l]]=e[l]);return t})))(e,{region:"区域名称","洪涝":"洪涝 (亩)"}),o=J.json_to_sheet(l),r=J.book_new();J.book_append_sheet(r,o,t),P(r,`${a}.xlsx`)},Qa=e=>{D.value=[],na.value+=1;for(const t in pa)!0!==pa[t].disabled&&D.value.push(t);B.value=D.value;for(const t in va)Sa.getLayers().getArray().forEach(((e,a)=>{e.A.name==va[t].name&&Sa.getLayers().removeAt(a)}));ea.value=e;let a=e.name.replace(/-/g,"_");va={"洪涝区":{setOf:`${e.name}-honglao`,name:`T${a}_honglao`}},B.value.forEach((e=>{za(va[e])}))};function Wa(){const e=U(C.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%",bottom:5,icon:"rect",textStyle:{fontSize:14,color:"rgba(153, 153, 153, 1)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",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:I.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:I.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(45, 204, 177, 1)"},{offset:1,color:"rgba(71, 179, 161, 0)"}]}},label:{normal:{show:!1,fontSize:14,color:"#ffffff",position:"top"}}}]};a&&e.setOption(a),T().listenTo(C.value,(()=>{d((()=>{e.resize()}))}))}function Ja(){const e=U(_.value);G.value.forEach((e=>{switch(e.itemStyle={},e.name){case"茶叶":e.itemStyle.color="rgba(0, 209, 195, 1)";break;case"大豆":e.itemStyle.color="rgba(255, 184, 148, 1)";break;case"花生":e.itemStyle.color="rgba(255, 140, 255, 1)";break;case"蓝莓":e.itemStyle.color="rgba(0, 153, 255, 1)";break;case"地瓜":e.itemStyle.color="rgba(255, 18, 18, 1)";break;case"小麦":e.itemStyle.color="rgba(25, 196, 22, 1)";break;case"玉米":e.itemStyle.color="rgba(255, 240, 26, 1)";break;case"马铃薯":e.itemStyle.color="rgba(253, 127, 1, 1)";break;case"白菜和萝卜":e.itemStyle.color="rgba(201, 255, 148, 1)";break;case"其他":e.itemStyle.color="rgba(166, 224, 255, 1)"}}));var a=G.value;let t={title:{text:"总面积",subtext:`${V.value}亩`,textStyle:{color:"rgba(51, 51, 51, 1)",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0,let:"20px"},legend:{orient:"vertical",top:"middle",right:"10%",textStyle:{color:"black",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)"}}]}]};Q(e,t),T().listenTo(_.value,(()=>{d((()=>{e.resize()}))}))}function Pa(){const e=U(F.value);var a=[],t=[];let l=[];ha.value.forEach((e=>{a.push(e.region),t.push(e.yesFlooding),l.push({name:e.region,value:e.yesFlooding})}));const o=l.map((e=>e.name)),r=l.map((e=>e.value));Q(e,{grid:{left:10,bottom:10,right:10,top:10,containLabel:!1},tooltip:{trigger:"item",formatter:"面积:{c0} 亩",borderColor:"#458CDC",borderWidth:1,borderRadius:0,textStyle:{color:"#333"}},yAxis:[{inverse:!0,data:o,axisLabel:{textStyle:{fontSize:16,align:"left",fontFamily:"MiSans-Normal",color:"rgba(153, 153, 153, 1)"},padding:[-20,30,15,10],formatter:(e,a)=>`${e}`,rich:{icon:{width:7,height:8,backgroundColor:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAABI0lEQVQokWXSv0qdQRAF8N+93gQlQQmYzkqwsUlp4zv4KLY+kW2wsdFHkHSKoo2KgkbFP4REo/fKMbPwXTOw7H7fzpk55+z07Iyg51+0ffRuH4tBJU7UOauPIZ5rvXgHbqAP+ITPmCrQH/yq9bcLbpUn8QXLmMN+JV/hErf4XeBh6xTQLL5hFYfYwh6OcIqfeMBTl94MvhbtBczjAOuVky5P0dnvaIuW6Y7emLOINaxU0Y+R00DNwb7/I+YsFf1e65B46bjVjXts4DuOi+JoUDbmIwnXBXjEjzJjFye4K01v7gWUpBucYRub5dYFzqtYnEveMGMUHc2EiI2GRN4l1cMg1DMdefQ3TV16uUzVXDaL2zSMjVED5SLt41D+BZh9fGjxCo/fXmSu3pv5AAAAAElFTkSuQmCC"}},icon1:{width:7,height:8,backgroundColor:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAABSUlEQVQokV2Sv0oDQRDGf3u7EYNBEWJnJdjYWNr4Dj6KrU9kqzY2+gx2iqKNioJ/0QQxudztyneZlUsGlt27mW9mvm/GpeExgGNq+U5z94wFC/T21imACFR2aubAGdQBloAe0DXQCPixM2mDc+ZFYLWq2SWxHgLXFvwOvAJfwK+BY64kUJ/EdlWzHxO3IXBWOK6AO+AReAOGQNlubwXHmsrHyGZZsuE9N8Fz6FwToyqleBYtbl0Hyy2+vq7ZKksOJhV7TVJYEJ0MygoW8/Im6MXITh3p55EE80mZUZqS/zfnGATPifccAffWYgomoz4GwIcBxsFzITGAS+AB+DZOjXoCjYHPlHgqCs47gVPnGrVegGdLJuUUF7VG4qGBSgSR1YBlmouyqwMNWtuhoTec2u3JqaxyZonzNsysUQbJofJSSP8E1D27tMAfmOl6GGh2/cMAAAAASUVORK5CYII="}},num:{padding:[0,20,0,5],width:25,color:"#fff",align:"left",fontSize:12,fontFamily:"Mohave-BoldItalic",fontWeight:400}}},offset:0,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1}}],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:{show:!1},series:[{z:1,type:"bar",data:r,barWidth:7,showBackground:!0,backgroundStyle:{color:"rgba(95, 123, 149, 0.2)"},itemStyle:{color:function(e){return new R(0,0,1,0,[{offset:0,color:"rgba(25, 120, 229, 0)"},{offset:1,color:"rgba(0, 213, 255, 1)"}])}}},{type:"pictorialBar",data:r,z:10,symbol:"circle",symbolRotate:null,symbolSize:[8,8],symbolPosition:"end",symbolOffset:[4,0],itemStyle:{color:"rgba(255,255,255,1)"}}]}),T().listenTo(F.value,(()=>{d((()=>{e.resize()}))}))}function Ta(){const e=U(q.value);var a=[],t=[];let l=[];K.value.forEach((e=>{a.push(e.name),t.push(e.yesFloodingPercentage),l.push({name:e.name,value:e.yesFloodingPercentage})}));const o=l.map((e=>e.name)),r=l.map((e=>e.value));Q(e,{grid:{left:120,bottom:10,right:10,top:50,containLabel:!1},tooltip:{trigger:"item",formatter:"面积:{c0} 亩",borderColor:"#458CDC",borderWidth:1,borderRadius:0,textStyle:{color:"rgba(153, 153, 153, 1)"}},yAxis:[{inverse:!0,data:o,axisLabel:{textStyle:{fontSize:16,align:"right",fontFamily:"MiSans-Normal",color:"rgba(153, 153, 153, 1)"},padding:[20,0,15,10],formatter:(e,a)=>`${e}`,rich:{icon:{width:7,height:8,backgroundColor:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAABI0lEQVQokWXSv0qdQRAF8N+93gQlQQmYzkqwsUlp4zv4KLY+kW2wsdFHkHSKoo2KgkbFP4REo/fKMbPwXTOw7H7fzpk55+z07Iyg51+0ffRuH4tBJU7UOauPIZ5rvXgHbqAP+ITPmCrQH/yq9bcLbpUn8QXLmMN+JV/hErf4XeBh6xTQLL5hFYfYwh6OcIqfeMBTl94MvhbtBczjAOuVky5P0dnvaIuW6Y7emLOINaxU0Y+R00DNwb7/I+YsFf1e65B46bjVjXts4DuOi+JoUDbmIwnXBXjEjzJjFye4K01v7gWUpBucYRub5dYFzqtYnEveMGMUHc2EiI2GRN4l1cMg1DMdefQ3TV16uUzVXDaL2zSMjVED5SLt41D+BZh9fGjxCo/fXmSu3pv5AAAAAElFTkSuQmCC"}},icon1:{width:7,height:8,backgroundColor:{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAABSUlEQVQokV2Sv0oDQRDGf3u7EYNBEWJnJdjYWNr4Dj6KrU9kqzY2+gx2iqKNioJ/0QQxudztyneZlUsGlt27mW9mvm/GpeExgGNq+U5z94wFC/T21imACFR2aubAGdQBloAe0DXQCPixM2mDc+ZFYLWq2SWxHgLXFvwOvAJfwK+BY64kUJ/EdlWzHxO3IXBWOK6AO+AReAOGQNlubwXHmsrHyGZZsuE9N8Fz6FwToyqleBYtbl0Hyy2+vq7ZKksOJhV7TVJYEJ0MygoW8/Im6MXITh3p55EE80mZUZqS/zfnGATPifccAffWYgomoz4GwIcBxsFzITGAS+AB+DZOjXoCjYHPlHgqCs47gVPnGrVegGdLJuUUF7VG4qGBSgSR1YBlmouyqwMNWtuhoTec2u3JqaxyZonzNsysUQbJofJSSP8E1D27tMAfmOl6GGh2/cMAAAAASUVORK5CYII="}},num:{padding:[0,20,0,5],width:25,color:"rgba(153, 153, 153, 1)",align:"left",fontSize:12,fontFamily:"Mohave-BoldItalic",fontWeight:400}}},offset:0,splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1}}],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:[{position:"top",type:"value",color:"#59588D",axisLine:{show:!1},min:0,axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{show:!0,lineStyle:{type:"Dashed",color:"rgba(235, 238, 245, 1)"}},name:"",nameLocation:"middle",nameTextStyle:{fontSize:14,align:"center",padding:[20,0,0,0]}}],series:[{z:1,type:"bar",data:r,barWidth:7,showBackground:!0,backgroundStyle:{color:"rgba(95, 123, 149, 0.2)"},itemStyle:{color:function(e){return new R(0,0,1,0,[{offset:0,color:"rgba(255, 225, 104, 0)"},{offset:1,color:"rgba(255, 225, 104, 1)"}])}}},{type:"pictorialBar",data:r,z:10,symbol:"circle",symbolRotate:null,symbolSize:[8,8],symbolPosition:"end",symbolOffset:[4,0],itemStyle:{color:"rgba(255,255,255,1)"}}]}),T().listenTo(q.value,(()=>{d((()=>{e.resize()}))}))}return(e,a)=>{const t=u("el-table-column"),l=u("el-table"),o=u("el-icon"),r=u("el-tooltip"),n=u("el-checkbox"),i=u("el-checkbox-group"),s=u("el-collapse-item"),d=u("el-collapse"),L=u("el-button"),M=u("el-option"),D=u("el-select"),I=u("el-form-item"),G=u("el-input-number"),V=u("el-form");return c(),g("div",ee,[m("div",ae,[te,m("div",le,[m("div",oe,[m("div",{class:p(h(da)?"tabarS":""),onClick:a[0]||(a[0]=e=>Ia(!0))},"黄岛区",2),m("div",{class:p(h(da)?"":"tabarS"),onClick:a[1]||(a[1]=e=>Ia(!1))},"行政区",2)]),v(m("div",re,[m("div",ne,[ie,se,m("p",{onClick:a[2]||(a[2]=e=>{X({divisions:j.value,whetherToDownload:!0,yearMonth:ea.value.name}).then((e=>{W(e.data[e.data.length-1].downloadPath)}))})},[f(" 下载   "),de])]),m("div",{ref_key:"areaDiv",ref:C,class:"areaDiv"},null,512)],512),[[y,h(da)]]),v(m("div",ue,[m("div",ce,[ge,me,m("p",{onClick:a[3]||(a[3]=e=>{H({divisions:j.value,whetherToDownload:!0,yearMonth:ea.value.name}).then((e=>{W(e.data[e.data.length-1].downloadPath)}))})},[f(" 下载   "),pe])]),m("div",{ref_key:"typesofDivs",ref:_,class:"typesofDiv"},null,512),m("div",he,[(c(),b(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:h(ya),style:{width:"100%"},key:h(ra)},{default:S((()=>[w(t,{prop:"type",label:"类型"}),w(t,{prop:"yesFlooding",label:"面积"}),w(t,{prop:"zb",label:"占比"})])),_:1},8,["data"]))])],512),[[y,h(da)]]),v(m("div",ve,[m("div",ye,[fe,be,h(oa)?(c(),g("p",{key:0,onClick:a[4]||(a[4]=e=>{Z({divisions:j.value,whetherToDownload:!0,yearMonth:ea.value.name}).then((e=>{W(e.data[e.data.length-1].downloadPath)}))})},[f(" 下载   "),Se])):x("",!0)]),v(m("div",{class:"farmlandDiv",ref_key:"farmlandDiv",ref:F},null,512),[[y,h(oa)]]),h(oa)?x("",!0):(c(),g("div",we,xe))],512),[[y,!h(da)]]),v(m("div",Ae,[m("div",ke,[ze,Ee,m("p",{onClick:a[5]||(a[5]=e=>Ga())},[f(" 下载   "),Le])]),m("div",{class:"ASdivision",ref_key:"ASdivision",ref:q},null,512)],512),[[y,!h(da)]]),m("div",{class:"rightFoldDiv",onClick:a[6]||(a[6]=e=>(N.value=!N.value,void(N.value?document.querySelector(".rightWra").style.transform="translate(0,0)":document.querySelector(".rightWra").style.transform="translate(101%,0)")))},[w(r,{disabled:!h(N),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"收起",placement:"top"},{default:S((()=>[h(N)?(c(),b(o,{key:0},{default:S((()=>[Ce])),_:1})):x("",!0)])),_:1},8,["disabled"]),w(r,{disabled:h(N),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"展开",placement:"top"},{default:S((()=>[h(N)?x("",!0):(c(),b(o,{key:0},{default:S((()=>[_e])),_:1}))])),_:1},8,["disabled"])])]),m("div",Fe,[h(Ke).length>0?(c(),b(Y,{key:0,dataSource:h(Ke),onDataHandle:Qa,allCount:h(ia),onGetcurrentPage:ja},null,8,["dataSource","allCount"])):x("",!0)]),qe,w(d,{class:"legend",accordion:""},{default:S((()=>[w(s,{name:"1"},{title:S((()=>[f("图例")])),default:S((()=>[m("div",je,[w(i,{modelValue:B.value,"onUpdate:modelValue":a[7]||(a[7]=e=>B.value=e),onChange:La},{default:S((()=>[(c(!0),g(A,null,k(h(pa),((e,a,t)=>(c(),b(n,{key:t,"v-model":e.disabled,disabled:e.disabled,label:a},{default:S((()=>[m("span",{style:z({background:e.color,border:`1px solid ${e.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),f(" "+E(a),1)])),_:2},1032,["v-model","disabled","label"])))),128))])),_:1},8,["modelValue"])])])),_:1})])),_:1}),m("div",Me,[Oe,m("div",Ne,[(c(!0),g(A,null,k(h(la),((e,a)=>(c(),g("div",{class:"perform",key:a},[m("div",Be,[De,m("span",null,E(e.yesFloodingPercentage)+"(亩)",1)])])))),128))]),Ie]),m("div",Ge,[(c(!0),g(A,null,k(h(Ca).label,((e,a)=>(c(),g("div",{key:a},[m("div",null,E(e.crop)+":",1),m("div",null,E(e.Shape_Area)+" 亩",1)])))),128)),h(Ca).XZQMC?(c(),g("div",Ve,[Ye,m("div",null,E(h(Ca).XZQMC),1)])):x("",!0),m("div",{class:"cancel",onClick:a[8]||(a[8]=(...a)=>e.hiddenOverlayChart&&e.hiddenOverlayChart(...a))},"X")]),O.value?(c(),b(L,{key:0,class:"back_button",onClick:a[9]||(a[9]=a=>e.back())},{default:S((()=>[f("返回")])),_:1})):x("",!0)]),m("div",Qe,[m("div",We,[w(V,{inline:!0,model:h(ma),class:"demo-form-inline"},{default:S((()=>[w(I,{label:"时间:"},{default:S((()=>[w(D,{"popper-class":"selectCity",modelValue:h(ma).time,"onUpdate:modelValue":a[10]||(a[10]=e=>h(ma).time=e),placeholder:"请选择"},{default:S((()=>[(c(!0),g(A,null,k(h(He),((a,t)=>(c(),b(M,{key:t,label:e.Zitem,value:a},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),w(I,{label:"统计方式:"},{default:S((()=>[w(D,{"popper-class":"selectCity",modelValue:h(ma).statistical,"onUpdate:modelValue":a[11]||(a[11]=e=>h(ma).statistical=e),placeholder:"请选择"},{default:S((()=>[w(M,{label:"作物类型",value:"作物类型"}),w(M,{label:"行政区划",value:"行政区划"}),h(oa)?(c(),b(M,{key:0,label:"高标准农田",value:"高标准农田"})):x("",!0)])),_:1},8,["modelValue"])])),_:1}),w(I,{label:"镇"},{default:S((()=>[w(D,{modelValue:h(ma).droughtRating,"onUpdate:modelValue":a[12]||(a[12]=e=>h(ma).droughtRating=e),"popper-class":"selectCity",disabled:"行政区划"!==h(ma).statistical,placeholder:"行政区划"===h(ma).statistical?"全部":"请选择"},{default:S((()=>[(c(!0),g(A,null,k(h(Ue),((e,a)=>(c(),b(M,{key:a,label:e.name,value:e.subregion},null,8,["label","value"])))),128))])),_:1},8,["modelValue","disabled","placeholder"])])),_:1}),w(I,{label:"面积(亩)>"},{default:S((()=>[w(G,{modelValue:Re.value,"onUpdate:modelValue":a[13]||(a[13]=e=>Re.value=e),min:0,onChange:_a},null,8,["modelValue"])])),_:1}),w(I,null,{default:S((()=>[w(L,{type:"primary",onClick:Fa},{default:S((()=>[f("查询")])),_:1}),w(L,{plain:"",onClick:qa},{default:S((()=>[f("重置")])),_:1}),h(Xe)?x("",!0):(c(),b(L,{key:0,type:"primary",text:"",onClick:Va},{default:S((()=>[Je,f(" 下载 ")])),_:1}))])),_:1})])),_:1},8,["model"])]),m("div",Pe,[m("div",{ref_key:"chartModeDiv",ref:$e,class:"chartModeDiv"},null,512)])])])}}},[["__scopeId","data-v-04e5bdb5"]]);export{Te as default};