import{i as s}from"./index-nsQnTcne.js";import i from"./table-ZJCLRsJb.js";import{u as t}from"./house-Dn7jiId_.js";import{B as n,g as o,aE as e,H as r,L as a,P as l,Z as u,u as c,M as d}from"./vue-vendor-DZekML78.js";import{h as p}from"./element-plus-DSMJnpwa.js";import{d as m}from"./index-mv7arXuk.js";/* empty css                    *//* empty css                          *//* empty css                        *//* empty css               */import"./houseItem-rJuu15g-.js";import"./utils-cPVb2Haz.js";import"./index-CWCutGkV.js";const f={class:"UnitBox"},x={class:"Unit_top flex align-center justify-between"},g={class:"text-size-16px text-color-black text-widget-bold mr-30px"},j={class:"mr-30px"},b={class:"mr-30px"},h={class:"mr-30px"},B={class:"UnitBody"},I=m(n({__name:"unit",setup(n){const{proxy:m}=o(),I=t(),v=e();function k(){v.push({path:"/house/addHouse"})}async function w(){await(m?.$modal.confirm("该信息删除后无法恢复，确定要删除吗？"));const i=I.checkoutHouses;i.length>0?s(i).then(()=>{I.switchBuilding(I.currentBuildingInfo.id),p.success("批量删除成功")}):p.warning("请选择要删除的房屋")}return(s,t)=>(r(),a("div",f,[l("div",x,[l("div",null,[l("span",g,[l("strong",null,u(c(I).currentBuildingInfo?.buildingName),1)]),l("span",j,"楼栋朝向:"+u(c(I).currentBuildingInfo?.buildToward),1),l("span",b,"楼高："+u(c(I).currentBuildingInfo?.buildTall?`${c(I).currentBuildingInfo?.buildTall}(m)`:""),1),l("span",h,"楼栋结构："+u(c(I).currentBuildingInfo?.buildStructure),1)]),l("div",{class:"rightActions"},[l("span",{class:"mr-20px",onClick:k},"+增加房屋"),l("span",{onClick:w},"删除")])]),l("div",B,[d(i)])]))}}),[["__scopeId","data-v-0f09bd17"]]);export{I as default};
