"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../common/libraries/naviHelper.js"),n=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-popup/hs-popup.js"))();const i=e.defineComponent({__name:"hs-popup-building",props:["Apis","baseStyle","params"],emits:["close","change"],setup(i,{emit:s}){const a=i,u=e.ref({name:"全部楼栋",id:0}),r=e.ref({page:1}),d=e.ref([]);e.ref({});const t=e.ref(!1),v=()=>{var e;console.log(null==a?void 0:a.params,"成都市 "),!t.value&&(null==(e=null==a?void 0:a.params)?void 0:e.asset_projects_id)?(t.value=!t.value,p()):l.showToast("请先选择项目！")},p=()=>{var e,l,i;o.getApiLoading(null==(i=null==(l=null==(e=n.Apis)?void 0:e.Asset)?void 0:l.AssetHouses)?void 0:i.SelectBuilding,{...r.value,...null==a?void 0:a.params}).then(e=>{d.value=null==e?void 0:e.data,console.log(e)})},m=()=>{t.value=!t.value},c=()=>{u.value={name:"全部楼栋",id:0},s("change",{asset_buildings_id:void 0})};return(o,l)=>{var n,i,r,p,g;return e.e({a:e.t(null==(n=u.value)?void 0:n.name),b:e.s((null==a?void 0:a.baseStyle)||{}),c:"全部楼栋"===(null==(i=u.value)?void 0:i.name)},"全部楼栋"===(null==(r=u.value)?void 0:r.name)?{d:e.p({type:"down",color:"#333",size:"12"})}:{},{e:e.o(v),f:"全部楼栋"!==(null==(p=u.value)?void 0:p.name)},"全部楼栋"!==(null==(g=u.value)?void 0:g.name)?{g:e.p({type:"close",color:"#666",size:"18"}),h:e.o(c)}:{},{i:e.f(d.value,(o,l,n)=>{var i,a;return e.e({a:e.t(null==o?void 0:o.name),b:(null==(i=u.value)?void 0:i.id)===(null==o?void 0:o.id)},(null==(a=u.value)?void 0:a.id)===(null==o?void 0:o.id)?{c:"25a60dae-3-"+n+",25a60dae-2",d:e.p({type:"checkmarkempty",size:"20",color:"#2A7EFB"})}:{},{e:`key_${l}`,f:e.o(e=>(e=>{u.value=e,s("change",{asset_buildings_id:null==e?void 0:e.id}),m()})(o),`key_${l}`)})}),j:e.o(m),k:e.p({show:t.value,mode:"bottom",closeable:!0,round:20})})}}}),s=e._export_sfc(i,[["__scopeId","data-v-25a60dae"]]);wx.createComponent(s);
