import{_ as S,r as t,C as k,D as w,e as u,E as B,o,c as v,G as g,J as f,h as P,F as D,I,f as b,H as L,i as s,B as E,v as F}from"./index-C1_1_QXk.js";import{q as U,s as $}from"./salarySlip-BbpYT7jj.js";const j={class:"app-container"},A=E({name:"Post"}),G=Object.assign(A,{setup(H){const{proxy:c}=F(),p=t([]),d=t([]);t(!1);const i=t(!0);t(!0);const r=t(0);t("");const h=k({form:{id:c.$route.query.id},queryParams:{page:1,limit:10,id:c.$route.query.id}}),{queryParams:n,form:y,rules:J}=w(h);U({salaryrecordid:y.value.id}).then(l=>{p.value=[...l.data.map(e=>({index:e.id,prop:e.column_code,label:e.column_name}))],m()});function m(){i.value=!0,$(n.value).then(l=>{d.value=l.data,r.value=l.count,i.value=!1})}return(l,e)=>{const _=u("el-table-column"),C=u("el-table"),x=u("pagination"),q=B("loading");return o(),v("div",j,[g((o(),f(C,{data:d.value,onSelectionChange:l.handleSelectionChange},{default:P(()=>[(o(!0),v(D,null,I(p.value,(a,N)=>(o(),f(_,{key:a.index,prop:a.prop,label:a.label},null,8,["prop","label"]))),128)),b(_,{label:"发薪时间",align:"left",prop:"paid_time",width:"160px"})]),_:1},8,["data","onSelectionChange"])),[[q,i.value]]),g(b(x,{total:r.value,page:s(n).page,"onUpdate:page":e[0]||(e[0]=a=>s(n).page=a),limit:s(n).limit,"onUpdate:limit":e[1]||(e[1]=a=>s(n).limit=a),onPagination:m},null,8,["total","page","limit"]),[[L,r.value>0]])])}}}),T=S(G,[["__scopeId","data-v-d5f94e0c"]]);export{T as default};
