import{d as U,n as j,r as c,f as F,aP as M,P as T,o as i,c as q,i as a,w as o,C as p,l as u,j as h,a as e,F as A,v as E,J as H,L as O,M as R,N as B,_ as K,__tla as Q}from"./index-2c56227b.js";import{_ as V,__tla as W}from"./ContentWrap-f1610353.js";import{_ as X,__tla as Y}from"./index-8106be8e.js";import{d as Z,__tla as $}from"./formatTime-7f0ec2bf.js";import{k as aa,l as ta,__tla as ea}from"./index-e52e4373.js";import ra,{__tla as la}from"./Demo03GradeForm-98b8c270.js";import{u as na,__tla as oa}from"./useMessage-96878a4a.js";import{__tla as sa}from"./el-card-9c148b4f.js";import{__tla as ia}from"./index-d17bd909.js";import{__tla as _a}from"./Dialog-1050d437.js";let I,ca=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}catch{}})()]).then(async()=>{I=K(U({__name:"Demo03GradeList",props:{studentId:{type:null,required:!0}},setup(P){const{t:N}=j(),d=na(),m=P,f=c(!1),v=c([]),w=c(0),r=F({pageNo:1,pageSize:10,studentId:void 0});M(()=>m.studentId,l=>{r.studentId=l,S()},{immediate:!1});const _=async()=>{f.value=!0;try{const l=await aa(r);v.value=l.list,w.value=l.total}finally{f.value=!1}},S=()=>{r.pageNo=1,_()},k=c(),C=(l,t)=>{m.studentId?k.value.open(l,t,m.studentId):d.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B66\u751F")};return(l,t)=>{const b=E,y=H,s=O,x=R,z=X,G=V,g=T("hasPermi"),L=B;return i(),q(A,null,[a(G,null,{default:o(()=>[p((i(),u(y,{type:"primary",plain:"",onClick:t[0]||(t[0]=n=>C("create"))},{default:o(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),h(" \u65B0\u589E ")]),_:1})),[[g,["infra:demo03-student:create"]]]),p((i(),u(x,{data:e(v),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[a(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(s,{label:"\u540D\u5B57",align:"center",prop:"name"}),a(s,{label:"\u73ED\u4E3B\u4EFB",align:"center",prop:"teacher"}),a(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(Z),width:"180px"},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center"},{default:o(n=>[p((i(),u(y,{link:"",type:"primary",onClick:D=>C("update",n.row.id)},{default:o(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:update"]]]),p((i(),u(y,{link:"",type:"danger",onClick:D=>(async J=>{try{await d.delConfirm(),await ta(J),d.success(N("common.delSuccess")),await _()}catch{}})(n.row.id)},{default:o(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,e(f)]]),a(z,{total:e(w),page:e(r).pageNo,"onUpdate:page":t[1]||(t[1]=n=>e(r).pageNo=n),limit:e(r).pageSize,"onUpdate:limit":t[2]||(t[2]=n=>e(r).pageSize=n),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(ra,{ref_key:"formRef",ref:k,onSuccess:_},null,512)],64)}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/infra/demo/demo03/erp/components/Demo03GradeList.vue"]])});export{ca as __tla,I as default};
