index-6df2994a.js 5.6 KB

1
  1. import{d as L,n as Q,r as c,f as A,B as O,P as W,o as n,c as D,i as a,w as t,a as e,Q as Z,F as T,k as $,l as u,j as p,C as d,U as aa,H as ea,D as la,G as ta,I as ra,v as oa,J as na,K as sa,L as _a,M as ia,N as ca,_ as ua,__tla as pa}from"./index-afaf388d.js";import{_ as ma,__tla as da}from"./index-89d02e79.js";import{_ as fa,__tla as ya}from"./DictTag-3a1a976c.js";import{_ as ha,__tla as xa}from"./ContentWrap-abe0694e.js";import{a as wa,D as E,__tla as ga}from"./dict-0449a0a1.js";import{d as N,__tla as va}from"./formatTime-42952e7f.js";import{d as ba}from"./download-20922b56.js";import{d as ka,e as Sa,f as Ca,__tla as Va}from"./index-4d6502c8.js";import Ua,{__tla as Da}from"./Demo03StudentForm-95c5db63.js";import{u as Ta,__tla as Ea}from"./useMessage-a290df31.js";import{__tla as Na}from"./index-0eed91e1.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-9c18d881.js";import{__tla as Ya}from"./Dialog-82c2009c.js";import{__tla as Ha}from"./Editor-7453cc9a.js";import{__tla as Ma}from"./Demo03CourseForm-c157589b.js";import{__tla as za}from"./Demo03GradeForm-8d755293.js";let R,Pa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{R=ua(L({name:"Demo03Student",__name:"index",setup(Xa){const x=Ta(),{t:Y}=Q(),w=c(!0),b=c([]),k=c(0),r=A({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),S=c(),g=c(!1),m=async()=>{w.value=!0;try{const s=await ka(r);b.value=s.list,k.value=s.total}finally{w.value=!1}},v=()=>{r.pageNo=1,m()},H=()=>{S.value.resetFields(),v()},C=c(),V=(s,o)=>{C.value.open(s,o)},M=async()=>{try{await x.exportConfirm(),g.value=!0;const s=await Ca(r);ba.excel(s,"\u5B66\u751F.xls")}catch{}finally{g.value=!1}};return O(()=>{m()}),(s,o)=>{const z=aa,f=ea,P=la,X=ta,F=ra,y=oa,i=na,G=sa,U=ha,_=_a,K=fa,j=ia,q=ma,h=W("hasPermi"),B=ca;return n(),D(T,null,[a(U,null,{default:t(()=>[a(G,{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(z,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:Z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[a(X,{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(T,null,$(e(wa)(e(E).SYSTEM_USER_SEX),l=>(n(),u(P,{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(F,{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:v},{default:t(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),a(i,{onClick:H},{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=>V("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:M,loading:e(g)},{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(U,null,{default:t(()=>[d((n(),u(j,{data:e(b),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(K,{type:e(E).SYSTEM_USER_SEX,value:l.row.sex},null,8,["type","value"])]),_:1}),a(_,{label:"\u51FA\u751F\u65E5\u671F",align:"center",prop:"birthday",formatter:e(N),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(N),width:"180px"},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[d((n(),u(i,{link:"",type:"primary",onClick:I=>V("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:I=>(async J=>{try{await x.delConfirm(),await Sa(J),x.success(Y("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"])),[[B,e(w)]]),a(q,{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(Ua,{ref_key:"formRef",ref:C,onSuccess:m},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/infra/demo/demo03/normal/index.vue"]])});export{Pa as __tla,R as default};