import{C as h,u as x,D as B,E as n}from"./index-5a47c360-1785478469326v=1.0.0.js";import{u as D}from"./useGetCollage-5696f774-1785478469326v=1.0.0.js";import{u as F,a as O}from"./useGetClass-6f71fc48-1785478469326v=1.0.0.js";import{E}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{r as o,k as Y,c as z,Q as c,n as A}from"./vendor-46662d77-1785478469326v=1.0.0.js";import{g as T}from"./warnConfApi-c3a5d645-1785478469326v=1.0.0.js";const _=(b=!0)=>{const t=o([]),p=async s=>{const l=await h({page:1,size:10,courseName:s});l.code===0&&(t.value=l.data.listData.map(r=>({label:r.courseName,value:r.courseId})))},f=async(s,l,r)=>{l.loading=!0;let d=[];try{const u=await h({page:l.page,size:10,courseName:s,courseId:r});if(u.code===0)return d=u.data.listData.map(i=>({label:`${i.courseName}`,value:i.courseId})),[d,u.data.total]}catch{E.error("\u83B7\u53D6\u8BFE\u7A0B\u5217\u8868\u5931\u8D25")}finally{l.loading=!1}};return Y(()=>{b&&p("")}),{getCourseList:p,courseOptions:t,getPageCourseList:f}},$=(b=(t,p)=>{})=>{const t=x(),{collageList:p,getPageCollageList:f}=D(!0,!0),{academicYearOptions:s,getAcademicYearList:l,initYear:r}=B(!1),{classOptions:d,getClass:u,getPageClass:i,majorIdParam:j}=F(),{courseOptions:L,getPageCourseList:S}=_(),{majorIdsOptions:y,_getMajorManageList:W,getPageMajorList:w,collegeIdParam:N}=O(!0,{schoolUserType:"undergraduate"});let g=o(!1),I=o(!1);const R=o({}),U=async(e,a,V,M)=>{a.loading=!0;let v=[];try{const m=await T({page:a.page,size:10,name:e,...M});if(m.code===0)return v=m.data.listData.map(C=>({label:`${C.name}`,value:C.warnConfId})),[v,m.data.total]}catch{E.error("\u83B7\u53D6\u5B66\u9662\u5217\u8868\u5931\u8D25")}finally{a.loading=!1}};o(null);const k=z(()=>[{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:s.value,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:t.getEnumListByKey("semester"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{prop:"courseId",label:"\u8BFE\u7A0B",isFilterEnum:!0,enum:L.value,search:{render:({searchParam:e})=>c(n,{ref:"pageSelectRef",value:e.courseId,"onUpdate:value":a=>e.courseId=a,"remote-method":S},null)}},{prop:"warnConfId",label:"\u9884\u8B66\u7C7B\u578B",search:{render:({searchParam:e})=>c(n,{ref:"pageSelectRef",value:e.warnConfId,"onUpdate:value":a=>e.warnConfId=a,"remote-method":U},null)}},{prop:"collegeId",label:"\u5B66\u9662",search:{render:({searchParam:e})=>c(n,{ref:"pageSelectRef",placeholder:"\u5168\u90E8\u5B66\u9662",value:e.collegeId,"onUpdate:value":a=>e.collegeId=a,clearable:!0,"remote-method":f,onChange:a=>{a&&(N.value=a,g.value=!0),A(()=>{e.majorId=null,e.classId=null})}},null)}},{prop:"majorId",label:"\u4E13\u4E1A",isFilterEnum:!0,enum:y.value,search:{render:({searchParam:e})=>c(n,{ref:"majorPageSelectRef",placeholder:"\u5168\u90E8\u4E13\u4E1A",value:e.majorId,"onUpdate:value":a=>e.majorId=a,isReload:g.value,"onUpdate:isReload":a=>g.value=a,clearable:!0,disabled:!e.collegeId,"remote-method":w,onChange:a=>{a&&(I.value=!0,e.classId=null,j.value=a)}},null)}},{prop:"classId",label:"\u73ED\u7EA7",isFilterEnum:!0,enum:d.value,search:{render:({searchParam:e})=>c(n,{ref:"pageSelectRef",placeholder:"\u5168\u90E8\u73ED\u7EA7",value:e.classId,"onUpdate:value":a=>e.classId=a,isReload:I.value,"onUpdate:isReload":a=>I.value=a,disabled:!e.majorId,clearable:!0,"remote-method":i},null)}},{prop:"keyword",label:"\u641C\u7D22",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7\u6216\u59D3\u540D"}}]),G=o([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5DE5\u53F7",prop:"tsNo"},{label:"\u59D3\u540D",prop:"name"},{label:"\u5B66\u9662",prop:"collegeName"},{label:"\u4E13\u4E1A",prop:"majorName"},{label:"\u73ED\u7EA7",prop:"className"},{label:"\u4F53\u80B2\u8BFE\u7A0B",prop:"courseIdsCn"},{label:"\u4F53\u80B2\u8BFE\u6210\u7EE9",prop:"courseGradeStatus"},{label:"\u4F53\u6D4B\u6210\u7EE9",prop:"fitnessTestScoreCn"},{label:"\u8BFE\u5916\u953B\u70BC\u6B21\u6570",prop:"exerciseNum"},{label:"\u53C2\u52A0\u8D5B\u4E8B\u6B21\u6570",prop:"eventNum"},{label:"\u573A\u9986\u4F7F\u7528\u6B21\u6570",prop:"venueNum"},{label:"\u9884\u8B66",prop:"warnConfIdsCn"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:k,tableColumns:G,dataCallBack:e=>(e.listData.forEach(a=>{}),e),paramCallBack:e=>(e.collegeId==-1&&(e.collegeId=""),e),getAcademicYearList:l,initYear:r,innerSearchParam:R}},ee=$;export{ee as u};
