import{r as _,x as D,k as W,X as x,al as l,y as B,H as M,I as a,M as p,O as h,u as e,Q as o,L as d,l as ee,A as ae}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as te}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as E,b as oe,a as le,l as se,m as ne,_ as re}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{u as ue}from"./useGetCollage-bc6bc4bb-1783405707921v=1.0.0.js";import{l as F,E as w}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";const me=()=>{const y=E();ue();const f=_([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:y.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:r})=>`${F(r.semesterStartTime).format("YYYY-MM-DD")}~${F(r.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:r=>r,paramCallBack:r=>r}},ie=me,pe={class:"dialog-footer"},ce=D({name:"staffManageIndex"}),de=D({...ce,setup(y){oe();const f=le();E();const{tableColumns:g,columns:k,dataCallBack:T,paramCallBack:r}=ie(),{tableData:z,pageable:i,baseParam:H,searchParam:N,totalParam:_e,pageParam:fe,handleSizeChange:V,handleCurrentChange:P,getTableList:Y,search:R,reset:Z,loading:O}=te(ne,T,r);W(async()=>{H.value.tsManageType="biz",await Y()});const u=_(!1),v=_(),s=x({semesterName:"",schoolYearName:"",semesterTime:[]}),L=x({semesterTime:[{required:!0,message:"\u8BF7\u9009\u62E9\u65F6\u95F4",trigger:"blur"}]}),A=()=>{},I=()=>{v.value.validate(async m=>{if(m){const t={...s,semesterStartTime:s.semesterTime[0],semesterEndTime:F(s.semesterTime[1]).endOf("day").format("YYYY-MM-DD HH:mm:ss")},c=await se(t);if(c.code!==0){w.error(c.msg);return}u.value=!1,await Y(),w.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"),S=l("el-row"),q=l("el-date-picker"),G=l("el-form"),Q=l("el-button"),X=l("el-dialog"),K=l("HZPageLayout");return B(),M(K,null,{title:a(()=>[p(h(e(f).meta.title),1)]),searchForm:a(()=>[o(c,{"search-param":e(N),columns:e(k),search:e(R),reset:e(Z)},null,8,["search-param","columns","search","reset"])]),pagination:a(()=>[o(J,{"current-page":e(i).page,"onUpdate:currentPage":t[0]||(t[0]=n=>e(i).page=n),"page-size":e(i).size,"onUpdate:pageSize":t[1]||(t[1]=n=>e(i).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(i).count,onSizeChange:e(V),onCurrentChange:e(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:a(()=>[d(" \u8868\u5355\u7F16\u8F91\u5F39\u7A97 "),e(u)?(B(),M(X,{key:0,modelValue:e(u),"onUpdate:modelValue":t[3]||(t[3]=n=>ee(u)?u.value=n:null),title:"\u7F16\u8F91",width:"60vw",onClose:A},{footer:a(()=>[ae("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:v,model:e(s),rules:e(L),"label-width":"120px"},{default:a(()=>[o(S,null,{default:a(()=>[o(C,{span:12},{default:a(()=>[o(b,{label:"\u5B66\u5E74",prop:"name"},{default:a(()=>[p(h(e(s).schoolYearName),1)]),_:1})]),_:1}),o(C,{span:12},{default:a(()=>[o(b,{label:"\u5B66\u671F",prop:"name"},{default:a(()=>[p(h(e(s).semesterName),1)]),_:1})]),_:1})]),_:1}),o(S,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]=n=>e(s).semesterTime=n),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(z),isFlex:!1,loading:e(O)},{tableHeader:a(()=>t[4]||(t[4]=[])),operation:a(n=>[d(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),o($,{type:"primary",onClick:ge=>U(n.row)},{default:a(()=>t[5]||(t[5]=[p(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const Te=re(de,[["__scopeId","data-v-89a23629"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/teachingCycle/teachingCycle/index.vue"]]);export{Te as default};
