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