"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"),l=require("../../gen/Apis.js"),a=require("./model.js"),u=e.useWeAppAuthStore(),s=()=>{var e,u;o.getApiLoading(l.Apis.Company.CompanyEmployeeBacklogs.List,null==(u=null==(e=a.useModel)?void 0:e.formData)?void 0:u.value).then(e=>{var o,l;a.useModel.listData.value=[...null==(l=null==(o=a.useModel)?void 0:o.listData)?void 0:l.value,...null==e?void 0:e.data],a.useModel.metaData.value=null==e?void 0:e.meta,console.log(a.useModel.metaData.value,"useModel.metaData.value")})},t={getCountGridHouse(){o.getApiLoading(l.Apis.Grid.Grids.CountGridHouse,{}).then(e=>{a.useModel.userData.value=e.data,console.log(e)})},getCompanyEmployeeBacklogs:s,loadMore(e){a.useModel.formData.value.page=null==e?void 0:e.page,s()},async uploadMedia(e){let o=await l.Apis.Customer.CustomerMoments.UploadMedia(e);return null==o?void 0:o.data},getIndexCount(){o.getApiLoading(l.Apis.Count.CommonCount.IndexCount,{}).then(e=>{a.useModel.IndexCount.value=e.data,console.log(e)})},getPageRole(){var e,o,l;a.useModel.loadingPage.value=!0,a.useModel.pageRole.value=(null==(l=null==(o=null==(e=null==u?void 0:u.data)?void 0:e.permissions)?void 0:o.find(e=>"home"===(null==e?void 0:e.key)))?void 0:l.children)||[],console.log(a.useModel.pageRole.value,"useModel.pageRole.value")}};exports.method=t;
