import{U as S,f as l,r as U,ae as X,af as V,k as c,v as w}from"./index-deffec86.js";const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAzCAMAAAA3r39rAAABEVBMVEUAAADb29va2trY2Njj4+PX19fZ2dng4ODf39/X19fj4+Py8vLk5OTt7e3V1dX09PT29vbZ2dn39/fY2Nj29vbb29v29vb29vb19fX29vbV1dX39/f29vb29vb19fXc3NzZ2dnd3d3e3t7h4eH19fX19fXZ2dn19fX39/fb29vb29vW1tb19fXT09P29vbf39/29vb19fXU1NTn5+fc3NzR0dH29vb19fX19fX29vbT09P39/f19fX39/ff39/39/fX19f19fXr6+vo6OjZ2dnn5+fb29vj4+Pd3d319fXm5ubm5ubj4+PY2Nja2tr39/fk5OT6+vr09PTm5ub39/f8/Pzx8fHi4uLp6enr6+vt7e37h5dsAAAAUXRSTlMAQpJ0ChanzshV+g7jBMAS47ONcNMd++jew4heMx7LwJ5HI/j387y3rKx3XFNPSeSabWswKyjt2b2ikYWBc108mZZsaT339evZsKycgX5QGL+U+rOeAAAC3UlEQVRYw+WV13qiQBiGiaIbJaAgFgTsvZds7DG9l3UEBnP/F7IIDyYmgDB7uO8R4Mc7/8z8I5gdhabfgfMC5pHfvnrOZ0uu7vvt0TfN9vNHtuSvqLQnYzxNneNOAfy8ko679xEv2QHpHCGvqRfCrQ8fZF/xg6FGZYC79DUpN9MJvFJNd8a3is9VUxR8lZCb3BGdc7mBhRydP5waBulTzCWn9frw4KhB+ghzzQ0dLBxowAs6hHngjc7FERraHtK5IyKx7BWBeYK4zjYitg14TW9/9Gj001e4XfkVXwDzTGBKN0nL+kIU5W+3Qyb5uMNa53exdjtGUSHcaqSLu+7xr0+Og7Zdmw/uBbt3FwErYbD4AZQdQIH1U7t+hspXPopBa2EYyKsdsqx0G9bCxokif02CsLPQzEnw2Vr4vNYD7oUm8Im07IYndbWHa6FasVzEYXYjowmV7rR9c/SNm/a0CxAqNIzFh+MfPBSVFYLQVP5EKw9ZaDaH81NnIQK2wlwRrNCExZyVkEjfowrv04SFEI+doApPYriNUP7PhAN04cBKGPGjCy2+bYTQz4ZRdzn8py8Qe7bOrMaNbteowvXtiKvNOqZT5BmuDCSwRheq2utljuHF7V4se1Gg8Q9CRRdqRHtLHGtx2pUhhIqMJoSa0JBwLWycMHQS+EAUyhuo6AKNxBjT52s4obqSNfSUcfU5gH4jf8N4Iq0hkCRgEMUuk6ZQ2kBVAZ5RVLjRfEaNyUtsyET1SW9vVQjXnoFwY7oTUWaonRC+miztRvMuVLcLuKWUrPL6icHFDsMm9EkDFCT9vQTLdETzSJPikp/X2JKESImtzfmlSO7/NwitBTOpZlJl4IFyKlOdMIuWEMGsIN+FVn/Wq1W5DJuKJs/KpcRnU5kkSuWzZDTFZrhqrTfrt4R3EnOAxAkiIgodfjFnepPHcSbDjlJb+VaSGrFsZvw4uWTmC74jiBGCwL/b/gIpvWL/TS00iAAAAABJRU5ErkJggg==",Z=(A,P={},b,n,o=!0)=>{const v=S(),d=l(()=>v.companyAreaId),a=U({tableData:[],pageable:{page:1,size:10,count:0},searchParam:{},totalParam:{},baseParam:{},loading:!1}),f=l({get:()=>({page:a.pageable.page,size:a.pageable.size}),set:e=>{}}),r=async()=>{var e,g,p,i;(e=a.searchParam.is_branch)!=null&&e.length?a.searchParam.is_branch_match=a.searchParam.is_branch[1]:a.searchParam.is_branch_match="",(g=a.searchParam.activity)!=null&&g.length?a.searchParam.activity_type=a.searchParam.activity[1]:a.searchParam.activity_type="",(p=a.searchParam.people)!=null&&p.length?a.searchParam.people_type=a.searchParam.people[1]:a.searchParam.people_type="",(i=a.searchParam.type_tag)!=null&&i.length?a.searchParam.type_tag_id=a.searchParam.type_tag[1]:a.searchParam.type_tag_id="",a.searchParam.h_time?a.searchParam.hold_time=a.searchParam.h_time/1e3:a.searchParam.hold_time="";try{let t=Object.assign({},P,a.baseParam,a.searchParam,o?f.value:{});t=V(t),n&&typeof n=="function"&&(t=n(t)),a.totalParam=t;let{data:s}=await A({...t});b&&(s=b(s)),a.tableData=o?s.list:s;let{page:m,size:h,count:z}=s;m=Number(m),h=Number(h),o&&u({page:m,size:h,count:z})}catch(t){}},u=e=>{Object.assign(a.pageable,e)},y=()=>{a.pageable.page=1,r()},N=()=>{a.pageable.page=1,a.searchParam={},r()},T=e=>{a.pageable.page=1,a.pageable.size=e,r()},j=e=>{a.pageable.page=e,r()},E=()=>c("div",{class:"table-empty"},[c("slot",{name:"empty"},[c("img",{src:B,alt:"notData"},null),c("div",null,[w("\u6682\u65E0\u6570\u636E")])])]);return{BaseCompanyAreaId:d,...X(a),handleSizeChange:T,handleCurrentChange:j,getTableList:r,search:y,reset:N,renderEmpty:E,pageParam:f}};export{B as n,Z as u};
