"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js"),a=require("./model.js"),s=()=>{var e,s;o.getApiLoading(l.Apis.Archive.HouseRegisters.OwnerAuditList,null==(s=null==(e=a.useModel)?void 0:e.formData)?void 0:s.value).then((e=>{a.useModel.dataList.value=[...a.useModel.dataList.value,...null==e?void 0:e.data],a.useModel.meta.value=null==e?void 0:e.meta,console.log(e)}))},u=()=>{var e,s;o.getApiLoading(l.Apis.Archive.HouseRegisters.List,null==(s=null==(e=a.useModel)?void 0:e.formData)?void 0:s.value).then((e=>{a.useModel.dataList.value=[...a.useModel.dataList.value,...null==e?void 0:e.data],a.useModel.meta.value=null==e?void 0:e.meta,console.log(e)}))},t=()=>{a.useModel.dataList.value=[],a.useModel.formData.value.page=1,0===a.useModel.currentTabs.value&&s(),1===a.useModel.currentTabs.value&&u()},i={getOwnerAuditList:s,handleSrarch:t,getHouseRegisters:u,handleLoadMore(e){a.useModel.formData.value.page=e,0===a.useModel.currentTabs.value&&s(),1===a.useModel.currentTabs.value&&u()},handleAudit(a){e.index.showModal({title:"提示",content:"请仔细确认好注册用户信息！",confirmText:"通过",confirmColor:"#2A7EFB",success:function(e){e.confirm?(o.getApiLoading(l.Apis.Archive.HouseRegisters.Audit,{status:"Approved",id:null==a?void 0:a.id}).then((e=>{t(),console.log(e)})),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})}};exports.method=i;
