import{u as T}from"./useTable-967985a7-1785478469326v=1.0.0.js";import{u as D}from"./useHandleData-0fff5109-1785478469326v=1.0.0.js";import{u as I,c as L,_ as N}from"./index-5a47c360-1785478469326v=1.0.0.js";import{r as _,x as f,k as S,al as r,y as V,H as Z,I as t,Q as s,u as a,M as p,L as $}from"./vendor-46662d77-1785478469326v=1.0.0.js";import{b as A,d as M}from"./exerciseConfApi-049fdfec-1785478469326v=1.0.0.js";import"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";const U=()=>{I();const d=_([]),u=_([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearName"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u6EE1\u5206\u6B21\u6570",prop:"fullNum"},{label:"\u6700\u540E\u4FEE\u6539\u65F6\u95F4",prop:"updateTime"},{label:"\u4FEE\u6539\u4EBA",prop:"updater"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:d,tableColumns:u,dataCallBack:n=>(n.listData.forEach(m=>{}),n),paramCallBack:n=>n}},q=U,Q=f({name:"exerciseConfIndex"}),R=f({...Q,setup(d){const u=L(),{tableColumns:c,columns:x,dataCallBack:n,paramCallBack:m}=q(),{tableData:b,pageable:l,baseParam:Y,searchParam:j,totalParam:G,pageParam:J,handleSizeChange:k,handleCurrentChange:B,getTableList:C,search:K,reset:O,loading:y}=T(A,n,m);S(async()=>{await C()});const E=()=>{u.push({name:"exerciseConfAdd"})},z=i=>{u.push({name:"exerciseConfEdit",query:{id:i.exerciseConfId}})},h=async i=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await D(M,{id:i.exerciseConfId},e),C()};return(i,e)=>{const w=r("el-button"),g=r("el-link"),P=r("HZProTable"),v=r("el-pagination"),F=r("HZPageLayout");return V(),Z(F,{title:"\u8BFE\u5916\u953B\u70BC\u8BB0\u5F55\u8BBE\u7F6E"},{pagination:t(()=>[s(v,{"current-page":a(l).page,"onUpdate:currentPage":e[0]||(e[0]=o=>a(l).page=o),"page-size":a(l).size,"onUpdate:pageSize":e[1]||(e[1]=o=>a(l).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(l).count,onSizeChange:a(k),onCurrentChange:a(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[6]||(e[6]=[])),default:t(()=>[s(P,{columns:a(c),data:a(b),isFlex:!1,loading:a(y)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[s(w,{type:"primary",onClick:E},{default:t(()=>e[3]||(e[3]=[p(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:t(o=>[$(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),s(g,{type:"primary",onClick:H=>z(o.row)},{default:t(()=>e[4]||(e[4]=[p(" \u7F16\u8F91 ",-1)])),_:2,__:[4]},1032,["onClick"]),s(g,{type:"danger",onClick:H=>h(o.row)},{default:t(()=>e[5]||(e[5]=[p(" \u5220\u9664 ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const oe=N(R,[["__scopeId","data-v-a90e1b87"]]);export{oe as default};
