import L from"./echart.b1180797.js";import{m as F}from"./index.00b8eaf9.js";import{r as n,B as O,_ as D,C as P,e as T,D as R,F as V,h as a,o as s,c as d,m as i,l as _,n as p,G,H as A,z as B,f as S,w as W,ab as U,as as J,s as Y,t as $,v as z}from"./index.82404a61.js";import H from"./index.c8c9eee7.js";import"./project.bf4b0422.js";import"./useDicts.d48f8ce6.js";import"./index.39d26404.js";import"./analysis.bd39dc62.js";import"./v3.f314c63e.js";import"./overview.5654d2bc.js";import"./standard_condition.0130d08e.js";import"./barChart.0f07440b.js";import"./facility_storage_capacity.96803525.js";import"./facility_storage_capacity_p.a2c8e1b6.js";import"./facility_ratio.7101280f.js";import"./annual_runoff_condition.bb2896ef.js";import"./cost_estimate.240f72ec.js";import"./recognitionImage.2450d7b0.js";import"./list.276e53a8.js";import"./underlySurfaceTable.77f730f2.js";import"./index.d45ac562.js";import"./facilityTable.05823244.js";import"./elevation.4d4c2e17.js";const C=n({xdata:["2021","2022","2023","\u9879\u76EE\u603B\u6570"],data:[4.2,3.5,2.9,7.8],color:["#86D882"],name:"\u5DF2\u5F00\u5DE5\u9879\u76EE"}),f=n({xdata:["2021","2022","2023"],data:[42.2,32.5,2.9,7.8,5,3],color:["#159AFF"],name:"\u5DF2\u5B8C\u5DE5\u9879\u76EE"}),N=n({xdata:["2021","2022","2023"],data:[224.222,3.5,2.9,7.8,5,3],color:["#F8AA45"],name:"\u6295\u8D44\u9879\u76EE"});function K(c){return O({url:"/business/projectInfoNew/selectProjectEcharts",method:"get",params:c})}const Q=c=>(Y("data-v-c690b2b6"),c=c(),$(),c),X={class:"water-analysis-page","element-loading-text":"\u6570\u636E\u52A0\u8F7D\u4E2D...","element-loading-background":"rgba(122, 122, 122, 0.8)"},Z={key:0,class:"top"},q={key:0,class:"icon"},ee=Q(()=>i("div",{class:"tittle"},"\u9879\u76EE\u5F00\u5DE5\u60C5\u51B5",-1)),te={class:"tuli"},oe={class:"tuli_img"},ae=["src"],le={__name:"index",setup(c){const{proxy:m}=z();n(null);let j=n(0);n({});const x=n(!0);let u=n(!1);const g=n(!1);let E=n([{label:"\u5F00\u5DE5",id:1,icon:"/2.1.jpg"},{label:"\u672A\u5F00\u5DE5",id:0,icon:"/2.2.jpg"}]),v=null;const b=n("1704040731365404674"),I=o=>{var l,r;if(console.log("feature",o),!o.properties.data._value.id){J({message:"\u8BE5\u9879\u76EE\u672A\u8FDB\u884C\u53EA\u80FD\u5BA1\u67E5",type:"warning"});return}let e=turf.featureCollection(newfiberMap.getLayers([o.key]).filter(t=>!!t.properties).filter(t=>t.properties.getValue().name==o.name).map(t=>turf.feature(Terraformer.WKT.parse(t.properties.getValue().geometrys))));e.features.length&&w(e),(r=(l=o.properties)==null?void 0:l.data)!=null&&r._value&&(b.value="1704040731365404674",u.value=!0)};async function M(){let{data:o}=await K();console.log("data",o),v=o,C.value.xdata=o.opend.map(e=>e.year),C.value.data=o.opend.map(e=>e.oneCount),console.log("top.value",C.value),f.value.xdata=o.realyCompleted.map(e=>e.year),f.value.data=o.realyCompleted.map(e=>e.oneCount),f.value.data1=o.completed.map(e=>e.oneCount),f.value.namme1="\u5E94\u5B8C\u6210\u9879\u76EE",N.value.xdata=o.realyCompleted.map(e=>e.year),N.value.data=o.realyCompleted.map(e=>e.oneCount),x.value=!1,g.value=!0}const k=(o,e)=>{console.log(o,6666667372323),m.$refs.mapRef.clear(),b.value="",o!=null&&o.length&&setTimeout(()=>{let l=[];if(o&&(l=o.filter(t=>t.projectLocation).map(t=>{let y={};return t.projectLocation.includes("POINT")?y={type:NewFiberMap.Enum.VectorType.SPECIAL_CIRCLE,id:"point",data:{...t,queryType:e},name:(t.projectName||"").substr(0,10)+(t.projectName.length>10?".....":""),style:{radius:10,clampToGround:!1,material:new NewFiberMap.Material.CircleDiffuseMaterialProperty({color:Cesium.Color.fromCssColorString("rgba(134, 216, 130, 0.8)"),speed:20})},labelOptions:{font:"17px PingFang SC",style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineColor:"rgba(20,83,154,1)",outline:!0,outlineWidth:3,color:"#ffffff",pixelOffset:[0,-6],distanceDisplayCondition:[0,21e5]},geometrys:t.projectLocation}:t.projectLocation.includes("LINE")?y={type:NewFiberMap.Enum.VectorType.POLYLINE,id:"line",data:{...t,queryType:e},name:(t.projectName||"").substr(0,10)+(t.projectName.length>10?".....":""),geometrys:t.projectLocation,style:{width:5,material:"rgba(134, 216, 130, 0.8)",color:"rgba(134, 216, 130, 0.8)",clampToGround:!0},labelOptions:{font:"17px PingFang SC",style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineColor:"rgba(20,83,154,1)",outline:!0,outlineWidth:3,color:"#ffffff",pixelOffset:[0,-6],distanceDisplayCondition:[0,21e5]}}:t.projectLocation.includes("POLYGON")&&(y={type:NewFiberMap.Enum.VectorType.POLYGON,style:{material:"rgba(134, 216, 130, 0.8)",color:"rgba(134, 216, 130, 0.8)"},geometrys:t.projectLocation,id:"area",data:{...t,queryType:e},name:(t.projectName||"").substr(0,10)+(t.projectName.length>10?".....":""),labelOptions:{font:"17px PingFang SC",style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineColor:"rgba(20,83,154,1)",outline:!0,outlineWidth:3,color:"#ffffff",pixelOffset:[0,-6],distanceDisplayCondition:[0,21e5]}}),y})),!l.length)return;let r=NewFiberMap.Data.ToGeoJSON.beansWktToGeoJson(l);w(r),newfiberMap.geojsonToMap(r)},100)},w=o=>{let e=turf.getCoords(o.features[0].geometry).flat(),l=o.features.length==1&&e.length==2;!!o.features.length&&!l?newfiberMap.getMap().camera.flyTo({destination:new Cesium.Rectangle.fromDegrees(...turf.bbox(turf.transformScale(turf.bboxPolygon(turf.bbox(o)),2)))}):newfiberMap.setCenter({roll:.01658908985506884,pitch:-87.24924906709752,heading:5.026928271138224,lng:e[0],lat:e[1],height:943.5996932813425})},h=(o,e)=>{console.log(o,e,7777),m.$refs.topRef.restSelect(),m.$refs.centerRef.restSelect(),m.$refs.bottomRef.restSelect(),e.callback&&e.callback();const r=(v[o]||[]).find(t=>t.year===e.name);k((r==null?void 0:r.simpleProjectInfoList)||[],o)};return P(()=>{M()}),(o,e)=>{const l=T("el-dialog"),r=R("loading");return V((s(),d("div",X,[a(j)?p("",!0):(s(),d("div",Z,[a(v)?(s(),d("div",q,[ee,i("div",null,[a(g)?(s(),_(L,{key:0,data:a(C),ref:"topRef",onSelectEchart:e[0]||(e[0]=t=>h("opend",t))},null,8,["data"])):p("",!0)]),i("div",null,[a(g)?(s(),_(L,{key:0,data:a(f),ref:"centerRef",onSelectEchart:e[1]||(e[1]=t=>h("completed",t))},null,8,["data"])):p("",!0)]),i("div",null,[a(g)?(s(),_(L,{key:0,data:a(N),ref:"bottomRef",onSelectEchart:e[2]||(e[2]=t=>h("realyCompleted",t))},null,8,["data"])):p("",!0)])])):p("",!0),i("div",te,[(s(!0),d(G,null,A(a(E),t=>(s(),d("div",oe,[i("img",{src:t.icon,alt:""},null,8,ae),i("div",null,B(t.label),1)]))),256))]),S(a(F),{id:"map",ref:"mapRef",isShowTool:!1,onClickMap:I},null,512)])),S(l,{modelValue:a(u),"onUpdate:modelValue":e[3]||(e[3]=t=>U(u)?u.value=t:u=t),title:"\u9879\u76EE\u5408\u7406\u6027","close-on-click-modal":!1,width:"85%","before-close":o.close},{default:W(()=>[a(b)?(s(),_(H,{key:0,id:a(b)},null,8,["id"])):p("",!0)]),_:1},8,["modelValue","before-close"])])),[[r,a(x)]])}}},Ee=D(le,[["__scopeId","data-v-c690b2b6"]]);export{Ee as default};