Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / recognitionImage.fcd8a1ac.js
import S from"./list.ec450d01.js";import{r as o,e as m,o as s,c as d,f as p,w as g,G as x,H as R,l as b}from"./index.82404a61.js";import"./underlySurfaceTable.d7f4e83d.js";import"./index.221b8ce0.js";import"./index.39d26404.js";import"./facilityTable.e7d8fcf9.js";import"./elevation.3410d00c.js";const h={class:"recognitionImage"},I={__name:"recognitionImage",setup(N,{expose:v}){const r=o([]),n=o([]),c=o(0),_={underlySurface:{name:"\u5EFA\u8BBE\u5DE5\u7A0B\u4E0B\u57AB\u9762",list:[]},facility:{name:"\u5EFA\u8BBE\u5DE5\u7A0B\u8BBE\u65BD",list:[]},elevation:{name:"\u5206\u533A\u9AD8\u7A0B",data:{groundElevation:"",facilityBaseElevation:""}}},y=a=>{if(!a)return;const l=a.intelligentAreaList;n.value=l.map((t,i)=>{const e=JSON.parse(JSON.stringify(_)),L=t.intelligentUnderlyingSurfaceRunoffList;e.underlySurface.list=L;const E=t.intelligentFacilitiesPolluteRemoveList;for(const u of r.value){const f=E.filter(B=>B.itemType===u.value);f.length&&e.facility.list.push({name:u.label,list:f})}return e.elevation.data.groundElevation=t.groundElevation,e.elevation.data.facilityBaseElevation=t.facilityBaseElevation,{name:i,label:t.areaName,data:e}}),console.log(n.value)};return v({getList:async a=>{r.value.length,y(a)}}),(a,l)=>{const t=m("el-tab-pane"),i=m("el-tabs");return s(),d("div",h,[p(i,{modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>c.value=e),class:"tabs"},{default:g(()=>[(s(!0),d(x,null,R(n.value,e=>(s(),b(t,{label:e.label,name:e.name},{default:g(()=>[p(S,{data:e==null?void 0:e.data,index:e.name,ref_for:!0,ref:"listRef"},null,8,["data","index"])]),_:2},1032,["label","name"]))),256))]),_:1},8,["modelValue"])])}}};export{I as default};