"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),r=require("../../../gen/Apis.js"),s=require("./model.js"),i=require("../../../common/libraries/naviHelper.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWeAppAuthStore.js");const u=require("../../../common/store/useWorkStore.js"),l=require("../../../common/libraries/userUserLogin.js"),a=u.useWorkStore(),n=()=>{var e,i,u;(null==(e=l.getUser)?void 0:e.getLoginStatus())&&o.getApiLoading(r.Apis.Grid.Grids.GridSelectHouse,null==(u=null==(i=s.useModel)?void 0:i.formData)?void 0:u.value).then((e=>{s.useModel.dataList.value=null==e?void 0:e.data,console.log(e)}))},d={getHouseList:n,handleLoadMore(e){s.useModel.formData.value.page=e,0===s.useModel.currentTabs.value&&n()},handleSelectedHouse(e){var o,r;if(s.useModel.selectedHouseEd.value={id:null==e?void 0:e.value},"work_add"===(null==(r=null==(o=s.useModel)?void 0:o.selectType)?void 0:r.value))return a.selectWorkHouse=e,void i.showToastBack("选择成功！",1,!0)},hadnleNewBindingHouse(){var o;e.index.navigateTo({url:(null==(o=l.getUser)?void 0:o.getLoginStatus())?"/INDEX/binding/index":"/pages/login"})},handleQueryHouseArchives(o){e.index.navigateTo({url:`/INDEX/archive_houses/index?id=${null==o?void 0:o.asset_houses_id}`})}};exports.method=d;
