1 |
- import{d as j,h as q,r as c,e as F,L as T,Q as E,o as i,c as H,f as a,w as s,x as p,v as d,n as h,a as e,F as Q,j as R,C as A,G as B,H as J,I as K,_ as M,__tla as O}from"./index-e3afde76.js";import{_ as V,__tla as W}from"./ContentWrap-5f2f4872.js";import{_ as X,__tla as Y}from"./index-51c17e69.js";import{d as Z,__tla as $}from"./formatTime-cee700cd.js";import{k as aa,l as ta,__tla as ea}from"./index-9a8475d2.js";import ra,{__tla as la}from"./Demo03GradeForm-7385da35.js";import{u as na,__tla as sa}from"./useMessage-0b1b25bd.js";import{__tla as oa}from"./el-card-6198c22a.js";import{__tla as ia}from"./index-2d20a7ff.js";import{__tla as _a}from"./Dialog-c20523c4.js";let x,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()=>{x=M(j({__name:"Demo03GradeList",props:{studentId:{type:null,required:!0}},setup(C){const{t:z}=q(),m=na(),u=C,f=c(!1),w=c([]),v=c(0),r=F({pageNo:1,pageSize:10,studentId:void 0});T(()=>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):m.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B66\u751F")};return(l,t)=>{const b=R,y=A,o=B,D=J,N=X,P=V,g=E("hasPermi"),G=K;return i(),H(Q,null,[a(P,null,{default:s(()=>[p((i(),d(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(),d(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(),d(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(),d(y,{link:"",type:"danger",onClick:L=>(async U=>{try{await m.delConfirm(),await ta(U),m.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,x as default};
|