import re from"./downloads.4cdbbcc5.js";import{_ as ne}from"./linesGL.99030c5a.js";import{_ as xt,a as kt,b as Lt,c as Dt}from"./position.a021215f.js";import{_ as Et,a as Nt}from"./face.2eec3bdc.js";import{_ as Ct}from"./icon.d0cb5387.js";import{_ as Ft}from"./dow.b3cd2c30.js";import"./index.e2d056fa.js";import{T as qt}from"./TimeLine.5d80dd5c.js";import{u as Ae}from"./useEcharts.7cdde45a.js";import{K as A,_ as zt,u as Wt,r as i,D as xe,t as Tt,X as Pe,v as jt,x as Qe,M as Je,d as q,o as _,c as D,k as n,m as z,e as m,w as v,f,l as T,j,P as Y,Q as X,I as It,y as Z,B as Ot,p as Mt,q as Vt}from"./index.db81687b.js";import{d as H}from"./download.67ee05d3.js";import{u as ke,w as At}from"./xlsx.86b9426e.js";import{e as $e}from"./element-resize-detector.d8720798.js";import{i as le}from"./install.49294472.js";/* empty css */function Ge(w){return A({url:"equipment/damageArea",method:"get",params:w})}function Re(w){return A({url:"equipment/proportion",method:"get",params:w})}function Be(w){return A({url:"equipment/highStandard",method:"get",params:w})}function Le(w){return A({url:"equipment/townInformation",method:"get",params:w})}function Ye(w){return A({url:"equipment/village",method:"get",params:w})}function Pt(w){return A({url:"equipment/listDroughtsDamageYear",method:"get",params:w})}function Qt(w){return A({url:"equipment/listDroughtsDamage",method:"get",params:w})}const L=w=>(Mt("data-v-745a8d5d"),w=w(),Vt(),w),Jt={class:"fatherDiv"},$t={class:"centerBox"},Gt=L(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Rt={class:"leftWra"},Bt={class:"leftTop"},Yt={class:"title"},Xt=L(()=>n("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u7EDF\u8BA1",-1)),Zt=L(()=>n("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ht={class:"leftbottom"},Ut={class:"title"},Kt=L(()=>n("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u5360\u6BD4",-1)),ea=L(()=>n("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ta={class:"tableDiv"},aa={key:0,src:ne,alt:""},oa={key:0,class:"imgrotate",src:ne,alt:""},la={class:"rightWra"},ra={class:"rightTop"},na={class:"title"},sa=L(()=>n("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),ia=L(()=>n("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),da={class:"farmlandDiv"},ua={class:"rightbottom"},ca={class:"title"},pa=L(()=>n("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),fa=L(()=>n("img",{src:re,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ma={class:"ASdivision"},ha={key:0,src:ne,alt:""},ga={key:0,class:"imgrotate",src:ne,alt:""},va={class:"bottom_center"},ya=Ot('
',1),_a={class:"mt-4"},ba={id:"popup",class:"ol-popup"},wa=L(()=>n("div",{class:"pophead",style:{width:"100%"}},[n("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px",color:"rgba(246, 255, 255, 1)","line-height":"42px","padding-left":"45px"}}),n("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),Sa={id:"popup-content",style:{padding:"10px"}},xa={class:"perform_children"},ka=L(()=>n("img",{src:Ct},null,-1)),La=L(()=>n("span",null,"\u6D2A\u6D9D\u533A",-1)),Da=L(()=>n("div",{id:"popup-pagination"},null,-1)),Ea={id:"pop"},Na={key:0},Ca=L(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),Fa={class:"tabulation"},qa={class:"searchDiv"},za=L(()=>n("img",{src:Ft,alt:""},null,-1)),Wa={class:"chartMode"},Ta={__name:"FloodExtraction",setup(w){const Xe=Wt();let se=i(null);const ie=i(null),de=i(null);i(null);const S=i("370211");S.value=window.localStorage.getItem("divisions"),i(null);let I=xe({arr:[],brr:[],crr:[]});const U=i({name:"",value:""});i([]);const ue=i(!1);let O=i(!1),M=i(!1);const V=i([]);let Q=i([]),J=xe({lable:[],value:[]}),K=i([]),ce=i(0),$=i([]);const P=i([]);let pe=i([]);const fe=i(0);let G=i(!0);i(1),i(12);let me=i([]);const he=i(null);let ge=i([]),k=i(""),ee=i(null);i("");let Ze=i([]),De=i([]),ve=!(window.localStorage.getItem("divisions").length>6),ye=i([]),Ee=window.localStorage.getItem("deptName")=="\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"?"\u9EC4\u5C9B\u533A":window.localStorage.getItem("deptName"),y=i([{\u6D2A\u6D9D:0}]),h=i({time:"",statistical:"\u884C\u653F\u533A\u5212",droughtRating:"",area:fe.value}),R={\u6D2A\u6D9D\u533A:{color:"rgba(9, 187, 222, 1)",disabled:!1}},Ne=i([]);var Ce={title:[]};let _e={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},W={\u6D2A\u6D9D\u533A:{setOf:"2020-05-26-honglao",name:"T2020_05_26_honglao"}},be=i([]);Tt(()=>{He()});function He(){it(),Ue(),et(),Ke(),Oe(),Me();for(const o in R)R[o].disabled!==!0&&Q.value.push(o);V.value=Q.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}Pe(()=>{localStorage.getItem(Xe.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")}),i(null),i(null);let Fe=i(null),te=i(null),p=i(null);function Ue(){p=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),p.on("moveend",function(t){var e=p.getView().getZoom();e>=13?ee.setVisible(!0):ee.setVisible(!1)}),p.on("singleclick",function(t){var e=t.coordinate;if(ve){var o=e[0],l=e[1],r=p.getView(),a=p.getView().getZoom();r.animate({center:[o,l],duration:1e3}),a>=13?ae(t,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):ae(t,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")}else{let d="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",u=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:"XJQY3702112019WGS84@huangdaoqu_bianjie",attributeFilter:`XJQYMC = '${Ee}'`},datasetNames:["huangdaoqu_bianjie:XJQY3702112019WGS84"]});new ol.supermap.FeatureService(d).getFeaturesBySQL(u,function(g){let b=new ol.format.GeoJSON().readFeatures(g.result.features),s=new ol.source.Vector;s.addFeatures(b);let N=new ol.layer.Vector({source:s}).getSource().getFeatures();for(var C=0;C=13?ae(t,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):ae(t,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")}})}}),tt(Ee)}Pe(()=>{var t=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),o=new ResizeObserver(function(l){l.forEach(function(r){var a=r.contentRect.width,d=r.contentRect.height;e.style.width=a+"px",e.style.height=d+"px",p.updateSize()})});o.observe(t)});function ae(t,e,o,l){var r=new ol.geom.Point(t.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:r});let d=[],u=document.querySelector("#popup-title"),g=i(null),b=i(null);new ol.supermap.QueryService(o).queryByGeometry(a,function(s){let E="";if(b=p.getLayers().getArray().find(C=>C.get("id")==="zhezhao"),p.removeLayer(b),l=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let C=s.result.recordsets[0].features.features[0].properties.XJQYDM,F=[];Le({divisions:"370211",yearMonth:k.value.name}).then(c=>{c.data.forEach(x=>{x.subregion==C&&(E=x.name,F.push(x)),De.value=F}),N()})}function N(){if(s.result.currentCount>0){s.result.recordsets[0].features&&(te.setPosition(r.flatCoordinates),u.innerHTML=E),g=p.getLayers().getArray().find(B=>B.get("id")==="dianjigaoliang"),p.removeLayer(g);var C=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);d=s.result.recordsets[0].features.features[0].geometry.coordinates,we(s.result.recordsets[0].features.features[0].geometry.coordinates);var F=new ol.source.Vector;F.addFeatures(C);const x=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var c=new ol.layer.Vector({id:"dianjigaoliang",source:F,zIndex:9999});c.setStyle(x),p.addLayer(c)}}}),Fe.addEventListener("click",function(){b=p.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),p.removeLayer(b),qe(d),S.value=window.localStorage.getItem("divisions"),g=p.getLayers().getArray().find(s=>s.get("id")==="dianjigaoliang"),p.removeLayer(g),te.setPosition(void 0)})}const Ke=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Fe=document.getElementById("popup-closer"),te=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),p.addOverlay(te)};function et(){jt.get("/json/huangdao.json").then(({data:t})=>{const o=new ol.format.GeoJSON().readFeatures(t)[0];we(o.getGeometry().getCoordinates(),"huandao")})}function we(t,e,o,l){let r=new ol.source.Vector;var a=new ol.layer.Vector({id:e||"zhezhao",source:r,zIndex:l||50,style:new ol.style.Style({fill:new ol.style.Fill({color:o||"rgba( 105, 105, 105, 0.9)"})})});const d=qe(t),u=new ol.Feature({geometry:d});a.getSource().addFeature(u),p.addLayer(a)}function qe(t){const e=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(e);return t.forEach(r=>{const a=new ol.geom.LinearRing(r[0]);o.appendLinearRing(a)}),o}function tt(t){let e="",o="",l="",r="",a="";o="http://36.134.44.75:8090/iserver/services/data-huangdaoqu_bianjie/rest/data",e=t,l="XJQY3702112019WGS84",r="huangdaoqu_bianjie",a="XJQYMC";var d=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${l}@${r}`,attributeFilter:`${a} like '%${e}%'`},datasetNames:[`${r}:${l}`]});new ol.supermap.FeatureService(o).getFeaturesBySQL(d,function(u){if(u.result.featureCount!=0){var g=p.getLayers().getArray().find(F=>F.get("id")==="zhezhao");p.removeLayer(g);var b=p.getLayers().getArray().find(F=>F.get("id")==="dianjigaoliang");p.removeLayer(b);var s=new ol.format.GeoJSON().readFeatures(u.result.features);we(u.result.features.features[0].geometry.coordinates,"qu","rgba( 105, 105, 105, 1)",9999);var E=new ol.source.Vector;E.addFeatures(s);const C=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var N=new ol.layer.Vector({id:"dianjigaoliang",source:E});N.setStyle(C),p.addLayer(N),p.getView().fit(E.getExtent())}})}const at=()=>{ee=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),p.addLayer(ee)},ot=()=>{var t=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});p.addLayer(t)},ze=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"});p.addLayer(e)};let We=0;Qe(()=>V.value,(t,e)=>{t.length>e.length?t.filter(l=>{if(e.findIndex(a=>a===l)<0)return l}).forEach(l=>{W[l]&&ze(W[l])}):t.length{if(t.findIndex(a=>a===l)<0)return l}).forEach(l=>{W[l]&&(p.getLayers().getArray().indexOf(W[l].name),p.getLayers().getArray().forEach((r,a)=>{r.A.name&&r.A.name==W[l].name&&p.getLayers().removeAt(a)}))}),We++,We==1&&(at(),ot())}),Qe(()=>k.value,(t,e)=>{S.value=window.localStorage.getItem("divisions"),Te(S.value,k.value.name),je(S.value,k.value.name),dt(k.value.name),Ie(S.value,k.value.name);let l=k.value.name.replace(/-/g,"_");W={\u6D2A\u6D9D\u533A:{setOf:`${k.value.name}-honglao`,name:`T${l}_honglao`}};for(const r in V.value)ze(W[V.value[r]])});let oe=i({label:[]});function lt(){if(O.value=!O.value,O.value){let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(0,0)")}else{let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)")}}function rt(){if(M.value=!M.value,M.value){let t=document.querySelector(".rightWra");t.style.transform="translate(0,0)"}else{let t=document.querySelector(".rightWra");t.style.transform="translate(107%,0)"}}const nt=t=>{h.value.area=t},Se=()=>{h.value.statistical=="\u884C\u653F\u533A\u5212"&&(h.value.droughtRating=null);let t=[],e=[];Qt({yearMonth:h.value.time,statistical:h.value.statistical,droughtRating:h.value.droughtRating==null?"1":h.value.droughtRating,area:h.value.area}).then(o=>{if(h.value.statistical=="\u884C\u653F\u533A\u5212"){o.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=>{o.data.map(d=>{a.regio===d.typeName&&(a.region=d.typeName,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),G.value=!1,P.value=e,y.value[0].\u6D2A\u6D9D=0,y.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(y.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in y.value[0])y.value[0][a]!=="\u5408\u8BA1"&&(y.value[0][a]=y.value[0][a].toFixed(2))}else if(h.value.statistical=="\u4F5C\u7269\u7C7B\u578B"){o.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=>{o.data.map(d=>{a.regio===d.type&&(a.region=d.type,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),G.value=!1,P.value=e,y.value[0].\u6D2A\u6D9D=0,y.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(y.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in y.value[0])y.value[0][a]!=="\u5408\u8BA1"&&(y.value[0][a]=y.value[0][a].toFixed(2))}else if(h.value.statistical=="\u9AD8\u6807\u51C6\u519C\u7530"){o.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=>{o.data.map(d=>{a.regio===d.region&&(a.region=d.region,a.\u6D2A\u6D9D=Number(d.yesFlooding).toFixed(2))})}),G.value=!1,P.value=e,y.value[0].\u6D2A\u6D9D=0,y.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(y.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in y.value[0])y.value[0][a]!=="\u5408\u8BA1"&&(y.value[0][a]=y.value[0][a].toFixed(2))}const l=he.value;l.style.width=window.innerWidth-100+"px",l.style.height=window.innerHeight-100+"px";const r=le(l);window.addEventListener("resize",()=>{l.style.width=window.innerWidth-200+"px",l.style.height=window.innerHeight-200+"px",r.resize()}),bt()})},st=()=>{h.value.time=me.value[0],h.value.statistical="\u884C\u653F\u533A\u5212",h.value.droughtRating="",h.value.area=0,G.value=!0,Se()},it=()=>{Pt().then(t=>{k.value={name:t.data[0]},t.data.forEach(l=>{ge.value.push({name:l})}),me.value=t.data,h.value.time=t.data[0],Se();let o=k.value.name.replace(/-/g,"_");W={\u6D2A\u6D9D\u533A:{setOf:`${k.value.name}-honglao`,name:`T${o}_honglao`}}})},Te=(t,e)=>{J=xe({lable:[],value:[]}),Ge({divisions:t,yearMonth:e}).then(o=>{o.data.forEach(l=>{J.lable.push(l.type),J.value.push(l.yesFlooding)}),Oe()})},je=(t,e)=>{K=i([]),be=i([]),ce=i(0),Re({divisions:t,yearMonth:e}).then(o=>{o.data.forEach(l=>{ce.value+=Number(l.yesFlooding),K.value.push({name:l.type,value:l.yesFlooding}),be.value.push({type:l.type,yesFlooding:`${l.yesFlooding}\u4EA9`,zb:`${(l.zb*100).toFixed(2)}%`})}),Me()})},dt=t=>{Be({yearMonth:t}).then(e=>{Ne.value=JSON.parse(JSON.stringify(e.data))})},Ie=(t,e)=>{Le({divisions:t,yearMonth:e}).then(o=>{$=i([]);let l=[];Ze.value=JSON.parse(JSON.stringify(o.data)),I.arr=o.data.sort((d,u)=>d.name.length-u.name.length),I.arr.forEach(d=>{l.push({name:d.name,subregion:d.subregion,yesFloodingPercentage:d.yesFloodingPercentage,createdTime:d.createdTime})}),$.value=l,ye.value=Math.random(),I.arr.unshift({subregion:"370211",name:"\u5168\u90E8"});let r=[],a=[];I.arr.forEach(d=>{r.indexOf(d.name)==-1&&(r.push(d.name),a.push({name:d.name,subregion:d.subregion,area:d.area,type:d.type}))}),I.arr=a,pe.value=JSON.parse(JSON.stringify(I.arr)),pe.value[0].subregion=null})},ut=(t,e)=>{$=i([]),Ye({divisions:t,yearMonth:e}).then(o=>{I.brr=o.data;let l=[...o.data],r=[];l.splice(0,1),l.forEach(a=>{r.indexOf(a.name)==-1&&r.push(a.name),$.value.push({name:a.name,subregion:a.subregion,yesFloodingPercentage:a.yesFloodingPercentage,createdTime:a.createdTime})}),ye.value=Math.random(),Ce.title=[...Object.values(r)],Ce.title.forEach((a,d)=>{let u=o.data.map(g=>{if(a===g.name)return g});Object.keys(_e).forEach(g=>{u.findIndex(s=>s&&s.type===g)>-1?_e[g].push(1):_e[g].push(null)})})})},ct=()=>{if(ut(S.value),je(S.value),Te(S.value),S.value=="370211"){Ie(S.value);return}},pt=t=>{Ge({divisions:S.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{H(e.data[e.data.length-1].downloadPath)})},ft=t=>{Re({divisions:S.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{H(e.data[e.data.length-1].downloadPath)})},mt=t=>{Be({divisions:S.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{H(e.data[e.data.length-1].downloadPath)})},ht=t=>{S.value=="370211"?Le({divisions:S.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{H(e.data[e.data.length-1].downloadPath)}):Ye({divisions:S.value,whetherToDownload:!0,yearMonth:k.value.name}).then(e=>{H(e.data[e.data.length-1].downloadPath)})},gt=()=>{let t=JSON.parse(JSON.stringify(y.value[0]));t.region="\u5408\u8BA1",P.value.push(t),yt(P.value,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},vt=(t,e)=>t.map(l=>{const r={};for(const a in l)e[a]&&(r[e[a]]=l[a]);return r}),yt=(t,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const r=vt(t,{region:"\u533A\u57DF\u540D\u79F0",\u6D2A\u6D9D:"\u6D2A\u6D9D (\u4EA9)"}),a=ke.json_to_sheet(r),d=ke.book_new();ke.book_append_sheet(d,a,o),At(d,`${e}.xlsx`)},_t=t=>{Q.value=[];for(const e in R)R[e].disabled!==!0&&Q.value.push(e);V.value=Q.value;for(const e in W)p.getLayers().getArray().forEach((o,l)=>{o.A.name==W[e].name&&p.getLayers().removeAt(l)});k.value=t};function Oe(){const t=le(ie.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:"#fff"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"#fff",fontWeight:400,fontFamily:"SourceHanSansCN-Regular, SourceHanSansCN",fontSize:14},axisTick:{lineStyle:{color:"#0B1535",width:1},show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#384267",width:1,type:"dashed"},show:!0},data:J.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"#fff",fontSize:14},type:"value",axisLabel:{color:"#fff"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data: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),$e().listenTo(ie.value,()=>{Je(()=>{t.resize()})})}function Me(){const t=le(de.value);K.value.forEach(r=>{switch(r.itemStyle={},r.name){case"\u8336\u53F6":r.itemStyle.color="rgba(0, 209, 195, 1)";break;case"\u5927\u8C46":r.itemStyle.color="rgba(255, 184, 148, 1)";break;case"\u82B1\u751F":r.itemStyle.color="rgba(255, 140, 255, 1)";break;case"\u84DD\u8393":r.itemStyle.color="rgba(0, 153, 255, 1)";break;case"\u5730\u74DC":r.itemStyle.color="rgba(255, 18, 18, 1)";break;case"\u5C0F\u9EA6":r.itemStyle.color="rgba(25, 196, 22, 1)";break;case"\u7389\u7C73":r.itemStyle.color="rgba(255, 240, 26, 1)";break;case"\u9A6C\u94C3\u85AF":r.itemStyle.color="rgba(253, 127, 1, 1)";break;case"\u767D\u83DC\u548C\u841D\u535C":r.itemStyle.color="rgba(201, 255, 148, 1)";break;case"\u5176\u4ED6":r.itemStyle.color="rgba(166, 224, 255, 1)";break}});var e=K.value;let o={title:{text:"\u603B\u9762\u79EF",subtext:`${ce.value}\u4EA9`,textStyle:{color:"#f2f2f2",fontSize:14},subtextStyle:{fontSize:14,color:["#ff9d19"]},x:"center",y:"center"},grid:{top:0},legend:{orient:"vertical",top:"middle",right:"2%",textStyle:{color:"#fff",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a}
{b} : {c}
\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};Ae(t,o),$e().listenTo(de.value,()=>{Je(()=>{t.resize()})})}function bt(){const t=le(he.value);let e=[],o=[];P.value.forEach(u=>{e.push(u.region),u.\u6D2A\u6D9D!==void 0?o.push(u.\u6D2A\u6D9D):o.push(0)});let l=10/e.length*100,r={tooltip:{trigger:"axis",formatter:function(u){let g=u[0].axisValueLabel+"
",b=0;for(let s=0;s");for(let s=0;s",b=0;for(let s=0;s`;b+=u[s].value,g+=E+u[s].seriesName+"\uFF1A"+u[s].value+"
"}for(let s=0;s{const o=q("el-table-column"),l=q("el-table"),r=q("el-tooltip"),a=q("el-checkbox"),d=q("el-checkbox-group"),u=q("el-collapse-item"),g=q("el-collapse"),b=q("el-button"),s=q("el-option"),E=q("el-select"),N=q("el-form-item"),C=q("el-input-number"),F=q("el-form");return _(),D("div",Jt,[n("div",$t,[Gt,n("div",Rt,[n("div",Bt,[n("div",Yt,[Xt,n("p",{onClick:e[0]||(e[0]=c=>pt())},[z(" \u4E0B\u8F7D \xA0 "),Zt])]),n("div",{ref_key:"areaDiv",ref:ie,class:"areaDiv"},null,512)]),n("div",Ht,[n("div",Ut,[Kt,n("p",{onClick:e[1]||(e[1]=c=>ft())},[z(" \u4E0B\u8F7D \xA0 "),ea])]),n("div",{ref_key:"typesofDiv",ref:de,class:"typesofDiv"},null,512),n("div",ta,[m(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:f(be),style:{width:"100%"}},{default:v(()=>[m(o,{prop:"type",label:"\u7C7B\u578B"}),m(o,{prop:"yesFlooding",label:"\u9762\u79EF"}),m(o,{prop:"zb",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),n("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=c=>lt())},[m(r,{class:"box-item","show-arrow":!1,disabled:f(O),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:v(()=>[f(O)?T("",!0):(_(),D("img",aa))]),_:1},8,["disabled"]),m(r,{disabled:!f(O),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:v(()=>[f(O)?(_(),D("img",oa)):T("",!0)]),_:1},8,["disabled"])])]),n("div",la,[n("div",ra,[n("div",na,[sa,f(ve)?(_(),D("p",{key:0,onClick:e[3]||(e[3]=c=>mt())},[z(" \u4E0B\u8F7D \xA0 "),ia])):T("",!0)]),n("div",da,[m(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:f(Ne),style:{width:"100%","font-size":"12px"},"empty-text":"\u6682\u65F6\u65E0\u6743\u9650"},{default:v(()=>[m(o,{prop:"region",label:"\u533A\u57DF\u540D\u79F0"}),m(o,{prop:"yesFlooding",width:"120",label:"\u6D2A\u6D9D\u9762\u79EF\uFF08\u4EA9\uFF09"}),m(o,{prop:"createdTime",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"])])]),n("div",ua,[n("div",ca,[pa,n("p",{onClick:e[4]||(e[4]=c=>ht())},[z(" \u4E0B\u8F7D \xA0 "),fa])]),n("div",ma,[(_(),j(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:f($),key:f(ye),style:{width:"100%","font-size":"12px"}},{default:v(()=>[m(o,{prop:"name",label:"\u533A\u57DF\u540D\u79F0"}),m(o,{prop:"yesFloodingPercentage",width:"120",label:"\u6D2A\u6D9D\u9762\u79EF(\u4EA9\uFF09"}),m(o,{prop:"createdTime",width:"100",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"]))])]),n("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=c=>rt())},[m(r,{disabled:!f(M),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:v(()=>[f(M)?(_(),D("img",ha)):T("",!0)]),_:1},8,["disabled"]),m(r,{disabled:f(M),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:v(()=>[f(M)?T("",!0):(_(),D("img",ga))]),_:1},8,["disabled"])])]),n("div",va,[f(ge).length>0?(_(),j(qt,{key:0,dataSource:f(ge),onDataHandle:_t},null,8,["dataSource"])):T("",!0)]),ya,m(g,{class:"legend",accordion:""},{default:v(()=>[m(u,{name:"1"},{title:v(()=>[z("\u56FE\u4F8B")]),default:v(()=>[n("div",_a,[m(d,{modelValue:V.value,"onUpdate:modelValue":e[6]||(e[6]=c=>V.value=c),onChange:t.change},{default:v(()=>[(_(!0),D(Y,null,X(f(R),(c,x,B)=>(_(),j(a,{key:B,"v-model":c.disabled,disabled:c.disabled,label:x},{default:v(()=>[n("span",{style:It({background:c.color,border:`1px solid ${c.color}`,width:"10px",height:"10px",display:"flex","margin-right":"5px"})},null,4),z(" "+Z(x),1)]),_:2},1032,["v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",ba,[wa,n("div",Sa,[(_(!0),D(Y,null,X(f(De),(c,x)=>(_(),D("div",{class:"perform",key:x},[n("div",xa,[ka,La,z(" : "),n("span",null,Z(c.yesFloodingPercentage)+"(\u4EA9)",1)])]))),128))]),Da]),n("div",Ea,[(_(!0),D(Y,null,X(f(oe).label,(c,x)=>(_(),D("div",{key:x},[n("div",null,Z(c.crop)+"\uFF1A",1),n("div",null,Z(c.Shape_Area)+" \u4EA9",1)]))),128)),f(oe).XZQMC?(_(),D("div",Na,[Ca,n("div",null,Z(f(oe).XZQMC),1)])):T("",!0),n("div",{class:"cancel",onClick:Ve},"X")]),ue.value?(_(),j(b,{key:0,class:"back_button",onClick:e[7]||(e[7]=c=>wt())},{default:v(()=>[z("\u8FD4\u56DE")]),_:1})):T("",!0)]),n("div",Fa,[n("div",qa,[m(F,{inline:!0,model:f(h),class:"demo-form-inline"},{default:v(()=>[m(N,{label:"\u65F6\u95F4:"},{default:v(()=>[m(E,{"popper-class":"selectCity",modelValue:f(h).time,"onUpdate:modelValue":e[8]||(e[8]=c=>f(h).time=c),placeholder:"\u8BF7\u9009\u62E9"},{default:v(()=>[(_(!0),D(Y,null,X(f(me),(c,x)=>(_(),j(s,{key:x,label:t.Zitem,value:c},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),m(N,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:v(()=>[m(E,{"popper-class":"selectCity",modelValue:f(h).statistical,"onUpdate:modelValue":e[9]||(e[9]=c=>f(h).statistical=c),placeholder:"\u8BF7\u9009\u62E9"},{default:v(()=>[m(s,{label:"\u4F5C\u7269\u7C7B\u578B",value:"\u4F5C\u7269\u7C7B\u578B"}),m(s,{label:"\u884C\u653F\u533A\u5212",value:"\u884C\u653F\u533A\u5212"}),f(ve)?(_(),j(s,{key:0,label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})):T("",!0)]),_:1},8,["modelValue"])]),_:1}),m(N,{label:"\u9547"},{default:v(()=>[m(E,{modelValue:f(h).droughtRating,"onUpdate:modelValue":e[10]||(e[10]=c=>f(h).droughtRating=c),"popper-class":"selectCity",disabled:f(h).statistical!=="\u884C\u653F\u533A\u5212",placeholder:f(h).statistical==="\u884C\u653F\u533A\u5212"?"\u5168\u90E8":"\u8BF7\u9009\u62E9"},{default:v(()=>[(_(!0),D(Y,null,X(f(pe),(c,x)=>(_(),j(s,{key:x,label:c.name,value:c.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),m(N,{label:"\u9762\u79EF(\u4EA9)>"},{default:v(()=>[m(C,{modelValue:fe.value,"onUpdate:modelValue":e[11]||(e[11]=c=>fe.value=c),min:0,onChange:nt},null,8,["modelValue"])]),_:1}),m(N,null,{default:v(()=>[m(b,{type:"primary",onClick:Se},{default:v(()=>[z("\u67E5\u8BE2")]),_:1}),m(b,{plain:"",onClick:st},{default:v(()=>[z("\u91CD\u7F6E")]),_:1}),f(G)?T("",!0):(_(),j(b,{key:0,type:"primary",text:"",onClick:gt},{default:v(()=>[za,z(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"])]),n("div",Wa,[n("div",{ref_key:"chartModeDiv",ref:he,class:"chartModeDiv"},null,512)])])])}}},Ha=zt(Ta,[["__scopeId","data-v-745a8d5d"]]);export{Ha as default};