Agriculture-front-end/dist/assets/FloodExtraction.889141f8.js

2 lines
36 KiB
JavaScript

import{Q as B,_ as Ct,u as Et,r as s,I as Fe,x as Lt,H as Je,aa as Ft,a2 as Ue,S as ue,d as C,o as y,c as N,l as i,O as Re,f as g,K as X,M as $,n as O,k as M,w as m,e as v,m as q,V as H,W as Z,N as It,A as K,F as Nt,q as Ot,s as Mt}from"./index.064676a5.js";import he from"./downloads.e955445d.js";import{_ as qt}from"./qx.88a5ecd3.js";import{_ as Bt,a as Vt}from"./zhankaiss.6870329f.js";import{_ as Gt,a as Wt,b as Qt,c as Yt}from"./position.3b2b2301.js";import{_ as Pt,a as Tt}from"./face.d3470a20.js";import{_ as jt}from"./dow.b4b83e88.js";import"./index.2809c208.js";import{T as Jt}from"./TimeLine.b15d4f73.js";import{u as ce}from"./useEcharts.c88e6744.js";import"./linesGL.76a64914.js";import{d as ee}from"./download.fe7036ba.js";import{u as Ie,w as Ut}from"./xlsx.881b8a71.js";import{e as ge}from"./element-resize-detector.d4d1cd8d.js";import{ai as P,aj as Xe}from"./linkSeriesData.e74eae00.js";/* empty css */import"./browser-detector.d146ab9e.js";function $e(_){return B({url:"equipment/damageArea",method:"get",params:_})}function He(_){return B({url:"equipment/proportion",method:"get",params:_})}function Ze(_){return B({url:"equipment/highStandard",method:"get",params:_})}function Ne(_){return B({url:"equipment/townInformation",method:"get",params:_})}function Rt(_){return B({url:"equipment/village",method:"get",params:_})}function Xt(_){return B({url:"equipment/listDroughtsDamageYear",method:"get",params:_})}function $t(_){return B({url:"equipment/listDroughtsDamage",method:"get",params:_})}function Ht(_){return B({url:"equipment/villageChun",method:"get",params:_})}const b=_=>(Ot("data-v-04e5bdb5"),_=_(),Mt(),_),Zt={class:"fatherDiv"},Kt={class:"centerBox"},ea=b(()=>i("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),ta={class:"rightWra"},aa={class:"tabar"},oa={class:"leftTop"},la={class:"title"},ra=b(()=>i("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),na=b(()=>i("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u7EDF\u8BA1",-1)),ia=b(()=>i("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),sa={class:"leftbottom"},da={class:"title"},ua=b(()=>i("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ca=b(()=>i("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u5360\u6BD4",-1)),ga=b(()=>i("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ha={class:"tableDiv"},pa={class:"rightTop"},ma={class:"title"},fa=b(()=>i("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),va=b(()=>i("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ya=b(()=>i("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ba={key:0},_a=b(()=>i("img",{src:qt},null,-1)),Sa=[_a],wa={class:"rightbottom"},xa={class:"title"},Aa=b(()=>i("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}},null,-1)),ka=b(()=>i("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Da=b(()=>i("img",{src:he,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),za=b(()=>i("img",{src:Bt},null,-1)),Ca=b(()=>i("img",{src:Vt},null,-1)),Ea={class:"bottom_center"},La=Nt('<div class="tool" data-v-04e5bdb5><span data-v-04e5bdb5><img src="'+Gt+'" alt="" data-v-04e5bdb5></span><span data-v-04e5bdb5><img src="'+Wt+'" alt="" data-v-04e5bdb5></span><span data-v-04e5bdb5><img src="'+Qt+'" alt="" data-v-04e5bdb5></span><span data-v-04e5bdb5><img src="'+Pt+'" alt="" data-v-04e5bdb5></span><span data-v-04e5bdb5><img src="'+Tt+'" alt="" data-v-04e5bdb5></span><span data-v-04e5bdb5><img src="'+Yt+'" alt="" data-v-04e5bdb5></span></div>',1),Fa={class:"mt-4"},Ia={id:"popup",class:"ol-popup"},Na=b(()=>i("div",{class:"pophead",style:{width:"100%"}},[i("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)"}}),i("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Oa={id:"popup-content",style:{padding:"10px"}},Ma={class:"perform_children"},qa=b(()=>i("div",{class:"label"},"\u6D2A\u6D9D\u533A :",-1)),Ba=b(()=>i("div",{id:"popup-pagination"},null,-1)),Va={id:"pop"},Ga={key:0},Wa=b(()=>i("div",null,"\u6751\u540D\uFF1A",-1)),Qa={class:"tabulation"},Ya={class:"searchDiv"},Pa=b(()=>i("img",{src:jt,alt:""},null,-1)),Ta={class:"chartMode"},ja={__name:"FloodExtraction",setup(_){const Ke=Et();s(null);const pe=s(null),me=s(null);s(null);const fe=s(null),ve=s(null),E=s("370211");E.value=window.localStorage.getItem("divisions"),s(null);let W=Fe({arr:[],brr:[],crr:[]});s({name:"",value:""}),s([]);const et=s(!1);s(!1);let V=s(!1);const Q=s([]);let T=s([]),j=Fe({lable:[],value:[]}),te=s([]),ye=s(0),be=s([]);const Y=s([]);let _e=s([]);const ae=s(0);let J=s(!0);s(1),s(12);let oe=s([]),le=s([]);const Se=s(null);let re=s([]),k=s(""),ne=s(null);s("");let tt=s([]),we=s([]),U=!(window.localStorage.getItem("divisions").length>6),xe=s([]),Ae=s(1),Oe=s([]),ke=s(""),G=s(!0),ie=s(5),Me=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),f=s([{\u6D2A\u6D9D:0}]),p=s({time:"",statistical:"\u884C\u653F\u533A\u5212",droughtRating:"",area:ae.value}),R={\u6D2A\u6D9D\u533A:{color:"rgba(9, 187, 222, 1)",disabled:!1}},qe=s([]),F={\u6D2A\u6D9D\u533A:{setOf:"2020-05-26-honglao",name:"T2020_05_26_honglao"}},De=s([]);Lt(()=>{at()});function at(){pt(),ot(),rt(),lt(),Ee(),Le();for(const n in R)R[n].disabled!==!0&&T.value.push(n);Q.value=T.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(101%,0)"}Je(()=>{localStorage.getItem(Ke.currentRoute.value.path)=="false"?(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F"):(document.querySelector(".mode").style.display="block",document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F")}),s(null),s(null);let Be=s(null),se=s(null),h=s(null);function ot(){h=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})]}),h.on("moveend",function(t){var e=h.getView().getZoom();e>=13?ne.setVisible(!0):ne.setVisible(!1)}),h.on("singleclick",function(t){var e=t.coordinate;if(U){var n=e[0],r=e[1],l=h.getView(),a=h.getView().getZoom();l.animate({center:[n,r],duration:1e3}),a>=13?de(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):de(t,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547")}else{let d=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,c=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Me}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(c,function(S){let x=new ol.format.GeoJSON().readFeatures(S.result.features),o=new ol.source.Vector;o.addFeatures(x);let L=new ol.layer.Vector({source:o}).getSource().getFeatures();for(var A=0;A<L.length;A++)if(L[A].getGeometry().intersectsCoordinate(e)){var D=e[0],I=e[1],u=h.getView(),z=h.getView().getZoom();u.animate({center:[D,I],duration:1e3}),z>=13?de(t,"CJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u6751"):de(t,"XJQY3702112019WGS84@huangdaoqu_bianjie",`${serverAPI.geoserverUrl}/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,"\u9547")}})}}),nt(Me)}Je(()=>{var t=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),n=new ResizeObserver(function(r){r.forEach(function(l){var a=l.contentRect.width,d=l.contentRect.height;e.style.width=a+"px",e.style.height=d+"px",h.updateSize()})});n.observe(t)});function de(t,e,n,r){var l=new ol.geom.Point(t.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:l});let d=[],c=document.querySelector("#popup-title"),S=s(null),x=s(null);new ol.supermap.QueryService(n).queryByGeometry(a,function(o){let w="";if(x=h.getLayers().getArray().find(A=>A.get("id")==="zhezhao"),h.removeLayer(x),r=="\u9547"&&o.result.recordsets[0].features.features[0].properties.XJQYDM){let A=o.result.recordsets[0].features.features[0].properties.XJQYDM,D=[];Ne({divisions:"370211",yearMonth:k.value.name}).then(I=>{I.data.forEach(u=>{u.subregion==A&&(w=u.name,D.push(u)),we.value=D}),L()})}else if(r=="\u6751"&&o.result.recordsets[0].features.features[0].properties.CJQYDM){let A=o.result.recordsets[0].features.features[0].properties.CJQYDM,D=[];Ht({divisions:A,yearMonth:k.value.name}).then(I=>{I.data.forEach(u=>{D.push(u)}),w=I.data[0].name,we.value=D,L()})}function L(){if(o.result.currentCount>0){o.result.recordsets[0].features&&(se.setPosition(l.flatCoordinates),c.innerHTML=w),S=h.getLayers().getArray().find(z=>z.get("id")==="dianjigaoliang"),h.removeLayer(S);var A=new ol.format.GeoJSON().readFeatures(o.result.recordsets[0].features);d=o.result.recordsets[0].features.features[0].geometry.coordinates,Ve(o.result.recordsets[0].features.features[0].geometry.coordinates);var D=new ol.source.Vector;D.addFeatures(A);const u=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var I=new ol.layer.Vector({id:"dianjigaoliang",source:D,zIndex:9999});I.setStyle(u),h.addLayer(I)}}}),Be.addEventListener("click",function(){x=h.getLayers().getArray().find(o=>o.get("id")==="zhezhao"),h.removeLayer(x),Ge(d),E.value=window.localStorage.getItem("divisions"),S=h.getLayers().getArray().find(o=>o.get("id")==="dianjigaoliang"),h.removeLayer(S),se.setPosition(void 0)})}const lt=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Be=document.getElementById("popup-closer"),se=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),h.addOverlay(se)};function rt(){Ft.get("/json/huangdao.json").then(({data:t})=>{new ol.format.GeoJSON().readFeatures(t)[0]})}function Ve(t,e,n,r){let l=new ol.source.Vector;var a=new ol.layer.Vector({id:e||"zhezhao",source:l,zIndex:r||50,style:new ol.style.Style({fill:new ol.style.Fill({color:n||"rgba( 105, 105, 105, 0.9)"})})});const d=Ge(t),c=new ol.Feature({geometry:d});a.getSource().addFeature(c),h.addLayer(a)}function Ge(t){const e=[-180,-90,180,90],n=ol.geom.Polygon.fromExtent(e);return t.forEach(l=>{const a=new ol.geom.LinearRing(l[0]);n.appendLinearRing(a)}),n}function nt(t){let e="",n="",r="",l="",a="";n=`${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`,e=t,r="XJQY3702112019WGS84",l="huangdaoqu_bianjie",a="XJQYMC";var d=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${r}@${l}`,attributeFilter:`${a} like '%${e}%'`},datasetNames:[`${l}:${r}`]});new ol.supermap.FeatureService(n).getFeaturesBySQL(d,function(c){if(c.result.featureCount!=0){var S=h.getLayers().getArray().find(D=>D.get("id")==="zhezhao");h.removeLayer(S);var x=h.getLayers().getArray().find(D=>D.get("id")==="dianjigaoliang");h.removeLayer(x);var o=new ol.format.GeoJSON().readFeatures(c.result.features);Ve(c.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var w=new ol.source.Vector;w.addFeatures(o);const A=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var L=new ol.layer.Vector({id:"dianjigaoliang",source:w});L.setStyle(A),h.addLayer(L),h.getView().fit(w.getExtent())}})}const it=()=>{ne=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}),h.addLayer(ne)},st=()=>{var 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});h.addLayer(t)},We=t=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${t.setOf}/rest/maps/${t.name}@${t.setOf}`,cacheEnabled:!1}),name:t.name,projection:"EPSG:4326"});h.addLayer(e)};let Qe=0;const dt=()=>{Ae.value=0};Ue(()=>Q.value,(t,e)=>{t.length>e.length&&Ae.value<1?t.filter(r=>{if(e.findIndex(a=>a===r)<0)return r}).forEach(r=>{F[r]&&We(F[r])}):t.length<e.length&&e.filter(r=>{if(t.findIndex(a=>a===r)<0)return r}).forEach(r=>{F[r]&&(h.getLayers().getArray().indexOf(F[r].name),h.getLayers().getArray().forEach((l,a)=>{l.A.name&&l.A.name==F[r].name&&h.getLayers().removeAt(a)}))}),Qe++,Qe==1&&(it(),st())}),Ue(()=>k.value,(t,e)=>{E.value=window.localStorage.getItem("divisions"),mt(E.value,k.value.name),ft(E.value,k.value.name),vt(k.value.name),yt(E.value,k.value.name);let r=k.value.name.replace(/-/g,"_");F={\u6D2A\u6D9D\u533A:{setOf:`${k.value.name}-honglao`,name:`T${r}_honglao`}}});let ze=s({label:[]});function ut(){if(V.value=!V.value,V.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(101%,0)"}}const ct=t=>{p.value.area=t},Ce=()=>{let t=[],e=[];$t({yearMonth:p.value.time,statistical:p.value.statistical,droughtRating:p.value.droughtRating?p.value.droughtRating:"1",area:p.value.area}).then(n=>{if(p.value.statistical=="\u884C\u653F\u533A\u5212"){n.data.forEach(a=>{t.indexOf(a.typeName)==-1&&t.push(a.typeName)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{n.data.map(d=>{a.regio===d.typeName&&(a.region=d.typeName,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),J.value=!1,Y.value=e,f.value[0].\u6D2A\u6D9D=0,f.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(f.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in f.value[0])f.value[0][a]!=="\u5408\u8BA1"&&(f.value[0][a]=f.value[0][a].toFixed(2))}else if(p.value.statistical=="\u4F5C\u7269\u7C7B\u578B"){n.data.forEach(a=>{t.indexOf(a.type)==-1&&t.push(a.type)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{n.data.map(d=>{a.regio===d.type&&(a.region=d.type,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),J.value=!1,Y.value=e,f.value[0].\u6D2A\u6D9D=0,f.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(f.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in f.value[0])f.value[0][a]!=="\u5408\u8BA1"&&(f.value[0][a]=f.value[0][a].toFixed(2))}else if(p.value.statistical=="\u9AD8\u6807\u51C6\u519C\u7530"){n.data.forEach(a=>{t.indexOf(a.region)==-1&&t.push(a.region)}),t.forEach(a=>{e.push(Object.create(null,{regio:{value:a}}))}),e.forEach(a=>{n.data.map(d=>{a.regio===d.region&&(a.region=d.region,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),J.value=!1,Y.value=e,f.value[0].\u6D2A\u6D9D=0,f.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(f.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in f.value[0])f.value[0][a]!=="\u5408\u8BA1"&&(f.value[0][a]=f.value[0][a].toFixed(2))}const r=Se.value;r.style.width=window.innerWidth-100+"px",r.style.height=window.innerHeight-100+"px";const l=P(r);window.addEventListener("resize",()=>{r.style.width=window.innerWidth-200+"px",r.style.height=window.innerHeight-200+"px",l.resize()}),zt()})},gt=()=>{p.value.time=oe.value[oe.value.length-1],p.value.statistical="\u884C\u653F\u533A\u5212",p.value.droughtRating="",p.value.area=0,ae.value=0,J.value=!0,Ce()},ht=t=>{re.value=le.value.slice((t-1)*ie.value,t*ie.value)},pt=()=>{Xt().then(t=>{k.value={name:t.data[t.data.length-1]},oe.value=t.data;let e=[];t.data.forEach(l=>{e.push({name:l})}),le.value=e,Oe.value=Math.ceil(le.value.length/5),ke=Math.ceil(e.length/5),re.value=le.value.slice((ke-1)*ie.value,ke*ie.value),p.value.time=t.data[t.data.length-1],Ce();let r=k.value.name.replace(/-/g,"_");F={\u6D2A\u6D9D\u533A:{setOf:`${k.value.name}-honglao`,name:`T${r}_honglao`}}})},mt=(t,e)=>{$e({divisions:t,yearMonth:e}).then(n=>{j=Fe({lable:[],value:[]}),n.data.forEach(r=>{j.lable.push(r.type),j.value.push(r.yesFlooding)}),Ee()})},ft=(t,e)=>{let n=s([]);He({divisions:t,yearMonth:e}).then(r=>{te=s([]),De=s([]),ye=s(0),r.data.forEach(l=>{ye.value+=Number(l.yesFlooding),te.value.push({name:l.type,value:l.yesFlooding}),n.value.push({type:l.type,yesFlooding:`${l.yesFlooding}\u4EA9`,zb:`${(l.zb*100).toFixed(2)}%`})}),De.value=n.value,xe.value=Math.random(),Le()})},vt=t=>{Ze({yearMonth:t}).then(e=>{qe.value=JSON.parse(JSON.stringify(e.data)),Pe()})},yt=(t,e)=>{Ne({divisions:t,yearMonth:e}).then(n=>{be=s([]);let r=[];tt.value=JSON.parse(JSON.stringify(n.data)),W.arr=n.data.sort((d,c)=>d.name.length-c.name.length),W.arr.forEach(d=>{r.push({name:d.name,subregion:d.subregion,yesFloodingPercentage:d.yesFloodingPercentage,createdTime:d.createdTime})}),be.value=r,xe.value=Math.random(),W.arr.unshift({subregion:"370211",name:"\u5168\u90E8"});let l=[],a=[];W.arr.forEach(d=>{l.indexOf(d.name)==-1&&(l.push(d.name),a.push({name:d.name,subregion:d.subregion,area:d.area,type:d.type}))}),W.arr=a,_e.value=JSON.parse(JSON.stringify(W.arr)),_e.value[0].subregion=null,Te()})},Ye=t=>{G.value=t,t?(Ee(),Le()):(Pe(),Te())},bt=t=>{$e({divisions:E.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{ee(e.data[e.data.length-1].downloadPath)})},_t=t=>{He({divisions:E.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{ee(e.data[e.data.length-1].downloadPath)})},St=t=>{Ze({divisions:E.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{ee(e.data[e.data.length-1].downloadPath)})},wt=t=>{E.value=="370211"?Ne({divisions:E.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{ee(e.data[e.data.length-1].downloadPath)}):Rt({divisions:E.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{ee(e.data[e.data.length-1].downloadPath)})},xt=()=>{let t=JSON.parse(JSON.stringify(f.value[0]));t.region="\u5408\u8BA1",Y.value.push(t),kt(Y.value,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},At=(t,e)=>t.map(r=>{const l={};for(const a in r)e[a]&&(l[e[a]]=r[a]);return l}),kt=(t,e="\u7528\u6237\u5217\u8868",n="Sheet1")=>{const l=At(t,{region:"\u533A\u57DF\u540D\u79F0",\u6D2A\u6D9D:"\u6D2A\u6D9D (\u4EA9)"}),a=Ie.json_to_sheet(l),d=Ie.book_new();Ie.book_append_sheet(d,a,n),Ut(d,`${e}.xlsx`)},Dt=t=>{T.value=[],Ae.value+=1;for(const n in R)R[n].disabled!==!0&&T.value.push(n);Q.value=T.value;for(const n in F)h.getLayers().getArray().forEach((r,l)=>{r.A.name==F[n].name&&h.getLayers().removeAt(l)});k.value=t;let e=t.name.replace(/-/g,"_");F={\u6D2A\u6D9D\u533A:{setOf:`${t.name}-honglao`,name:`T${e}_honglao`}},Q.value.forEach(n=>{We(F[n])})};function Ee(){const t=P(pe.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%",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:j.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(153, 153, 153, 1)",fontSize:14},type:"value",axisLabel:{color:"rgba(153, 153, 153, 1)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:j.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&&t.setOption(e),ge().listenTo(pe.value,()=>{ue(()=>{t.resize()})})}function Le(){const t=P(me.value);te.value.forEach(l=>{switch(l.itemStyle={},l.name){case"\u8336\u53F6":l.itemStyle.color="rgba(0, 209, 195, 1)";break;case"\u5927\u8C46":l.itemStyle.color="rgba(255, 184, 148, 1)";break;case"\u82B1\u751F":l.itemStyle.color="rgba(255, 140, 255, 1)";break;case"\u84DD\u8393":l.itemStyle.color="rgba(0, 153, 255, 1)";break;case"\u5730\u74DC":l.itemStyle.color="rgba(255, 18, 18, 1)";break;case"\u5C0F\u9EA6":l.itemStyle.color="rgba(25, 196, 22, 1)";break;case"\u7389\u7C73":l.itemStyle.color="rgba(255, 240, 26, 1)";break;case"\u9A6C\u94C3\u85AF":l.itemStyle.color="rgba(253, 127, 1, 1)";break;case"\u767D\u83DC\u548C\u841D\u535C":l.itemStyle.color="rgba(201, 255, 148, 1)";break;case"\u5176\u4ED6":l.itemStyle.color="rgba(166, 224, 255, 1)";break}});var e=te.value;let n={title:{text:"\u603B\u9762\u79EF",subtext:`${ye.value}\u4EA9`,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: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)"}}]}]};ce(t,n),ge().listenTo(me.value,()=>{ue(()=>{t.resize()})})}function Pe(){const t=P(fe.value);var e=[],n=[];let r=[];qe.value.forEach(o=>{e.push(o.region),n.push(o.yesFlooding),r.push({name:o.region,value:o.yesFlooding})});const l=r.map(o=>o.name),a=r.map(o=>o.value);ce(t,{grid:{left:10,bottom:10,right:10,top:10,containLabel:!1},tooltip:{trigger:"item",formatter:"\u9762\u79EF:{c0} \u4EA9",borderColor:"#458CDC",borderWidth:1,borderRadius:0,textStyle:{color:"#333"}},yAxis:[{inverse:!0,data:l,axisLabel:{textStyle:{fontSize:16,align:"left",fontFamily:"MiSans-Normal",color:"rgba(153, 153, 153, 1)"},padding:[-20,30,15,10],formatter:(o,w)=>w===0?`${o}`:`${o}`,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:a,barWidth:7,showBackground:!0,backgroundStyle:{color:"rgba(95, 123, 149, 0.2)"},itemStyle:{color:function(o){return new Xe(0,0,1,0,[{offset:0,color:"rgba(25, 120, 229, 0)"},{offset:1,color:"rgba(0, 213, 255, 1)"}])}}},{type:"pictorialBar",data:a,z:10,symbol:"circle",symbolRotate:null,symbolSize:[8,8],symbolPosition:"end",symbolOffset:[4,0],itemStyle:{color:"rgba(255,255,255,1)"}}]}),ge().listenTo(fe.value,()=>{ue(()=>{t.resize()})})}function Te(){const t=P(ve.value);var e=[],n=[];let r=[];be.value.forEach(o=>{e.push(o.name),n.push(o.yesFloodingPercentage),r.push({name:o.name,value:o.yesFloodingPercentage})});const l=r.map(o=>o.name),a=r.map(o=>o.value);ce(t,{grid:{left:120,bottom:10,right:10,top:50,containLabel:!1},tooltip:{trigger:"item",formatter:"\u9762\u79EF:{c0} \u4EA9",borderColor:"#458CDC",borderWidth:1,borderRadius:0,textStyle:{color:"rgba(153, 153, 153, 1)"}},yAxis:[{inverse:!0,data:l,axisLabel:{textStyle:{fontSize:16,align:"right",fontFamily:"MiSans-Normal",color:"rgba(153, 153, 153, 1)"},padding:[20,0,15,10],formatter:(o,w)=>w===0?`${o}`:`${o}`,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:a,barWidth:7,showBackground:!0,backgroundStyle:{color:"rgba(95, 123, 149, 0.2)"},itemStyle:{color:function(o){return new Xe(0,0,1,0,[{offset:0,color:"rgba(255, 225, 104, 0)"},{offset:1,color:"rgba(255, 225, 104, 1)"}])}}},{type:"pictorialBar",data:a,z:10,symbol:"circle",symbolRotate:null,symbolSize:[8,8],symbolPosition:"end",symbolOffset:[4,0],itemStyle:{color:"rgba(255,255,255,1)"}}]}),ge().listenTo(ve.value,()=>{ue(()=>{t.resize()})})}function zt(){const t=P(Se.value);let e=[],n=[];Y.value.forEach(c=>{e.push(c.region),c.\u6D2A\u6D9D!==void 0?n.push(c.\u6D2A\u6D9D):n.push(0)});let r=10/e.length*100,l={tooltip:{trigger:"axis",formatter:function(c){let S=c[0].axisValueLabel+"</br>",x=0;for(let o=0;o<c.length;o++)x+=c[o].value,c[o].seriesName!=="\u5408\u8BA1"&&(S+=c[o].seriesName+"\uFF1A"+c[o].value+"</br>");for(let o=0;o<c.length;o++)x+=Number(c[o].value),c[o].seriesName==="\u5408\u8BA1"&&(S+="\u5408\u8BA1\uFF1A"+x);return S},axisPointer:{type:"shadow"}},legend:{top:5,left:10,icon:"rect",itemWidth:4,itemHeight:12,data:[]},dataZoom:[{type:"slider",width:"40%",top:"90%",start:0,zoomLock:!0,end:r,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"}],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:"\u6D2A\u6D9D",type:"bar",barWidth:13,stack:"\u5206\u7C7B",itemStyle:{color:{x:0,y:0,x2:0,y2:1,type:"linear",global:!1,colorStops:[{offset:0,color:"rgba(98, 161, 255, 1)"},{offset:1,color:"rgba(62, 109, 239, 1)"}]},barBorderRadius:[30,30,0,0]},data:n}]};l.series;var a=l.tooltip;function d(c){let S=c[0].axisValueLabel+"</br>",x=0;for(let o=0;o<c.length;o++)if(c[o].seriesName!=="\u5408\u8BA1"){const w=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${c[o].color}"></span>`;x+=c[o].value,S+=w+c[o].seriesName+"\uFF1A"+c[o].value+"</br>"}for(let o=0;o<c.length;o++)c[o].seriesName==="\u5408\u8BA1"&&(S+="\u5408\u8BA1\uFF1A"+x);return S}a.formatter=d,ce(t,l)}return(t,e)=>{const n=C("el-table-column"),r=C("el-table"),l=C("el-icon"),a=C("el-tooltip"),d=C("el-checkbox"),c=C("el-checkbox-group"),S=C("el-collapse-item"),x=C("el-collapse"),o=C("el-button"),w=C("el-option"),L=C("el-select"),A=C("el-form-item"),D=C("el-input-number"),I=C("el-form");return y(),N("div",Zt,[i("div",Kt,[ea,i("div",ta,[i("div",aa,[i("div",{class:Re(g(G)?"tabarS":""),onClick:e[0]||(e[0]=u=>Ye(!0))},"\u9EC4\u5C9B\u533A",2),i("div",{class:Re(g(G)?"":"tabarS"),onClick:e[1]||(e[1]=u=>Ye(!1))},"\u884C\u653F\u533A",2)]),X(i("div",oa,[i("div",la,[ra,na,i("p",{onClick:e[2]||(e[2]=u=>bt())},[O(" \u4E0B\u8F7D \xA0 "),ia])]),i("div",{ref_key:"areaDiv",ref:pe,class:"areaDiv"},null,512)],512),[[$,g(G)]]),X(i("div",sa,[i("div",da,[ua,ca,i("p",{onClick:e[3]||(e[3]=u=>_t())},[O(" \u4E0B\u8F7D \xA0 "),ga])]),i("div",{ref_key:"typesofDivs",ref:me,class:"typesofDiv"},null,512),i("div",ha,[(y(),M(r,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:g(De),style:{width:"100%"},key:g(xe)},{default:m(()=>[v(n,{prop:"type",label:"\u7C7B\u578B"}),v(n,{prop:"yesFlooding",label:"\u9762\u79EF"}),v(n,{prop:"zb",label:"\u5360\u6BD4"})]),_:1},8,["data"]))])],512),[[$,g(G)]]),X(i("div",pa,[i("div",ma,[fa,va,g(U)?(y(),N("p",{key:0,onClick:e[4]||(e[4]=u=>St())},[O(" \u4E0B\u8F7D \xA0 "),ya])):q("",!0)]),X(i("div",{class:"farmlandDiv",ref_key:"farmlandDiv",ref:fe},null,512),[[$,g(U)]]),g(U)?q("",!0):(y(),N("div",ba,Sa))],512),[[$,!g(G)]]),X(i("div",wa,[i("div",xa,[Aa,ka,i("p",{onClick:e[5]||(e[5]=u=>wt())},[O(" \u4E0B\u8F7D \xA0 "),Da])]),i("div",{class:"ASdivision",ref_key:"ASdivision",ref:ve},null,512)],512),[[$,!g(G)]]),i("div",{class:"rightFoldDiv",onClick:e[6]||(e[6]=u=>ut())},[v(a,{disabled:!g(V),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[g(V)?(y(),M(l,{key:0},{default:m(()=>[za]),_:1})):q("",!0)]),_:1},8,["disabled"]),v(a,{disabled:g(V),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[g(V)?q("",!0):(y(),M(l,{key:0},{default:m(()=>[Ca]),_:1}))]),_:1},8,["disabled"])])]),i("div",Ea,[g(re).length>0?(y(),M(Jt,{key:0,dataSource:g(re),onDataHandle:Dt,allCount:g(Oe),onGetcurrentPage:ht},null,8,["dataSource","allCount"])):q("",!0)]),La,v(x,{class:"legend",accordion:""},{default:m(()=>[v(S,{name:"1"},{title:m(()=>[O("\u56FE\u4F8B")]),default:m(()=>[i("div",Fa,[v(c,{modelValue:Q.value,"onUpdate:modelValue":e[7]||(e[7]=u=>Q.value=u),onChange:dt},{default:m(()=>[(y(!0),N(H,null,Z(g(R),(u,z,je)=>(y(),M(d,{key:je,"v-model":u.disabled,disabled:u.disabled,label:z},{default:m(()=>[i("span",{style:It({background:u.color,border:`1px solid ${u.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),O(" "+K(z),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),i("div",Ia,[Na,i("div",Oa,[(y(!0),N(H,null,Z(g(we),(u,z)=>(y(),N("div",{class:"perform",key:z},[i("div",Ma,[qa,i("span",null,K(u.yesFloodingPercentage)+"(\u4EA9)",1)])]))),128))]),Ba]),i("div",Va,[(y(!0),N(H,null,Z(g(ze).label,(u,z)=>(y(),N("div",{key:z},[i("div",null,K(u.crop)+"\uFF1A",1),i("div",null,K(u.Shape_Area)+" \u4EA9",1)]))),128)),g(ze).XZQMC?(y(),N("div",Ga,[Wa,i("div",null,K(g(ze).XZQMC),1)])):q("",!0),i("div",{class:"cancel",onClick:e[8]||(e[8]=(...u)=>t.hiddenOverlayChart&&t.hiddenOverlayChart(...u))},"X")]),et.value?(y(),M(o,{key:0,class:"back_button",onClick:e[9]||(e[9]=u=>t.back())},{default:m(()=>[O("\u8FD4\u56DE")]),_:1})):q("",!0)]),i("div",Qa,[i("div",Ya,[v(I,{inline:!0,model:g(p),class:"demo-form-inline"},{default:m(()=>[v(A,{label:"\u65F6\u95F4:"},{default:m(()=>[v(L,{"popper-class":"selectCity",modelValue:g(p).time,"onUpdate:modelValue":e[10]||(e[10]=u=>g(p).time=u),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(y(!0),N(H,null,Z(g(oe),(u,z)=>(y(),M(w,{key:z,label:t.Zitem,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),v(A,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:m(()=>[v(L,{"popper-class":"selectCity",modelValue:g(p).statistical,"onUpdate:modelValue":e[11]||(e[11]=u=>g(p).statistical=u),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[v(w,{label:"\u4F5C\u7269\u7C7B\u578B",value:"\u4F5C\u7269\u7C7B\u578B"}),v(w,{label:"\u884C\u653F\u533A\u5212",value:"\u884C\u653F\u533A\u5212"}),g(U)?(y(),M(w,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):q("",!0)]),_:1},8,["modelValue"])]),_:1}),v(A,{label:"\u9547"},{default:m(()=>[v(L,{modelValue:g(p).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=u=>g(p).droughtRating=u),"popper-class":"selectCity",disabled:g(p).statistical!=="\u884C\u653F\u533A\u5212",placeholder:g(p).statistical==="\u884C\u653F\u533A\u5212"?"\u5168\u90E8":"\u8BF7\u9009\u62E9"},{default:m(()=>[(y(!0),N(H,null,Z(g(_e),(u,z)=>(y(),M(w,{key:z,label:u.name,value:u.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),v(A,{label:"\u9762\u79EF(\u4EA9)>"},{default:m(()=>[v(D,{modelValue:ae.value,"onUpdate:modelValue":e[13]||(e[13]=u=>ae.value=u),min:0,onChange:ct},null,8,["modelValue"])]),_:1}),v(A,null,{default:m(()=>[v(o,{type:"primary",onClick:Ce},{default:m(()=>[O("\u67E5\u8BE2")]),_:1}),v(o,{plain:"",onClick:gt},{default:m(()=>[O("\u91CD\u7F6E")]),_:1}),g(J)?q("",!0):(y(),M(o,{key:0,type:"primary",text:"",onClick:xt},{default:m(()=>[Pa,O(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"])]),i("div",Ta,[i("div",{ref_key:"chartModeDiv",ref:Se,class:"chartModeDiv"},null,512)])])])}}},uo=Ct(ja,[["__scopeId","data-v-04e5bdb5"]]);export{uo as default};