Agriculture-front-end/dist/assets/FloodExtraction.4a84d7df.js
2023-07-04 10:08:33 +08:00

2 lines
27 KiB
JavaScript

import{H as T,_ as ct,a as pt,r,A as he,V as ft,W as gt,U as ht,d as E,o as y,c as k,l,m as F,e as u,w as g,f as p,g as z,L as I,N as j,k as P,F as mt,x as K,y as vt,p as yt,q as bt}from"./index.ae0c781d.js";import te from"./downloads.4cdbbcc5.js";import{_ as ae}from"./close1.45635d81.js";import{_ as _t,a as wt,b as xt,c as St,d as kt,e as Dt}from"./linesGL.97ae14ae.js";import{_ as Et}from"./dow.f37c8d82.js";import{i as ee}from"./index.c9f5bd8b.js";import{T as Lt}from"./TimeLine.64a8bde3.js";import{u as Ae}from"./useEcharts.dbdb546a.js";import{d as Z}from"./download.8084913c.js";import{u as me,w as Ft}from"./xlsx.86b9426e.js";function We(b){return T({url:"equipment/damageArea",method:"get",params:b})}function Ve(b){return T({url:"equipment/proportion",method:"get",params:b})}function Oe(b){return T({url:"equipment/highStandard",method:"get",params:b})}function ve(b){return T({url:"equipment/townInformation",method:"get",params:b})}function Ie(b){return T({url:"equipment/village",method:"get",params:b})}function Nt(){return T({url:"http://36.134.44.75:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson",method:"get"})}function Ct(b){return T({url:"equipment/listDroughtsDamageYear",method:"get",params:b})}function zt(b){return T({url:"equipment/listDroughtsDamage",method:"get",params:b})}const D=b=>(yt("data-v-a89f9b9b"),b=b(),bt(),b),Tt={class:"fatherDiv"},qt={class:"centerBox"},At=D(()=>l("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Wt={class:"leftWra"},Vt={class:"leftTop"},Ot={class:"title"},It=D(()=>l("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u7EDF\u8BA1",-1)),jt=D(()=>l("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Pt={class:"leftbottom"},Mt={class:"title"},Rt=D(()=>l("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u5360\u6BD4",-1)),Bt=D(()=>l("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),$t={class:"tableDiv"},Zt={key:0,src:ae,alt:""},Ht={key:0,class:"imgrotate",src:ae,alt:""},Jt={class:"rightWra"},Ut={class:"rightTop"},Gt={class:"title"},Qt=D(()=>l("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),Xt=D(()=>l("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Yt={class:"farmlandDiv"},Kt={class:"rightbottom"},ea={class:"title"},ta=D(()=>l("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),aa=D(()=>l("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),oa={class:"ASdivision"},la={key:0,src:ae,alt:""},na={key:0,class:"imgrotate",src:ae,alt:""},ra={class:"bottom_center"},sa=vt('<div class="tool" data-v-a89f9b9b><span data-v-a89f9b9b><img src="'+_t+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+wt+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+xt+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+St+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+kt+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Dt+'" alt="" data-v-a89f9b9b></span></div>',1),ia={class:"mt-4"},da={id:"popup",class:"ol-popup"},ua=D(()=>l("div",{class:"pophead",style:{width:"100%",height:"20px"}},[l("div",{id:"popup-title",style:{font:"bold 15px sans-serif",align:"left",position:"absolute",left:"17px",color:"#fff"}}),l("a",{href:"#",id:"popup-closer",class:"ol-popup-closer",style:{color:"#8e908c"}})],-1)),ca={id:"popup-content",style:{padding:"10px"}},pa=D(()=>l("span",null,"\u6D2A\u6D9D\u533A",-1)),fa=D(()=>l("div",{id:"popup-pagination"},null,-1)),ga={id:"pop"},ha={key:0},ma=D(()=>l("div",null,"\u6751\u540D\uFF1A",-1)),va={class:"tabulation"},ya={class:"searchDiv"},ba=D(()=>l("img",{src:Et,alt:""},null,-1)),_a={class:"chartMode"},wa={__name:"FloodExtraction",setup(b){const je=pt();let H=r(null);const ye=r(null),be=r(null);r(null);const _=r("370211");r(null);let N=he({arr:[],brr:[],crr:[]});const J=r({name:"",value:""});r([]);const oe=r(!1);let q=r(!1),A=r(!1);const U=r([]);let _e=r([]),M=he({lable:[],value:[]}),le=r([]),ne=r(0),R=r([]);const O=r([]);let G=r([]);const re=r(0);let B=r(!0);r(1),r(12);let se=r([]);const ie=r(null);r(null),r(null);let Q=r(null);r("");let Pe=r([]),we=r([]),v=r([{\u6D2A\u6D9D:0}]),h=r({time:"",statistical:"\u884C\u653F\u533A\u5212",droughtRating:"",area:re.value}),de={\u6D2A\u6D9D\u533A:{color:"rgba(9, 187, 222, 1)",disabled:!1}},ue=r([]);var xe={title:[]};let ce={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},$={\u6D2A\u6D9D\u533A:{setOf:"2020-05-26-honglao",name:"T2020_05_26_honglao"}},pe=r([]);ft(()=>{Me()});function Me(){Le("370211"),Fe("370211"),Ke(),Ne("370211"),Ye(),Re(),Be(),ze(),Te();for(const o in de)de[o].disabled!==!0&&_e.value.push(o);U.value=_e.value;let t=document.querySelector(".leftWra");t&&(t.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}gt(()=>{localStorage.getItem(je.currentRoute.value.path)=="false"?document.querySelector(".mode").innerText="\u5730\u56FE\u6A21\u5F0F":document.querySelector(".mode").innerText="\u5217\u8868\u6A21\u5F0F"}),r(null),r(null);let Se=r(null),X=r(null),m=r(null);function Re(){m=new ol.Map({target:"cesiumContainer",controls:ol.control.defaults({attributionOptions:{collapsed:!0}}).extend([new ol.supermap.control.Logo,new ol.control.ScaleLine]),view:new ol.View({center:[119.86763411957472,35.88435182141938],zoom:11,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.Tianditu({layerType:"img",key:"1d109683f4d84198e37a38c442d68311"})})]}),m.on("moveend",function(t){var e=m.getView().getZoom();e>=13?Q.setVisible(!0):Q.setVisible(!1)}),m.on("singleclick",function(t){var e=t.coordinate,o=e[0],s=e[1],n=m.getView(),a=m.getView().getZoom();console.log(o,s),n.animate({center:[o,s],duration:1e3}),a>=13?ke(t,"huangdaoqu_village@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie","\u6751"):ke(t,"huangdaoqu_town@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie","\u9547")})}function ke(t,e,o,s){var n=new ol.geom.Point(t.coordinate),a=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:n});let f=[],c=document.querySelector("#popup-title"),x=r(null),S=r(null);new ol.supermap.QueryService(o).queryByGeometry(a,function(d){let L="";if(S=m.getLayers().getArray().find(C=>C.get("id")==="zhezhao"),s=="\u9547"&&d.result.recordsets[0].features.features[0].properties.XJQYDM){let C=d.result.recordsets[0].features.features[0].properties.XJQYDM,V=[];ve({divisions:"370211",yearMonth:"2023-05"}).then(i=>{i.data.forEach(w=>{w.subregion==C&&(console.log(w,C,"--------"),L=w.name,V.push(w)),we.value=V}),W()})}function W(){if(d.result.currentCount>0){console.log(d.result.recordsets[0].features),d.result.recordsets[0].features&&(X.setPosition(n.flatCoordinates),console.log(L),c.innerHTML=L),x=m.getLayers().getArray().find(ge=>ge.get("id")==="dianjigaoliang"),m.removeLayer(x);var C=new ol.format.GeoJSON().readFeatures(d.result.recordsets[0].features);f=d.result.recordsets[0].features.features[0].geometry.coordinates,$e(d.result.recordsets[0].features.features[0].geometry.coordinates);var V=new ol.source.Vector;V.addFeatures(C);const w=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:V,zIndex:9999});i.setStyle(w),m.addLayer(i)}}}),Se.addEventListener("click",function(){S=m.getLayers().getArray().find(d=>d.get("id")==="zhezhao"),m.removeLayer(S),De(f),_.value="370211",x=m.getLayers().getArray().find(d=>d.get("id")==="dianjigaoliang"),m.removeLayer(x),X.setPosition(void 0)})}const Be=()=>{document.getElementById("popup"),document.getElementById("popup-content"),Se=document.getElementById("popup-closer"),X=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),m.addOverlay(X)};function $e(t){let e=new ol.source.Vector;var o=new ol.layer.Vector({id:"zhezhao",source:e,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const s=De(t),n=new ol.Feature({geometry:s});o.getSource().addFeature(n),m.addLayer(o)}function De(t){console.log(t);const e=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(e),s=t;return console.log(s),s.forEach(n=>{const a=new ol.geom.LinearRing(n[0]);o.appendLinearRing(a)}),o}const Ze=()=>{Q=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:"http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie",cacheEnabled:!1}),name:"huangdaoqu_village",projection:"EPSG:4326",zIndex:9999}),m.addLayer(Q)},He=()=>{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/huangdaoqu_town@huangdaoqu_bianjie",cacheEnabled:!1}),projection:"EPSG:4326",zIndex:9999});m.addLayer(t)},Je=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"});m.addLayer(e)};let Ee=0;ht(()=>U.value,(t,e)=>{t.length>e.length?t.filter(s=>{if(e.findIndex(a=>a===s)<0)return s}).forEach(s=>{$[s]&&Je($[s])}):t.length<e.length&&e.filter(s=>{if(t.findIndex(a=>a===s)<0)return s}).forEach(s=>{$[s]&&(m.getLayers().getArray().indexOf($[s].name),console.log(m.getLayers().getArray()),m.getLayers().getArray().forEach((n,a)=>{n.A.name&&n.A.name==$[s].name&&m.getLayers().removeAt(a)}))}),Ee++,Ee==1&&(Ze(),He())});let Y=r({label:[]});function Ue(){if(q.value=!q.value,q.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 Ge(){if(A.value=!A.value,A.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 Qe=t=>{h.value.area=t},fe=()=>{h.value.statistical!=="\u884C\u653F\u533A\u5212"&&(h.value.droughtRating=null);let t=[],e=[];zt({time:h.value.time,statistical:h.value.statistical,droughtRating: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(f=>{a.regio===f.typeName&&(a.region=f.typeName,a.\u6D2A\u6D9D=Number(f.yesFlooding).toFixed(2))})}),B.value=!1,O.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in v.value[0])v.value[0][a]!=="\u5408\u8BA1"&&(v.value[0][a]=v.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(f=>{a.regio===f.type&&(a.region=f.type,a.\u6D2A\u6D9D=Number(f.yesFlooding).toFixed(2))})}),B.value=!1,O.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in v.value[0])v.value[0][a]!=="\u5408\u8BA1"&&(v.value[0][a]=v.value[0][a].toFixed(2))}else if(h.value.statistical=="\u9AD8\u6807\u51C6\u519C\u7530"){console.log(o.data),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(f=>{a.regio===f.region&&(a.region=f.region,a.\u6D2A\u6D9D=Number(f.yesFlooding).toFixed(2))})}),B.value=!1,O.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(a=>{a.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(a.\u6D2A\u6D9D)!==NaN?Number(a.\u6D2A\u6D9D):0)});for(const a in v.value[0])v.value[0][a]!=="\u5408\u8BA1"&&(v.value[0][a]=v.value[0][a].toFixed(2))}const s=ie.value;s.style.width=window.innerWidth-100+"px",s.style.height=window.innerHeight-100+"px";const n=ee(s);window.addEventListener("resize",()=>{s.style.width=window.innerWidth-200+"px",s.style.height=window.innerHeight-200+"px",n.resize()}),it()})},Xe=()=>{h.value.time=se.value[0],h.value.statistical="\u884C\u653F\u533A\u5212",h.value.droughtRating="",h.value.area=0,B.value=!0,fe()},Ye=()=>{Ct().then(t=>{console.log(t),se.value=t.data,h.value.time=t.data[0],fe()})},Le=t=>{M=he({lable:[],value:[]}),We({divisions:t,yearMonth:"2023-05"}).then(e=>{e.data.forEach(o=>{M.lable.push(o.type),M.value.push(o.yesFlooding)}),ze()})},Fe=t=>{le=r([]),pe=r([]),ne=r(0),Ve({divisions:t,yearMonth:"2023-05"}).then(e=>{e.data.forEach(o=>{ne.value+=Number(o.yesFlooding),le.value.push({name:o.type,value:o.yesFlooding}),pe.value.push({type:o.type,yesFlooding:`${o.yesFlooding}\u4EA9`,zb:`${(o.zb*100).toFixed(2)}%`})}),Te()})},Ke=()=>{Oe({yearMonth:"2023-05"}).then(t=>{console.log(t.data),ue.value=JSON.parse(JSON.stringify(t.data)),console.log(ue.value)})},Ne=t=>{R=r([]),ve({divisions:t,yearMonth:"2023-05"}).then(e=>{Pe.value=JSON.parse(JSON.stringify(e.data)),N.arr=e.data.sort((n,a)=>n.name.length-a.name.length),N.arr.forEach(n=>{R.value.push({name:n.name,subregion:n.subregion,yesFloodingPercentage:n.yesFloodingPercentage,createdTime:n.createdTime})}),N.arr.unshift({subregion:"370211",name:"\u5168\u90E8"});let o=[],s=[];N.arr.forEach(n=>{o.indexOf(n.name)==-1&&(o.push(n.name),s.push({name:n.name,subregion:n.subregion,area:n.area,type:n.type}))}),N.arr=s,G.value=JSON.parse(JSON.stringify(N.arr)),G.value[0].subregion=null,console.log(G.value)})},et=t=>{R=r([]),Ie({divisions:t}).then(e=>{N.brr=e.data;let o=[...e.data],s=[];o.splice(0,1),o.forEach(n=>{s.indexOf(n.name)==-1&&s.push(n.name),R.value.push({name:n.name,subregion:n.subregion,yesFloodingPercentage:n.yesFloodingPercentage,createdTime:n.createdTime})}),xe.title=[...Object.values(s)],xe.title.forEach((n,a)=>{let f=e.data.map(c=>{if(n===c.name)return c});Object.keys(ce).forEach(c=>{f.findIndex(S=>S&&S.type===c)>-1?ce[c].push(1):ce[c].push(null)})})})},Ce=()=>{if(Nt().then(t=>{console.log(t),t.features.forEach(e=>{e.properties.XZDM==_.value})}),H.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),et(_.value),Fe(_.value),Le(_.value),_.value=="370211"){Ne(_.value);return}},tt=t=>{We({divisions:_.value,whetherToDownload:!0}).then(e=>{Z(e.data[e.data.length-1].downloadPath)})},at=t=>{Ve({divisions:_.value,whetherToDownload:!0}).then(e=>{Z(e.data[e.data.length-1].downloadPath)})},ot=t=>{Oe({divisions:_.value,whetherToDownload:!0}).then(e=>{Z(e.data[e.data.length-1].downloadPath)})},lt=t=>{_.value=="370211"?ve({divisions:_.value,whetherToDownload:!0}).then(e=>{Z(e.data[e.data.length-1].downloadPath)}):Ie({divisions:_.value,whetherToDownload:!0}).then(e=>{Z(e.data[e.data.length-1].downloadPath)})},nt=()=>{let t=JSON.parse(JSON.stringify(v.value[0]));t.region="\u5408\u8BA1",O.value.push(t),st(O.value,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},rt=(t,e)=>t.map(s=>{const n={};for(const a in s)e[a]&&(n[e[a]]=s[a]);return n}),st=(t,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const n=rt(t,{region:"\u533A\u57DF\u540D\u79F0",\u6D2A\u6D9D:"\u6D2A\u6D9D (\u4EA9)"}),a=me.json_to_sheet(n),f=me.book_new();me.book_append_sheet(f,a,o),Ft(f,`${e}.xlsx`)};function ze(){const t=ee(ye.value);var e={textStyle:{fontSize:0},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!0,top:"5%",data:["\u9762\u79EF"],right:"5%",bottom:5,icon:"rect",textStyle:{fontSize:14,color:"rgba(255, 255, 255, 0.7)"}},xAxis:{nameTextStyle:{color:"#c0c3cd",padding:[0,0,-10,0],fontSize:14},axisLabel:{color:"rgba(255, 255, 255, 0.7)",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:M.lable,type:"category"},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{data:M.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),window.addEventListener("resize",function(){t.resize()})}function Te(){const t=ee(be.value);var e=le.value;let o={color:["rgba(9, 187, 222, 0.8)","rgba(255, 235, 59, 0.8)","rgba(234, 165, 93, 0.8)","rgba(215, 25, 28, 0.8)","#585247","#7F6AAD","#009D85","rgba(250,250,250,0.3)"],title:{text:"\u603B\u9762\u79EF",subtext:`${ne.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:"#f2f2f2",fontSize:14},icon:"roundRect",data:e},tooltip:{trigger:"item",axisPointer:{type:"shadow"},formatter:"{a} <br/>{b} : {c} <br/>\u767E\u5206\u6BD4 : {d}%"},series:[{radius:["50%","71%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1}},labelLine:{normal:{show:!1}},name:"\u5404\u51B7\u51BB\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",data:e},{radius:["50%","54%"],center:["50%","50%"],type:"pie",label:{normal:{show:!1},emphasis:{show:!1}},labelLine:{normal:{show:!1},emphasis:{show:!1}},animation:!1,tooltip:{show:!1},data:[{value:1,itemStyle:{color:"rgba(250,250,250,0.3)"}}]},{name:"\u5916\u8FB9\u6846",type:"pie",clockWise:!1,hoverAnimation:!1,center:["50%","50%"],radius:["85%","85%"],label:{normal:{show:!1}},data:[{value:9,name:"",itemStyle:{normal:{borderWidth:2,borderColor:"#0b5263"}}}]}]};Ae(t,o)}function it(){const t=ee(ie.value);let e=[],o=[];O.value.forEach(c=>{e.push(c.region),c.\u6D2A\u6D9D!==void 0?o.push(c.\u6D2A\u6D9D):o.push(0)});let s=10/e.length*100,n={tooltip:{trigger:"axis",formatter:function(c){let x=c[0].axisValueLabel+"</br>",S=0;for(let d=0;d<c.length;d++)S+=c[d].value,c[d].seriesName!=="\u5408\u8BA1"&&(x+=c[d].seriesName+"\uFF1A"+c[d].value+"</br>");for(let d=0;d<c.length;d++)S+=Number(c[d].value),c[d].seriesName==="\u5408\u8BA1"&&(x+="\u5408\u8BA1\uFF1A"+S);return x},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:s,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:o}]};n.series;var a=n.tooltip;function f(c){let x=c[0].axisValueLabel+"</br>",S=0;for(let d=0;d<c.length;d++)if(c[d].seriesName!=="\u5408\u8BA1"){const L=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${c[d].color}"></span>`;S+=c[d].value,x+=L+c[d].seriesName+"\uFF1A"+c[d].value+"</br>"}for(let d=0;d<c.length;d++)c[d].seriesName==="\u5408\u8BA1"&&(x+="\u5408\u8BA1\uFF1A"+S);return x}a.formatter=f,Ae(t,n)}function dt(){deleteEntityByName("villageLine"),removeWms(["village_CQL"]),deleteEntityByName("townLine"),delete Y.value.XZQMC,removeWms(["gbznt"],!0),removeWms(["aaa"]),_.value="370211",Ce(),oe.value==="1"&&addWms("shuzisannong:huangdaoqu_town","tl"),H.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),oe.value=!1,qe()}r({});function ut(){if(J.value.lon&&J.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(J.value.lon),Number(J.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(H.scene,e);if(Cesium.defined(t)){const o=document.getElementById("popup");o&&(o.style.top=t.y-10+"px",o.style.left=t.x+10+"px")}}}function qe(){const t=document.getElementById("popup");t&&(t.style.display="none"),H.scene.postRender.removeEventListener(ut),deleteEntityByName("townLine")}return(t,e)=>{const o=E("el-table-column"),s=E("el-table"),n=E("el-tooltip"),a=E("el-option"),f=E("el-select"),c=E("el-checkbox"),x=E("el-checkbox-group"),S=E("el-collapse-item"),d=E("el-collapse"),L=E("el-button"),W=E("el-form-item"),C=E("el-input-number"),V=E("el-form");return y(),k("div",Tt,[l("div",qt,[At,l("div",Wt,[l("div",Vt,[l("div",Ot,[It,l("p",{onClick:e[0]||(e[0]=i=>tt())},[F(" \u4E0B\u8F7D \xA0 "),jt])]),l("div",{ref_key:"areaDiv",ref:ye,class:"areaDiv"},null,512)]),l("div",Pt,[l("div",Mt,[Rt,l("p",{onClick:e[1]||(e[1]=i=>at())},[F(" \u4E0B\u8F7D \xA0 "),Bt])]),l("div",{ref_key:"typesofDiv",ref:be,class:"typesofDiv"},null,512),l("div",$t,[u(s,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:p(pe),style:{width:"100%"}},{default:g(()=>[u(o,{prop:"type",label:"\u7C7B\u578B"}),u(o,{prop:"yesFlooding",label:"\u9762\u79EF"}),u(o,{prop:"zb",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),l("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=i=>Ue())},[u(n,{class:"box-item","show-arrow":!1,disabled:p(q),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[p(q)?z("v-if",!0):(y(),k("img",Zt))]),_:1},8,["disabled"]),u(n,{disabled:!p(q),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[p(q)?(y(),k("img",Ht)):z("v-if",!0)]),_:1},8,["disabled"])])]),l("div",Jt,[l("div",Ut,[l("div",Gt,[Qt,l("p",{onClick:e[3]||(e[3]=i=>ot())},[F(" \u4E0B\u8F7D \xA0 "),Xt])]),l("div",Yt,[u(s,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:p(ue),style:{width:"100%","font-size":"12px"}},{default:g(()=>[u(o,{prop:"region",label:"\u533A\u57DF\u540D\u79F0"}),u(o,{prop:"yesFlooding",width:"120",label:"\u6D2A\u6D9D\u9762\u79EF\uFF08\u4EA9\uFF09"}),u(o,{prop:"createdTime",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"])]),z(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),l("div",Kt,[l("div",ea,[ta,l("p",{onClick:e[4]||(e[4]=i=>lt())},[F(" \u4E0B\u8F7D \xA0 "),aa])]),u(f,{"popper-class":"select_city",onChange:e[5]||(e[5]=i=>Ce(t.item)),modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=i=>_.value=i),placeholder:"\u5168\u90E8"},{default:g(()=>[(y(!0),k(I,null,j(p(N).arr,i=>(y(),P(a,{key:i.subregion,label:i.name,value:i.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",oa,[u(s,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:p(R),style:{width:"100%","font-size":"12px"}},{default:g(()=>[u(o,{prop:"name",label:"\u533A\u57DF\u540D\u79F0"}),u(o,{prop:"yesFloodingPercentage",width:"120",label:"\u6D2A\u6D9D\u9762\u79EF(\u4EA9\uFF09"}),u(o,{prop:"createdTime",width:"100",label:"\u76D1\u6D4B\u65F6\u95F4"})]),_:1},8,["data"])])]),l("div",{class:"rightFoldDiv",onClick:e[7]||(e[7]=i=>Ge())},[u(n,{disabled:!p(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:g(()=>[p(A)?(y(),k("img",la)):z("v-if",!0)]),_:1},8,["disabled"]),u(n,{disabled:p(A),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:g(()=>[p(A)?z("v-if",!0):(y(),k("img",na))]),_:1},8,["disabled"])])]),l("div",ra,[u(Lt)]),sa,u(d,{class:"legend",accordion:""},{default:g(()=>[u(S,{name:"1"},{title:g(()=>[F("\u56FE\u4F8B")]),default:g(()=>[l("div",ia,[u(x,{modelValue:U.value,"onUpdate:modelValue":e[8]||(e[8]=i=>U.value=i),onChange:t.change},{default:g(()=>[(y(!0),k(I,null,j(p(de),(i,w,ge)=>(y(),P(c,{key:ge,style:mt({backgroundColor:i.color,border:"1px solid value.color",width:"100%"}),"v-model":i.disabled,disabled:i.disabled,label:w},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),l("div",da,[ua,l("div",ca,[(y(!0),k(I,null,j(p(we),(i,w)=>(y(),k("div",{key:w},[l("p",null,[pa,F(" : "),l("span",null,K(i.yesFloodingPercentage)+"(\u4EA9)",1)])]))),128))]),fa]),l("div",ga,[(y(!0),k(I,null,j(p(Y).label,(i,w)=>(y(),k("div",{key:w},[l("div",null,K(i.crop)+"\uFF1A",1),l("div",null,K(i.Shape_Area)+" \u4EA9",1)]))),128)),p(Y).XZQMC?(y(),k("div",ha,[ma,l("div",null,K(p(Y).XZQMC),1)])):z("v-if",!0),l("div",{class:"cancel",onClick:qe},"X")]),oe.value?(y(),P(L,{key:0,class:"back_button",onClick:e[9]||(e[9]=i=>dt())},{default:g(()=>[F("\u8FD4\u56DE")]),_:1})):z("v-if",!0)]),l("div",va,[l("div",ya,[u(V,{inline:!0,model:p(h),class:"demo-form-inline"},{default:g(()=>[u(W,{label:"\u65F6\u95F4:"},{default:g(()=>[u(f,{"popper-class":"selectCity",modelValue:p(h).time,"onUpdate:modelValue":e[10]||(e[10]=i=>p(h).time=i),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[(y(!0),k(I,null,j(p(se),(i,w)=>(y(),P(a,{key:w,label:t.Zitem,value:i},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(W,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:g(()=>[u(f,{"popper-class":"selectCity",modelValue:p(h).statistical,"onUpdate:modelValue":e[11]||(e[11]=i=>p(h).statistical=i),placeholder:"\u8BF7\u9009\u62E9"},{default:g(()=>[u(a,{label:"\u4F5C\u7269\u7C7B\u578B",value:"\u4F5C\u7269\u7C7B\u578B"}),u(a,{label:"\u884C\u653F\u533A\u5212",value:"\u884C\u653F\u533A\u5212"}),u(a,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),u(W,{label:"\u9547"},{default:g(()=>[u(f,{modelValue:p(h).droughtRating,"onUpdate:modelValue":e[12]||(e[12]=i=>p(h).droughtRating=i),"popper-class":"selectCity",disabled:p(h).statistical!=="\u884C\u653F\u533A\u5212",placeholder:p(h).statistical==="\u884C\u653F\u533A\u5212"?"\u5168\u90E8":"\u8BF7\u9009\u62E9"},{default:g(()=>[(y(!0),k(I,null,j(p(G),(i,w)=>(y(),P(a,{key:w,label:i.name,value:i.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),u(W,{label:"\u9762\u79EF(\u4EA9)>"},{default:g(()=>[u(C,{modelValue:re.value,"onUpdate:modelValue":e[13]||(e[13]=i=>re.value=i),min:0,onChange:Qe},null,8,["modelValue"])]),_:1}),u(W,null,{default:g(()=>[u(L,{type:"primary",onClick:fe},{default:g(()=>[F("\u67E5\u8BE2")]),_:1}),u(L,{plain:"",onClick:Xe},{default:g(()=>[F("\u91CD\u7F6E")]),_:1}),p(B)?z("v-if",!0):(y(),P(L,{key:0,type:"primary",text:"",onClick:nt},{default:g(()=>[ba,F(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"])]),l("div",_a,[l("div",{ref_key:"chartModeDiv",ref:ie,class:"chartModeDiv"},null,512)])])])}}},Ta=ct(wa,[["__scopeId","data-v-a89f9b9b"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/FloodExtraction/FloodExtraction.vue"]]);export{Ta as default};