import{u as W}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as w,b as ee,a as ae,o as te,p as oe,_ as le}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{u as se}from"./useGetCollage-3b0599a7-1782468512657v=1.0.0.js";import{k as h,E as x}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{r as _,x as D,k as re,X as B,al as l,y as M,H as E,I as a,M as p,O as F,u as e,Q as o,L as d,l as ne,A as ue}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";const me=()=>{const k=w();se();const f=_([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:k.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}}]),g=_([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearName"},{label:"\u5B66\u671F",prop:"semesterName"},{label:"\u5468\u671F\u65F6\u95F4",prop:"semesterStartTime",render:({row:n})=>`${h(n.semesterStartTime).format("YYYY-MM-DD")}~${h(n.semesterEndTime).format("YYYY-MM-DD")}`},{label:"\u6700\u540E\u4FEE\u6539\u4EBA",prop:"updater"},{label:"\u6700\u540E\u4FEE\u6539\u65F6\u95F4",prop:"updateTime"},{label:"\u5907\u6CE8",prop:"remark"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:f,tableColumns:g,dataCallBack:n=>n,paramCallBack:n=>n}},ie=me,pe={class:"dialog-footer"},ce=D({name:"staffManageIndex"}),de=D({...ce,setup(k){ee();const f=ae();w();const{tableColumns:g,columns:y,dataCallBack:T,paramCallBack:n}=ie(),{tableData:H,pageable:i,baseParam:N,searchParam:V,totalParam:_e,pageParam:fe,handleSizeChange:z,handleCurrentChange:P,getTableList:Y,search:R,reset:O,loading:Z}=W(oe,T,n);re(async()=>{N.value.tsManageType="biz",await Y()});const u=_(!1),S=_(),s=B({semesterName:"",schoolYearName:"",semesterTime:[]}),L=B({semesterTime:[{required:!0,message:"\u8BF7\u9009\u62E9\u65F6\u95F4",trigger:"blur"}]}),A=()=>{},I=()=>{S.value.validate(async m=>{if(m){const t={...s,semesterStartTime:s.semesterTime[0],semesterEndTime:h(s.semesterTime[1]).endOf("day").format("YYYY-MM-DD HH:mm:ss")},c=await te(t);if(c.code!==0){x.error(c.msg);return}u.value=!1,await Y(),x.success("\u66F4\u65B0\u6210\u529F")}})},U=m=>{const t=JSON.parse(JSON.stringify(m));t.semesterTime=[m.semesterStartTime,m.semesterEndTime],Object.assign(s,t),u.value=!0};return(m,t)=>{const c=l("HZSearchForm"),$=l("el-link"),j=l("HZProTable"),J=l("el-pagination"),b=l("el-form-item"),C=l("el-col"),v=l("el-row"),q=l("el-date-picker"),G=l("el-form"),Q=l("el-button"),X=l("el-dialog"),K=l("HZPageLayout");return M(),E(K,null,{title:a(()=>[p(F(e(f).meta.title),1)]),searchForm:a(()=>[o(c,{"search-param":e(V),columns:e(y),search:e(R),reset:e(O)},null,8,["search-param","columns","search","reset"])]),pagination:a(()=>[o(J,{"current-page":e(i).page,"onUpdate:currentPage":t[0]||(t[0]=r=>e(i).page=r),"page-size":e(i).size,"onUpdate:pageSize":t[1]||(t[1]=r=>e(i).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(i).count,onSizeChange:e(z),onCurrentChange:e(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:a(()=>[d(" \u8868\u5355\u7F16\u8F91\u5F39\u7A97 "),e(u)?(M(),E(X,{key:0,modelValue:e(u),"onUpdate:modelValue":t[3]||(t[3]=r=>ne(u)?u.value=r:null),title:"\u7F16\u8F91",width:"60vw",onClose:A},{footer:a(()=>[ue("div",pe,[o(Q,{onClick:I},{default:a(()=>t[6]||(t[6]=[p("\u786E\u5B9A",-1)])),_:1,__:[6]})])]),default:a(()=>[o(G,{ref_key:"formRef",ref:S,model:e(s),rules:e(L),"label-width":"120px"},{default:a(()=>[o(v,null,{default:a(()=>[o(C,{span:12},{default:a(()=>[o(b,{label:"\u5B66\u5E74",prop:"name"},{default:a(()=>[p(F(e(s).schoolYearName),1)]),_:1})]),_:1}),o(C,{span:12},{default:a(()=>[o(b,{label:"\u5B66\u671F",prop:"name"},{default:a(()=>[p(F(e(s).semesterName),1)]),_:1})]),_:1})]),_:1}),o(v,null,{default:a(()=>[o(C,null,{default:a(()=>[o(b,{label:"\u65F6\u95F4",prop:"semesterTime"},{default:a(()=>[d("\u65F6\u95F4\u8303\u56F4  "),o(q,{modelValue:e(s).semesterTime,"onUpdate:modelValue":t[2]||(t[2]=r=>e(s).semesterTime=r),type:"daterange","range-separator":"\u81F3","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])):d("v-if",!0)]),default:a(()=>[o(j,{columns:e(g),data:e(H),isFlex:!1,loading:e(Z)},{tableHeader:a(()=>t[4]||(t[4]=[])),operation:a(r=>[d(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),o($,{type:"primary",onClick:ge=>U(r.row)},{default:a(()=>t[5]||(t[5]=[p(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const Te=le(de,[["__scopeId","data-v-e68692eb"]]);export{Te as default};
