index-be21b65a.js 5.6 KB

1
  1. import{d as j,B as A,r as c,g as O,z as Q,T as W,o as n,c as D,i as a,w as t,a as e,U as Z,F as U,C as $,k as u,l as p,D as d,Y as aa,I as ea,G as la,H as ta,q as ra,n as oa,s as na,J as sa,K as _a,L as ia,M as ca,_ as ua,__tla as pa}from"./index-2f799233.js";import{_ as ma,__tla as da}from"./index-e6cd813f.js";import{_ as fa,__tla as ya}from"./DictTag-ea4c6cc2.js";import{_ as ha,__tla as xa}from"./ContentWrap-9da801df.js";import{a as ga,D as Y,__tla as wa}from"./dict-20c916e2.js";import{d as z,__tla as ba}from"./formatTime-2157894c.js";import{d as va}from"./download-20922b56.js";import{d as ka,e as Sa,f as Ca,__tla as Ta}from"./index-7c244241.js";import Va,{__tla as Da}from"./Demo03StudentForm-aa4d0e8f.js";import{u as Ua,__tla as Ya}from"./useMessage-e567ad40.js";import{__tla as za}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Ea}from"./el-card-c64c83d1.js";import{__tla as Ma}from"./Dialog-6fd39e06.js";import{__tla as Ra}from"./Editor-3a97a075.js";import{__tla as Ha}from"./Demo03CourseForm-fc64903d.js";import{__tla as Na}from"./Demo03GradeForm-636547ee.js";let E,Fa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{E=ua(j({name:"Demo03Student",__name:"index",setup(Ka){const x=Ua(),{t:M}=A(),g=c(!0),v=c([]),k=c(0),r=O({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),S=c(),w=c(!1),m=async()=>{g.value=!0;try{const s=await ka(r);v.value=s.list,k.value=s.total}finally{g.value=!1}},b=()=>{r.pageNo=1,m()},R=()=>{S.value.resetFields(),b()},C=c(),T=(s,o)=>{C.value.open(s,o)},H=async()=>{try{await x.exportConfirm(),w.value=!0;const s=await Ca(r);va.excel(s,"\u5B66\u751F.xls")}catch{}finally{w.value=!1}};return Q(()=>{m()}),(s,o)=>{const N=aa,f=ea,F=la,K=ta,P=ra,y=oa,i=na,q=sa,V=ha,_=_a,G=fa,X=ia,B=ma,h=W("hasPermi"),I=ca;return n(),D(U,null,[a(V,null,{default:t(()=>[a(q,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:t(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[a(N,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:Z(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[a(K,{modelValue:e(r).sex,"onUpdate:modelValue":o[1]||(o[1]=l=>e(r).sex=l),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:t(()=>[(n(!0),D(U,null,$(e(ga)(e(Y).SYSTEM_USER_SEX),l=>(n(),u(F,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(P,{modelValue:e(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=l=>e(r).createTime=l),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(f,null,{default:t(()=>[a(i,{onClick:b},{default:t(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:R},{default:t(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),d((n(),u(i,{type:"primary",plain:"",onClick:o[3]||(o[3]=l=>T("create"))},{default:t(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),p(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo03-student:create"]]]),d((n(),u(i,{type:"success",plain:"",onClick:H,loading:e(w)},{default:t(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo03-student:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(V,null,{default:t(()=>[d((n(),u(X,{data:e(v),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[a(_,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(_,{label:"\u540D\u5B57",align:"center",prop:"name"}),a(_,{label:"\u6027\u522B",align:"center",prop:"sex"},{default:t(l=>[a(G,{type:e(Y).SYSTEM_USER_SEX,value:l.row.sex},null,8,["type","value"])]),_:1}),a(_,{label:"\u51FA\u751F\u65E5\u671F",align:"center",prop:"birthday",formatter:e(z),width:"180px"},null,8,["formatter"]),a(_,{label:"\u7B80\u4ECB",align:"center",prop:"description"}),a(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(z),width:"180px"},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[d((n(),u(i,{link:"",type:"primary",onClick:J=>T("update",l.row.id)},{default:t(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:update"]]]),d((n(),u(i,{link:"",type:"danger",onClick:J=>(async L=>{try{await x.delConfirm(),await Sa(L),x.success(M("common.delSuccess")),await m()}catch{}})(l.row.id)},{default:t(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,e(g)]]),a(B,{total:e(k),page:e(r).pageNo,"onUpdate:page":o[4]||(o[4]=l=>e(r).pageNo=l),limit:e(r).pageSize,"onUpdate:limit":o[5]||(o[5]=l=>e(r).pageSize=l),onPagination:m},null,8,["total","page","limit"])]),_:1}),a(Va,{ref_key:"formRef",ref:C,onSuccess:m},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/infra/demo/demo03/normal/index.vue"]])});export{Fa as __tla,E as default};