import{E as h,a as g}from"./el-table-column-5BM1zXQ-.js";import{d as x,bh as k,o as n,c as r,m as a,e as c,p as l,q as C,z as y,I as B,J as F,a0 as I,G as T}from"./index-XuO881sr.js";import"./el-checkbox-Cxc7yQYm.js";/* empty css               */import w from"./houseItem-BhOkFgXq.js";import{u as E}from"./house-CxmtNIEi.js";import"./_baseClone-CIlxLVYA.js";import"./_baseIteratee-CskuuWpP.js";import"./omit-nuy_stBf.js";import"./index-B_ImzkRi.js";import"./index-BMymgPp9.js";const H={class:"TableBox p-5 h-full"},L=x({__name:"table",setup(N){const t=E(),{currentHouseInfoList:u,currentFloorInfoList:i}=k(t),m=[{label:"编辑",value:"edit"},{label:"收费标准",value:"money"},{label:"详情",value:"main"},{label:"删除",value:"delete"}];function d(e){switch(e.type){case"edit":console.log("你选择了：",e);break;case"money":console.log("你选择了：",e);break;case"main":console.log("你选择了：",e);break;case"delete":console.log("你选择了：",e),t.deleteHouseFun(e.value);break}}function p(e){t.checkoutHousesFun(e)}return(e,S)=>{const s=g,_=h;return n(),r("div",H,[a(_,{border:"",data:c(i)},{default:l(()=>[a(s,{align:"center",fixed:"",label:"楼层\\单元",width:"85"},{default:l(({row:o})=>[C("span",null,y(o)+"楼",1)]),_:1}),(n(!0),r(B,null,F(c(u),(o,f)=>(n(),I(s,{"min-width":"160",class:"column",align:"center",label:`${o.unitNo}单元`,key:f},{default:l(({row:b})=>[a(w,{onContextmenufun:d,onChange:p,"menu-list":m,unit:o.floors_Json,"f-idx":b},null,8,["unit","f-idx"])]),_:2},1032,["label"]))),128))]),_:1},8,["data"])])}}}),j=T(L,[["__scopeId","data-v-701561c6"]]);export{j as default};
