1 |
- import{d as j,h as q,r as c,e as F,L as H,Q as T,o as i,c as Q,f as a,w as s,x as p,v as m,m as h,a as e,F as R,n as A,C as B,G as E,H as J,I as K,_ as M,__tla as O}from"./index-430b3151.js";import{_ as V,__tla as W}from"./ContentWrap-60842994.js";import{_ as X,__tla as Y}from"./index-c425c88f.js";import{d as Z,__tla as $}from"./formatTime-00eecbb7.js";import{k as aa,l as ta,__tla as ea}from"./index-1f50fc45.js";import ra,{__tla as la}from"./Demo03GradeForm-8676072c.js";import{u as na,__tla as sa}from"./useMessage-d226ba89.js";import{__tla as oa}from"./el-card-dee5b36b.js";import{__tla as ia}from"./index-555139e7.js";import{__tla as _a}from"./Dialog-cd42c639.js";let C,ca=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}catch{}})()]).then(async()=>{C=M(j({__name:"Demo03GradeList",props:{studentId:{type:null,required:!0}},setup(x){const{t:z}=q(),d=na(),u=x,f=c(!1),w=c([]),v=c(0),r=F({pageNo:1,pageSize:10,studentId:void 0});H(()=>u.studentId,l=>{r.studentId=l,S()},{immediate:!1});const _=async()=>{f.value=!0;try{const l=await aa(r);w.value=l.list,v.value=l.total}finally{f.value=!1}},S=()=>{r.pageNo=1,_()},k=c(),I=(l,t)=>{u.studentId?k.value.open(l,t,u.studentId):d.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B66\u751F")};return(l,t)=>{const b=A,y=B,o=E,D=J,N=X,P=V,g=T("hasPermi"),G=K;return i(),Q(R,null,[a(P,null,{default:s(()=>[p((i(),m(y,{type:"primary",plain:"",onClick:t[0]||(t[0]=n=>I("create"))},{default:s(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),h(" \u65B0\u589E ")]),_:1})),[[g,["infra:demo03-student:create"]]]),p((i(),m(D,{data:e(w),stripe:!0,"show-overflow-tooltip":!0},{default:s(()=>[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(Z),width:"180px"},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:s(n=>[p((i(),m(y,{link:"",type:"primary",onClick:L=>I("update",n.row.id)},{default:s(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:update"]]]),p((i(),m(y,{link:"",type:"danger",onClick:L=>(async U=>{try{await d.delConfirm(),await ta(U),d.success(z("common.delSuccess")),await _()}catch{}})(n.row.id)},{default:s(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,e(f)]]),a(N,{total:e(v),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","D:/zx/mall-newfeifan-zx-admin/src/views/infra/demo/demo03/erp/components/Demo03GradeList.vue"]])});export{ca as __tla,C as default};
|