import _ from"./project.bf4b0422.js";import k from"./analysis.bd39dc62.js";import T from"./overview.5654d2bc.js";import{_ as B,i as E}from"./recognitionImage.2450d7b0.js";import{B as L,_ as M,aa as P,r as n,ap as y,C as O,e as x,D as S,F as $,o as b,c as G,f as a,w as i,h as d,l as V,n as F,ad as w,v as W}from"./index.82404a61.js";import{i as q}from"./v3.f314c63e.js";import"./useDicts.d48f8ce6.js";import"./index.39d26404.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"./list.276e53a8.js";import"./underlySurfaceTable.77f730f2.js";import"./index.d45ac562.js";import"./facilityTable.05823244.js";import"./elevation.4d4c2e17.js";const z=r=>L({url:"/sponge/projectBuildTargetConfig/list",method:"get",params:r});const H={class:"rationality","element-loading-text":"\u52A0\u8F7D\u4E2D...","element-loading-background":"rgba(0, 0, 0, 0.6)"},J={__name:"index",props:{id:{type:[Number,String],default:""}},setup(r){const h=r,{proxy:p}=W(),{id:u}=h,s=P({projectNo:"",projectNo:"",projectName:"",engineeringType:"",buildCategory:"",drainagePartition:"",area:"",annualRunoffTotalControlRate:"",annualRunoffPollutionControlRate:"",hardGroundRate:"",designRainfall:"",disposalOfGuestWater:"",spongeInvest:"",recommendedProductionRatio:""}),o=n(0),m=y({reachStandard:{targetyAxis:[],realityyAxis:[],resultyAxis:[],xaxis:[]},facilityStorageCapacityEcharts:[],facilityRatio:{targetyAxis:[],realityyAxis:[],resultyAxis:[],xaxis:[]},areaAnnualRunoffEcharts:[],costEstimateList:[]}),f=n(!1);let l=[];const R=new Map([[0,"recognitionImage"],[1,"analysis"],[2,"overview"]]),C=n(""),v=y({}),c=n(!1),N=e=>{o.value=e,w(()=>{f.value=o.value===1})},j=async()=>{const e=await z();console.log(e),(e==null?void 0:e.code)===200&&(l=e.data)},A=async()=>{c.value=!0,await j();const e=await E(u);if(c.value=!1,(e==null?void 0:e.code)!==200)return;console.log(e.data);const g=l.find(t=>t.projectNo===e.data.projectNo);q(g,s),C.value=R.get(o.value),m.value=e.data.reasonablenessOverview,v.value=e.data.examineMap,w(()=>{p.$refs.recognitionImageRef.getList(e.data),p.$refs.analysisRef.getDetails(e.data)})};return O(()=>{u&&A()}),(e,g)=>{const t=x("el-tab-pane"),D=x("el-tabs"),I=S("loading");return $((b(),G("div",H,[a(D,{"model-value":o.value,onTabChange:N,class:"outerTabs",type:"border-card"},{default:i(()=>[a(t,{label:"\u9879\u76EE\u5408\u7406\u6027",name:0},{default:i(()=>[a(_,{data:s,list:d(l),step:1,"investigate-data":d(v)},null,8,["data","list","investigate-data"]),a(k,{ref:"analysisRef"},null,512)]),_:1}),a(t,{label:"\u5408\u7406\u6027\u603B\u89C8",name:1},{default:i(()=>[f.value?(b(),V(T,{key:0,"overview-data":d(m)},null,8,["overview-data"])):F("",!0)]),_:1}),a(t,{label:"\u4E0B\u57AB\u9762\u53CA\u8BBE\u65BD\u8BE6\u60C5",name:2},{default:i(()=>[a(_,{data:s},null,8,["data"]),a(B,{ref:"recognitionImageRef"},null,512)]),_:1})]),_:1},8,["model-value"])])),[[I,c.value,void 0,{fullscreen:!0,lock:!0}]])}}},fe=M(J,[["__scopeId","data-v-0cafb80a"]]);export{fe as default};