"use strict";require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/apiLoading.js"),a=require("../../gen/Apis.js"),t=require("./model.js");e.useWeAppAuthStore();const u=()=>{var e,u;o.getApiLoading(a.Apis.Company.CompanyEmployeeBacklogs.List,null==(u=null==(e=t.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{var o,a;t.useModel.listData.value=[...null==(a=null==(o=t.useModel)?void 0:o.listData)?void 0:a.value,...null==e?void 0:e.data],t.useModel.metaData.value=null==e?void 0:e.meta,console.log(t.useModel.metaData.value,"useModel.metaData.value")}))},l={getCountGridHouse(){o.getApiLoading(a.Apis.Grid.Grids.CountGridHouse,{}).then((e=>{t.useModel.userData.value=e.data,console.log(e)}))},getCompanyEmployeeBacklogs:u,loadMore(e){t.useModel.formData.value.page=null==e?void 0:e.page,u()},async uploadMedia(e){let o=await a.Apis.Customer.CustomerMoments.UploadMedia(e);return null==o?void 0:o.data},getIndexCount(){o.getApiLoading(a.Apis.Count.CommonCount.IndexCount,{}).then((e=>{t.useModel.IndexCount.value=e.data,console.log(e)}))}};exports.method=l;
