import{d as L,i as U,r as c,f as M,M as T,S as j,o as _,c as H,g as t,w as o,y as p,x as u,q as h,a as e,F as J,k as R,D as A,H as B,I as E,J as K,_ as O,__tla as Q}from"./index-7d5b26d3.js";import{_ as V,__tla as W}from"./ContentWrap-07931e94.js";import{_ as X,__tla as Y}from"./index-966eea36.js";import{d as Z,__tla as $}from"./formatTime-5152c108.js";import{k as tt,l as at,__tla as et}from"./index-22f976fe.js";import rt,{__tla as lt}from"./Demo03GradeForm-31cc2f23.js";import{u as st,__tla as ot}from"./useMessage-c81eaa5b.js";import{__tla as nt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-831d711e.js";import{__tla as _t}from"./el-card-698191e2.js";import{__tla as it}from"./index-cdb8fe72.js";import{__tla as ct}from"./Dialog-2be588df.js";let S,pt=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ct}catch{}})()]).then(async()=>{S=O(L({__name:"Demo03GradeList",props:{studentId:{type:null,required:!0}},setup(b){const{t:x}=U(),m=st(),d=b,f=c(!1),w=c([]),k=c(0),r=M({pageNo:1,pageSize:10,studentId:void 0});T(()=>d.studentId,l=>{r.studentId=l,z()},{immediate:!1});const i=async()=>{f.value=!0;try{const l=await tt(r);w.value=l.list,k.value=l.total}finally{f.value=!1}},z=()=>{r.pageNo=1,i()},v=c(),I=(l,a)=>{d.studentId?v.value.open(l,a,d.studentId):m.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B66\u751F")};return(l,a)=>{const C=R,y=A,n=B,D=E,N=X,P=V,g=j("hasPermi"),q=K;return _(),H(J,null,[t(P,null,{default:o(()=>[p((_(),u(y,{type:"primary",plain:"",onClick:a[0]||(a[0]=s=>I("create"))},{default:o(()=>[t(C,{icon:"ep:plus",class:"mr-5px"}),h(" \u65B0\u589E ")]),_:1})),[[g,["infra:demo03-student:create"]]]),p((_(),u(D,{data:e(w),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[t(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),t(n,{label:"\u540D\u5B57",align:"center",prop:"name"}),t(n,{label:"\u73ED\u4E3B\u4EFB",align:"center",prop:"teacher"}),t(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(Z),width:"180px"},null,8,["formatter"]),t(n,{label:"\u64CD\u4F5C",align:"center"},{default:o(s=>[p((_(),u(y,{link:"",type:"primary",onClick:F=>I("update",s.row.id)},{default:o(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:update"]]]),p((_(),u(y,{link:"",type:"danger",onClick:F=>(async G=>{try{await m.delConfirm(),await at(G),m.success(x("common.delSuccess")),await i()}catch{}})(s.row.id)},{default:o(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,e(f)]]),t(N,{total:e(k),page:e(r).pageNo,"onUpdate:page":a[1]||(a[1]=s=>e(r).pageNo=s),limit:e(r).pageSize,"onUpdate:limit":a[2]||(a[2]=s=>e(r).pageSize=s),onPagination:i},null,8,["total","page","limit"])]),_:1}),t(rt,{ref_key:"formRef",ref:v,onSuccess:i},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/infra/demo/demo03/erp/components/Demo03GradeList.vue"]])});export{pt as __tla,S as default};
