import{d as U,h as j,r as c,e as F,L as T,R as q,o as _,c as H,f as t,w as n,x as p,v as u,n as g,a as e,F as W,j as A,C as B,G as E,H as J,I as K,_ as M,__tla as O}from"./index-04f8d540.js";import{_ as Q,__tla as V}from"./ContentWrap-0137c911.js";import{_ as X,__tla as Y}from"./index-bf28d6af.js";import{d as Z,__tla as $}from"./formatTime-81f0c591.js";import{k as tt,l as at,__tla as et}from"./index-ba72cea5.js";import rt,{__tla as lt}from"./Demo03GradeForm-8e64caca.js";import{u as st,__tla as nt}from"./useMessage-9c37e840.js";import{__tla as ot}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d7df3a9f.js";import{__tla as _t}from"./el-card-3a265a8d.js";import{__tla as it}from"./index-1cf9f52b.js";import{__tla as ct}from"./Dialog-9afb5ba5.js";let C,pt=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ct}catch{}})()]).then(async()=>{C=M(U({__name:"Demo03GradeList",props:{studentId:{type:null,required:!0}},setup(b){const{t:x}=j(),m=st(),d=b,f=c(!1),w=c([]),v=c(0),r=F({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,v.value=l.total}finally{f.value=!1}},z=()=>{r.pageNo=1,i()},k=c(),I=(l,a)=>{d.studentId?k.value.open(l,a,d.studentId):m.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B66\u751F")};return(l,a)=>{const S=A,y=B,o=E,D=J,N=X,P=Q,h=q("hasPermi"),G=K;return _(),H(W,null,[t(P,null,{default:n(()=>[p((_(),u(y,{type:"primary",plain:"",onClick:a[0]||(a[0]=s=>I("create"))},{default:n(()=>[t(S,{icon:"ep:plus",class:"mr-5px"}),g(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo03-student:create"]]]),p((_(),u(D,{data:e(w),stripe:!0,"show-overflow-tooltip":!0},{default:n(()=>[t(o,{label:"\u7F16\u53F7",align:"center",prop:"id"}),t(o,{label:"\u540D\u5B57",align:"center",prop:"name"}),t(o,{label:"\u73ED\u4E3B\u4EFB",align:"center",prop:"teacher"}),t(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(Z),width:"180px"},null,8,["formatter"]),t(o,{label:"\u64CD\u4F5C",align:"center"},{default:n(s=>[p((_(),u(y,{link:"",type:"primary",onClick:L=>I("update",s.row.id)},{default:n(()=>[g(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:update"]]]),p((_(),u(y,{link:"",type:"danger",onClick:L=>(async R=>{try{await m.delConfirm(),await at(R),m.success(x("common.delSuccess")),await i()}catch{}})(s.row.id)},{default:n(()=>[g(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,e(f)]]),t(N,{total:e(v),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:k,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,C as default};
