import{g as H}from"./exerciseApi-1babb46d-1782572373740v=1.0.0.js";import{u as S}from"./useGetCollage-8a09058b-1782572373740v=1.0.0.js";import{y as Z,c as k,r as o,m as I,al as n,z as L,I as V,J as i,R as r,u as e,k as N}from"./vendor-866bb149-1782572373740v=1.0.0.js";const G=Z({__name:"ExercisePeopleDialog",props:{visible:{type:Boolean,default:!1},title:{default:""},eventRecordRuleId:{default:""}},emits:["update:visible","update:value","submit","update:loading"],setup(b,{emit:v}){const p=b,g=v,c=k({get:()=>p.visible,set:t=>{g("update:visible",t)}}),{collageList:h}=S(),B=()=>{g("update:visible",!1)},d=o({}),F=o([{prop:"collegeId",label:"\u5B66\u9662",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u9662"},enum:h},{prop:"keyword",label:"\u5B66\u751F\u4FE1\u606F",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u751F\u59D3\u540D/\u5B66\u5DE5\u53F7"}}]),C=()=>{u()},z=()=>{d.value={},u()},_=o([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"collegeName",label:"\u5B66\u9662",minWidth:160},{prop:"name",label:"\u5B66\u751F\u59D3\u540D",minWidth:120},{prop:"tsNo",label:"\u5B66\u5DE5\u53F7",minWidth:140},{prop:"exerciseNum",label:"\u8BB0\u5F55\u8BFE\u5916\u953B\u70BC\u6B21\u6570",minWidth:180}]),f=o([]),m=o(!1),a=o({page:1,size:10,count:0}),x=t=>{a.value.size=t,u()},D=t=>{a.value.page=t,u()},u=async()=>{m.value=!0;const t=await H({page:a.value.page,size:a.value.size,eventRecordRuleId:p.eventRecordRuleId,...d.value});m.value=!1,f.value=t.data.listData,a.value.count=t.data.total};return I(()=>{u()}),(t,l)=>{const R=n("HZSearchForm"),y=n("HZProTable"),E=n("el-pagination"),P=n("HZPageLayout"),w=n("el-dialog");return L(),V(w,{modelValue:e(c),"onUpdate:modelValue":l[2]||(l[2]=s=>N(c)?c.value=s:null),width:"800px",title:p.title,"before-close":B},{footer:i(()=>l[3]||(l[3]=[])),default:i(()=>[r(P,{isCard:!1},{searchForm:i(()=>[r(R,{"search-param":e(d),columns:e(F),search:C,reset:z,searchCol:3},null,8,["search-param","columns"])]),pagination:i(()=>[r(E,{"current-page":e(a).page,"onUpdate:currentPage":l[0]||(l[0]=s=>e(a).page=s),"page-size":e(a).size,"onUpdate:pageSize":l[1]||(l[1]=s=>e(a).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(a).count,onSizeChange:x,onCurrentChange:D},null,8,["current-page","page-size","total"])]),default:i(()=>[r(y,{columns:e(_),data:e(f),isFlex:!1,loading:e(m),showColSet:!1},null,8,["columns","data","loading"])]),_:1})]),_:1},8,["modelValue","title"])}}});export{G as _};
