"use strict";const e=require("../../../common/vendor.js"),a=require("../../../common/libraries/apiLoading.js"),l=require("../../../gen/Apis.js"),o=require("./model.js"),u=()=>{var e,u;a.getApiLoading(l.Apis.Meter.HouseMeterReadings.List,null==(u=null==(e=o.useModel)?void 0:e.formData)?void 0:u.value).then(e=>{o.useModel.listData.value=[...o.useModel.listData.value,...null==e?void 0:e.data],o.useModel.metaData.value=null==e?void 0:e.meta})},t=()=>{o.useModel.formData.value.page=1,o.useModel.listData.value=[],u()},d={getList:u,handleSearch(){t()},handleChangeTabs(e,a){o.useModel.currentTabs.value=e,o.useModel.formData.value.meter_type=null==a?void 0:a.value,t()},handleLoad(e){o.useModel.formData.value.page=e,u()},handleChangeFilter(e){o.useModel.formData.value={...o.useModel.formData.value,...e,pahe:1},o.useModel.listData.value=[],u()},handleToDetail(a){e.index.navigateTo({url:`/ME/instrument/log_show/index?id=${null==a?void 0:a.id}`})}};exports.method=d;
