14 lines
28 KiB
JavaScript
14 lines
28 KiB
JavaScript
import{H as M,_ as vt,a as yt,r,A as ve,V as bt,W as Oe,a1 as _t,U as Me,d as D,o as b,c as E,l as n,m as L,e as u,w as m,f as c,g as N,k as I,L as J,N as $,F as wt,x as K,y as xt,p as St,q as kt}from"./index.afd881ee.js";import te from"./downloads.4cdbbcc5.js";import{_ as ae}from"./close1.45635d81.js";import{_ as Dt,a as Et,b as Ct,c as Lt}from"./position.a021215f.js";import{_ as Nt,a as Ft}from"./TimeLine.vue_vue_type_style_index_0_scoped_26e8a223_lang.891b9335.js";import{_ as zt}from"./icon.d0cb5387.js";import{_ as Tt}from"./dow.2a8d74cb.js";import"./index.6098b0aa.js";import{T as Wt}from"./TimeLine.7d9e99e3.js";import{u as Ve}from"./useEcharts.a1c5140e.js";import"./linesGL.306b5757.js";import{d as G}from"./download.5dddc0da.js";import{u as ye,w as qt}from"./xlsx.86b9426e.js";import{i as ee}from"./install.6cb28b74.js";function Ie(_){return M({url:"equipment/damageArea",method:"get",params:_})}function je(_){return M({url:"equipment/proportion",method:"get",params:_})}function Pe(_){return M({url:"equipment/highStandard",method:"get",params:_})}function be(_){return M({url:"equipment/townInformation",method:"get",params:_})}function Re(_){return M({url:"equipment/village",method:"get",params:_})}function At(_){return M({url:"equipment/listDroughtsDamageYear",method:"get",params:_})}function Ot(_){return M({url:"equipment/listDroughtsDamage",method:"get",params:_})}const k=_=>(St("data-v-a89f9b9b"),_=_(),kt(),_),Mt={class:"fatherDiv"},Vt={class:"centerBox"},It=k(()=>n("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),jt={class:"leftWra"},Pt={class:"leftTop"},Rt={class:"title"},Bt=k(()=>n("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u7EDF\u8BA1",-1)),Jt=k(()=>n("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),$t={class:"leftbottom"},Gt={class:"title"},Qt=k(()=>n("span",null,"\u519C\u4F5C\u7269\u53D7\u707E\u9762\u79EF\u5360\u6BD4",-1)),Ht=k(()=>n("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Zt={class:"tableDiv"},Yt={key:0,src:ae,alt:""},Ut={key:0,class:"imgrotate",src:ae,alt:""},Xt={class:"rightWra"},Kt={class:"rightTop"},ea={class:"title"},ta=k(()=>n("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),aa=k(()=>n("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),oa={class:"farmlandDiv"},la={class:"rightbottom"},na={class:"title"},ra=k(()=>n("span",null,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),sa=k(()=>n("img",{src:te,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),ia={class:"ASdivision"},da={key:0,src:ae,alt:""},ua={key:0,class:"imgrotate",src:ae,alt:""},ca={class:"bottom_center"},pa=xt('<div class="tool" data-v-a89f9b9b><span data-v-a89f9b9b><img src="'+Dt+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Et+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Ct+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Nt+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Ft+'" alt="" data-v-a89f9b9b></span><span data-v-a89f9b9b><img src="'+Lt+'" alt="" data-v-a89f9b9b></span></div>',1),fa={class:"mt-4"},ha={id:"popup",class:"ol-popup"},ga=k(()=>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)),ma={id:"popup-content",style:{padding:"10px"}},va={class:"perform_children"},ya=k(()=>n("img",{src:zt},null,-1)),ba=k(()=>n("span",null,"\u6D2A\u6D9D\u533A",-1)),_a=k(()=>n("div",{id:"popup-pagination"},null,-1)),wa={id:"pop"},xa={key:0},Sa=k(()=>n("div",null,"\u6751\u540D\uFF1A",-1)),ka={class:"tabulation"},Da={class:"searchDiv"},Ea=k(()=>n("img",{src:Tt,alt:""},null,-1)),Ca={class:"chartMode"},La={__name:"FloodExtraction",setup(_){const Be=yt();let oe=r(null);const _e=r(null),we=r(null);r(null);const w=r("370211");r(null);let T=ve({arr:[],brr:[],crr:[]});const Q=r({name:"",value:""});r([]);const le=r(!1);let W=r(!1),q=r(!1);const H=r([]);let xe=r([]),j=ve({lable:[],value:[]}),ne=r([]),re=r(0),P=r([]);const V=r([]);let Z=r([]);const se=r(0);let R=r(!0);r(1),r(12);let ie=r([]);const de=r(null);let ue=r([]),C=r(""),Y=r(null);r("");let Je=r([]),Se=r([]),v=r([{\u6D2A\u6D9D:0}]),f=r({time:"",statistical:"\u884C\u653F\u533A\u5212",droughtRating:"",area:se.value}),ce={\u6D2A\u6D9D\u533A:{color:"rgba(9, 187, 222, 1)",disabled:!1}},pe=r([]);var ke={title:[]};let fe={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]},B={\u6D2A\u6D9D\u533A:{setOf:"2020-05-26-honglao",name:"T2020_05_26_honglao"}},he=r([]);bt(()=>{$e()});function $e(){at(),Ge(),He(),Qe(),We(),qe();for(const o in ce)ce[o].disabled!==!0&&xe.value.push(o);H.value=xe.value;let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)");let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}Oe(()=>{localStorage.getItem(Be.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")}),r(null),r(null);let De=r(null),U=r(null),g=r(null);function Ge(){g=new ol.Map({target:"cesiumContainer",controls:[],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"})})]}),g.on("moveend",function(a){var e=g.getView().getZoom();e>=13?Y.setVisible(!0):Y.setVisible(!1)}),g.on("singleclick",function(a){var e=a.coordinate,o=e[0],l=e[1],i=g.getView(),t=g.getView().getZoom();console.log(o,l),i.animate({center:[o,l],duration:1e3}),t>=13?Ee(a,"CJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie","\u6751"):Ee(a,"XJQY3702112019WGS84@huangdaoqu_bianjie","http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie","\u9547")})}Oe(()=>{var a=document.querySelector(".centerBox"),e=document.getElementById("cesiumContainer"),o=new ResizeObserver(function(l){l.forEach(function(i){var t=i.contentRect.width,h=i.contentRect.height;e.style.width=t+"px",e.style.height=h+"px",g.updateSize()})});o.observe(a)});function Ee(a,e,o,l){var i=new ol.geom.Point(a.coordinate),t=new ol.supermap.QueryByGeometryParameters({queryParams:{name:e},geometry:i});let h=[],p=document.querySelector("#popup-title"),y=r(null),x=r(null);new ol.supermap.QueryService(o).queryByGeometry(t,function(s){let F="";if(x=g.getLayers().getArray().find(z=>z.get("id")==="zhezhao"),g.removeLayer(x),l=="\u9547"&&s.result.recordsets[0].features.features[0].properties.XJQYDM){let z=s.result.recordsets[0].features.features[0].properties.XJQYDM,O=[];be({divisions:"370211",yearMonth:"2023-05"}).then(d=>{d.data.forEach(S=>{S.subregion==z&&(console.log(S,z,"--------"),F=S.name,O.push(S)),Se.value=O}),A()})}function A(){if(s.result.currentCount>0){console.log(s.result.recordsets[0].features),s.result.recordsets[0].features&&(U.setPosition(i.flatCoordinates),console.log(F),p.innerHTML=F),y=g.getLayers().getArray().find(me=>me.get("id")==="dianjigaoliang"),g.removeLayer(y);var z=new ol.format.GeoJSON().readFeatures(s.result.recordsets[0].features);h=s.result.recordsets[0].features.features[0].geometry.coordinates,Ce(s.result.recordsets[0].features.features[0].geometry.coordinates);var O=new ol.source.Vector;O.addFeatures(z);const S=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var d=new ol.layer.Vector({id:"dianjigaoliang",source:O,zIndex:9999});d.setStyle(S),g.addLayer(d)}}}),De.addEventListener("click",function(){x=g.getLayers().getArray().find(s=>s.get("id")==="zhezhao"),g.removeLayer(x),Le(h),w.value="370211",y=g.getLayers().getArray().find(s=>s.get("id")==="dianjigaoliang"),g.removeLayer(y),U.setPosition(void 0)})}const Qe=()=>{document.getElementById("popup"),document.getElementById("popup-content"),De=document.getElementById("popup-closer"),U=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),g.addOverlay(U)};function He(){_t.get("/json/huangdao.json").then(({data:a})=>{const o=new ol.format.GeoJSON().readFeatures(a)[0];Ce(o.getGeometry().getCoordinates(),"huandao")})}function Ce(a,e){let o=new ol.source.Vector;var l=new ol.layer.Vector({id:e||"zhezhao",source:o,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 105, 105, 105, 0.9)"})})});const i=Le(a),t=new ol.Feature({geometry:i});l.getSource().addFeature(t),g.addLayer(l)}function Le(a){console.log(a);const e=[-180,-90,180,90],o=ol.geom.Polygon.fromExtent(e),l=a;return console.log(l),l.forEach(i=>{const t=new ol.geom.LinearRing(i[0]);o.appendLinearRing(t)}),o}const Ze=()=>{Y=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}),g.addLayer(Y)},Ye=()=>{var a=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});g.addLayer(a)},Ue=a=>{let e=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl+`/map-${a.setOf}/rest/maps/${a.name}@${a.setOf}`,cacheEnabled:!1}),name:a.name,projection:"EPSG:4326"});g.addLayer(e)};let Ne=0;Me(()=>H.value,(a,e)=>{a.length>e.length?a.filter(l=>{if(e.findIndex(t=>t===l)<0)return l}).forEach(l=>{B[l]&&Ue(B[l])}):a.length<e.length&&e.filter(l=>{if(a.findIndex(t=>t===l)<0)return l}).forEach(l=>{B[l]&&(g.getLayers().getArray().indexOf(B[l].name),console.log(g.getLayers().getArray()),g.getLayers().getArray().forEach((i,t)=>{i.A.name&&i.A.name==B[l].name&&g.getLayers().removeAt(t)}))}),Ne++,Ne==1&&(Ze(),Ye())}),Me(()=>C.value,(a,e)=>{w.value="370211",Fe(w.value,C.value.name),ze(w.value,C.value.name),ot(C.value.name),Te(w.value,C.value.name)});let X=r({label:[]});function Xe(){if(W.value=!W.value,W.value){let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(0,0)")}else{let a=document.querySelector(".leftWra");a&&(a.style.transform="translate(-107%,0)")}}function Ke(){if(q.value=!q.value,q.value){let a=document.querySelector(".rightWra");a.style.transform="translate(0,0)"}else{let a=document.querySelector(".rightWra");a.style.transform="translate(107%,0)"}}const et=a=>{f.value.area=a},ge=()=>{f.value.statistical=="\u884C\u653F\u533A\u5212"&&(f.value.droughtRating=null);let a=[],e=[];Ot({yearMonth:f.value.time,statistical:f.value.statistical,droughtRating:f.value.droughtRating==null?"1":f.value.droughtRating,area:f.value.area}).then(o=>{if(console.log(o.data),console.log(f.value.statistical),f.value.statistical=="\u884C\u653F\u533A\u5212"){o.data.forEach(t=>{a.indexOf(t.typeName)==-1&&a.push(t.typeName)}),a.forEach(t=>{e.push(Object.create(null,{regio:{value:t}}))}),e.forEach(t=>{o.data.map(h=>{t.regio===h.typeName&&(t.region=h.typeName,t.\u6D2A\u6D9D=Number(h.yesFlooding).toFixed(2))})}),R.value=!1,V.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(t=>{t.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(t.\u6D2A\u6D9D)!==NaN?Number(t.\u6D2A\u6D9D):0)});for(const t in v.value[0])v.value[0][t]!=="\u5408\u8BA1"&&(v.value[0][t]=v.value[0][t].toFixed(2))}else if(f.value.statistical=="\u4F5C\u7269\u7C7B\u578B"){o.data.forEach(t=>{a.indexOf(t.type)==-1&&a.push(t.type)}),a.forEach(t=>{e.push(Object.create(null,{regio:{value:t}}))}),e.forEach(t=>{o.data.map(h=>{t.regio===h.type&&(t.region=h.type,t.\u6D2A\u6D9D=Number(h.yesFlooding).toFixed(2))})}),R.value=!1,V.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(t=>{t.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(t.\u6D2A\u6D9D)!==NaN?Number(t.\u6D2A\u6D9D):0)});for(const t in v.value[0])v.value[0][t]!=="\u5408\u8BA1"&&(v.value[0][t]=v.value[0][t].toFixed(2))}else if(f.value.statistical=="\u9AD8\u6807\u51C6\u519C\u7530"){console.log(o.data),o.data.forEach(t=>{a.indexOf(t.region)==-1&&a.push(t.region)}),a.forEach(t=>{e.push(Object.create(null,{regio:{value:t}}))}),e.forEach(t=>{o.data.map(h=>{t.regio===h.region&&(t.region=h.region,t.\u6D2A\u6D9D=Number(h.yesFlooding).toFixed(2))})}),R.value=!1,V.value=e,v.value[0].\u6D2A\u6D9D=0,v.value[0].region="\u5408\u8BA1",e.forEach(t=>{t.\u6D2A\u6D9D&&(v.value[0].\u6D2A\u6D9D+=Number(t.\u6D2A\u6D9D)!==NaN?Number(t.\u6D2A\u6D9D):0)});for(const t in v.value[0])v.value[0][t]!=="\u5408\u8BA1"&&(v.value[0][t]=v.value[0][t].toFixed(2))}const l=de.value;l.style.width=window.innerWidth-100+"px",l.style.height=window.innerHeight-100+"px";const i=ee(l);window.addEventListener("resize",()=>{l.style.width=window.innerWidth-200+"px",l.style.height=window.innerHeight-200+"px",i.resize()}),ht()})},tt=()=>{f.value.time=ie.value[0],f.value.statistical="\u884C\u653F\u533A\u5212",f.value.droughtRating="",f.value.area=0,R.value=!0,ge()},at=()=>{At().then(a=>{C.value={name:a.data[0]},a.data.forEach(e=>{ue.value.push({name:e})}),ie.value=a.data,f.value.time=a.data[0],ge()})},Fe=(a,e)=>{j=ve({lable:[],value:[]}),Ie({divisions:a,yearMonth:e}).then(o=>{o.data.forEach(l=>{j.lable.push(l.type),j.value.push(l.yesFlooding)}),We()})},ze=(a,e)=>{ne=r([]),he=r([]),re=r(0),je({divisions:a,yearMonth:e}).then(o=>{o.data.forEach(l=>{re.value+=Number(l.yesFlooding),ne.value.push({name:l.type,value:l.yesFlooding}),he.value.push({type:l.type,yesFlooding:`${l.yesFlooding}\u4EA9`,zb:`${(l.zb*100).toFixed(2)}%`})}),qe()})},ot=a=>{Pe({yearMonth:a}).then(e=>{console.log(e.data),pe.value=JSON.parse(JSON.stringify(e.data)),console.log(pe.value)})},Te=(a,e)=>{P=r([]),be({divisions:a,yearMonth:e}).then(o=>{Je.value=JSON.parse(JSON.stringify(o.data)),T.arr=o.data.sort((t,h)=>t.name.length-h.name.length),T.arr.forEach(t=>{P.value.push({name:t.name,subregion:t.subregion,yesFloodingPercentage:t.yesFloodingPercentage,createdTime:t.createdTime})}),T.arr.unshift({subregion:"370211",name:"\u5168\u90E8"});let l=[],i=[];T.arr.forEach(t=>{l.indexOf(t.name)==-1&&(l.push(t.name),i.push({name:t.name,subregion:t.subregion,area:t.area,type:t.type}))}),T.arr=i,Z.value=JSON.parse(JSON.stringify(T.arr)),Z.value[0].subregion=null,console.log(Z.value)})},lt=(a,e)=>{P=r([]),Re({divisions:a,yearMonth:e}).then(o=>{T.brr=o.data;let l=[...o.data],i=[];l.splice(0,1),l.forEach(t=>{i.indexOf(t.name)==-1&&i.push(t.name),P.value.push({name:t.name,subregion:t.subregion,yesFloodingPercentage:t.yesFloodingPercentage,createdTime:t.createdTime})}),ke.title=[...Object.values(i)],ke.title.forEach((t,h)=>{let p=o.data.map(y=>{if(t===y.name)return y});Object.keys(fe).forEach(y=>{p.findIndex(s=>s&&s.type===y)>-1?fe[y].push(1):fe[y].push(null)})})})},nt=()=>{if(lt(w.value),ze(w.value),Fe(w.value),w.value=="370211"){Te(w.value);return}},rt=a=>{Ie({divisions:w.value,whetherToDownload:!0,yearMonth:C.value.name}).then(e=>{G(e.data[e.data.length-1].downloadPath)})},st=a=>{je({divisions:w.value,whetherToDownload:!0,yearMonth:C.value.name}).then(e=>{G(e.data[e.data.length-1].downloadPath)})},it=a=>{Pe({divisions:w.value,whetherToDownload:!0,yearMonth:C.value.name}).then(e=>{G(e.data[e.data.length-1].downloadPath)})},dt=a=>{w.value=="370211"?be({divisions:w.value,whetherToDownload:!0,yearMonth:C.value.name}).then(e=>{G(e.data[e.data.length-1].downloadPath)}):Re({divisions:w.value,whetherToDownload:!0,yearMonth:C.value.name}).then(e=>{G(e.data[e.data.length-1].downloadPath)})},ut=()=>{let a=JSON.parse(JSON.stringify(v.value[0]));a.region="\u5408\u8BA1",V.value.push(a),pt(V.value,"\u6D2A\u6D9D\u9762\u79EF\u7EDF\u8BA1\u8868","Sheet1")},ct=(a,e)=>a.map(l=>{const i={};for(const t in l)e[t]&&(i[e[t]]=l[t]);return i}),pt=(a,e="\u7528\u6237\u5217\u8868",o="Sheet1")=>{const i=ct(a,{region:"\u533A\u57DF\u540D\u79F0",\u6D2A\u6D9D:"\u6D2A\u6D9D (\u4EA9)"}),t=ye.json_to_sheet(i),h=ye.book_new();ye.book_append_sheet(h,t,o),qt(h,`${e}.xlsx`)},ft=a=>{C.value=a};function We(){const a=ee(_e.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:j.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: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&&a.setOption(e),window.addEventListener("resize",function(){a.resize()})}function qe(){const a=ee(we.value);var e=ne.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:`${re.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"}}}]}]};Ve(a,o)}function ht(){const a=ee(de.value);let e=[],o=[];V.value.forEach(p=>{e.push(p.region),p.\u6D2A\u6D9D!==void 0?o.push(p.\u6D2A\u6D9D):o.push(0)});let l=10/e.length*100,i={tooltip:{trigger:"axis",formatter:function(p){let y=p[0].axisValueLabel+"</br>",x=0;for(let s=0;s<p.length;s++)x+=p[s].value,p[s].seriesName!=="\u5408\u8BA1"&&(y+=p[s].seriesName+"\uFF1A"+p[s].value+"</br>");for(let s=0;s<p.length;s++)x+=Number(p[s].value),p[s].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+x);return y},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:l,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}]};i.series;var t=i.tooltip;function h(p){let y=p[0].axisValueLabel+"</br>",x=0;for(let s=0;s<p.length;s++)if(p[s].seriesName!=="\u5408\u8BA1"){const F=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${p[s].color}"></span>`;x+=p[s].value,y+=F+p[s].seriesName+"\uFF1A"+p[s].value+"</br>"}for(let s=0;s<p.length;s++)p[s].seriesName==="\u5408\u8BA1"&&(y+="\u5408\u8BA1\uFF1A"+x);return y}t.formatter=h,Ve(a,i)}function gt(){deleteEntityByName("villageLine"),removeWms(["village_CQL"]),deleteEntityByName("townLine"),delete X.value.XZQMC,removeWms(["gbznt"],!0),removeWms(["aaa"]),w.value="370211",nt(),le.value==="1"&&addWms("shuzisannong:huangdaoqu_town","tl"),oe.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),le.value=!1,Ae()}r({});function mt(){if(Q.value.lon&&Q.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(Q.value.lon),Number(Q.value.lat),0);var a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(oe.scene,e);if(Cesium.defined(a)){const o=document.getElementById("popup");o&&(o.style.top=a.y-10+"px",o.style.left=a.x+10+"px")}}}function Ae(){const a=document.getElementById("popup");a&&(a.style.display="none"),oe.scene.postRender.removeEventListener(mt),deleteEntityByName("townLine")}return(a,e)=>{const o=D("el-table-column"),l=D("el-table"),i=D("el-tooltip"),t=D("el-checkbox"),h=D("el-checkbox-group"),p=D("el-collapse-item"),y=D("el-collapse"),x=D("el-button"),s=D("el-option"),F=D("el-select"),A=D("el-form-item"),z=D("el-input-number"),O=D("el-form");return b(),E("div",Mt,[n("div",Vt,[It,n("div",jt,[n("div",Pt,[n("div",Rt,[Bt,n("p",{onClick:e[0]||(e[0]=d=>rt())},[L(" \u4E0B\u8F7D \xA0 "),Jt])]),n("div",{ref_key:"areaDiv",ref:_e,class:"areaDiv"},null,512)]),n("div",$t,[n("div",Gt,[Qt,n("p",{onClick:e[1]||(e[1]=d=>st())},[L(" \u4E0B\u8F7D \xA0 "),Ht])]),n("div",{ref_key:"typesofDiv",ref:we,class:"typesofDiv"},null,512),n("div",Zt,[u(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:c(he),style:{width:"100%"}},{default:m(()=>[u(o,{prop:"type",label:"\u7C7B\u578B"}),u(o,{prop:"yesFlooding",label:"\u9762\u79EF"}),u(o,{prop:"zb",label:"\u5360\u6BD4"})]),_:1},8,["data"])])]),n("div",{class:"leftFoldDiv",onClick:e[2]||(e[2]=d=>Xe())},[u(i,{class:"box-item","show-arrow":!1,disabled:c(W),"hide-after":"0","show-after":"200",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[c(W)?N("v-if",!0):(b(),E("img",Yt))]),_:1},8,["disabled"]),u(i,{disabled:!c(W),"show-arrow":!1,class:"box-item","show-after":"200","hide-after":"0",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[c(W)?(b(),E("img",Ut)):N("v-if",!0)]),_:1},8,["disabled"])])]),n("div",Xt,[n("div",Kt,[n("div",ea,[ta,n("p",{onClick:e[3]||(e[3]=d=>it())},[L(" \u4E0B\u8F7D \xA0 "),aa])]),n("div",oa,[u(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:c(pe),style:{width:"100%","font-size":"12px"}},{default:m(()=>[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"])]),N(' <div ref="ProgressBarDiv" class="ProgressBar"></div> ')]),n("div",la,[n("div",na,[ra,n("p",{onClick:e[4]||(e[4]=d=>dt())},[L(" \u4E0B\u8F7D \xA0 "),sa])]),N(` <el-select
|
|
popper-class="select_city"
|
|
@change="selectTab(item)"
|
|
v-model="value"
|
|
placeholder="\u5168\u90E8"
|
|
>
|
|
<el-option
|
|
v-for="item in Township.arr"
|
|
:key="item.subregion"
|
|
:label="item.name"
|
|
:value="item.subregion"
|
|
/>
|
|
</el-select> `),n("div",ia,[u(l,{"cell-style":{textAlign:"center"},"header-cell-style":{"text-align":"center"},data:c(P),style:{width:"100%","font-size":"12px"}},{default:m(()=>[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"])])]),n("div",{class:"rightFoldDiv",onClick:e[5]||(e[5]=d=>Ke())},[u(i,{disabled:!c(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:m(()=>[c(q)?(b(),E("img",da)):N("v-if",!0)]),_:1},8,["disabled"]),u(i,{disabled:c(q),"show-arrow":!1,"hide-after":"0","show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:m(()=>[c(q)?N("v-if",!0):(b(),E("img",ua))]),_:1},8,["disabled"])])]),n("div",ca,[c(ue).length>0?(b(),I(Wt,{key:0,dataSource:c(ue),onDataHandle:ft},null,8,["dataSource"])):N("v-if",!0)]),pa,u(y,{class:"legend",accordion:""},{default:m(()=>[u(p,{name:"1"},{title:m(()=>[L("\u56FE\u4F8B")]),default:m(()=>[n("div",fa,[u(h,{modelValue:H.value,"onUpdate:modelValue":e[6]||(e[6]=d=>H.value=d),onChange:a.change},{default:m(()=>[(b(!0),E(J,null,$(c(ce),(d,S,me)=>(b(),I(t,{key:me,style:wt({backgroundColor:d.color,border:"1px solid value.color",width:"100%"}),"v-model":d.disabled,disabled:d.disabled,label:S},null,8,["style","v-model","disabled","label"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),n("div",ha,[ga,n("div",ma,[(b(!0),E(J,null,$(c(Se),(d,S)=>(b(),E("div",{class:"perform",key:S},[n("div",va,[ya,ba,L(" : "),n("span",null,K(d.yesFloodingPercentage)+"(\u4EA9)",1)])]))),128))]),_a]),n("div",wa,[(b(!0),E(J,null,$(c(X).label,(d,S)=>(b(),E("div",{key:S},[n("div",null,K(d.crop)+"\uFF1A",1),n("div",null,K(d.Shape_Area)+" \u4EA9",1)]))),128)),c(X).XZQMC?(b(),E("div",xa,[Sa,n("div",null,K(c(X).XZQMC),1)])):N("v-if",!0),n("div",{class:"cancel",onClick:Ae},"X")]),le.value?(b(),I(x,{key:0,class:"back_button",onClick:e[7]||(e[7]=d=>gt())},{default:m(()=>[L("\u8FD4\u56DE")]),_:1})):N("v-if",!0)]),n("div",ka,[n("div",Da,[u(O,{inline:!0,model:c(f),class:"demo-form-inline"},{default:m(()=>[u(A,{label:"\u65F6\u95F4:"},{default:m(()=>[u(F,{"popper-class":"selectCity",modelValue:c(f).time,"onUpdate:modelValue":e[8]||(e[8]=d=>c(f).time=d),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[(b(!0),E(J,null,$(c(ie),(d,S)=>(b(),I(s,{key:S,label:a.Zitem,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(A,{label:"\u7EDF\u8BA1\u65B9\u5F0F:"},{default:m(()=>[u(F,{"popper-class":"selectCity",modelValue:c(f).statistical,"onUpdate:modelValue":e[9]||(e[9]=d=>c(f).statistical=d),placeholder:"\u8BF7\u9009\u62E9"},{default:m(()=>[u(s,{label:"\u4F5C\u7269\u7C7B\u578B",value:"\u4F5C\u7269\u7C7B\u578B"}),u(s,{label:"\u884C\u653F\u533A\u5212",value:"\u884C\u653F\u533A\u5212"}),u(s,{label:"\u9AD8\u6807\u51C6\u519C\u7530",value:"\u9AD8\u6807\u51C6\u519C\u7530"})]),_:1},8,["modelValue"])]),_:1}),u(A,{label:"\u9547"},{default:m(()=>[u(F,{modelValue:c(f).droughtRating,"onUpdate:modelValue":e[10]||(e[10]=d=>c(f).droughtRating=d),"popper-class":"selectCity",disabled:c(f).statistical!=="\u884C\u653F\u533A\u5212",placeholder:c(f).statistical==="\u884C\u653F\u533A\u5212"?"\u5168\u90E8":"\u8BF7\u9009\u62E9"},{default:m(()=>[(b(!0),E(J,null,$(c(Z),(d,S)=>(b(),I(s,{key:S,label:d.name,value:d.subregion},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder"])]),_:1}),u(A,{label:"\u9762\u79EF(\u4EA9)>"},{default:m(()=>[u(z,{modelValue:se.value,"onUpdate:modelValue":e[11]||(e[11]=d=>se.value=d),min:0,onChange:et},null,8,["modelValue"])]),_:1}),u(A,null,{default:m(()=>[u(x,{type:"primary",onClick:ge},{default:m(()=>[L("\u67E5\u8BE2")]),_:1}),u(x,{plain:"",onClick:tt},{default:m(()=>[L("\u91CD\u7F6E")]),_:1}),c(R)?N("v-if",!0):(b(),I(x,{key:0,type:"primary",text:"",onClick:ut},{default:m(()=>[Ea,L(" \u4E0B\u8F7D ")]),_:1}))]),_:1})]),_:1},8,["model"])]),n("div",Ca,[n("div",{ref_key:"chartModeDiv",ref:de,class:"chartModeDiv"},null,512)])])])}}},Ba=vt(La,[["__scopeId","data-v-a89f9b9b"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/meteorological/remoteSense/FloodExtraction/FloodExtraction.vue"]]);export{Ba as default};
|