1 |
- import{d as W,P as Z,r as c,x as j,b as B,a4 as L,o as n,c as U,f as a,A as t,a as e,a5 as O,F as T,R as $,C as u,D as m,k as d,a9 as aa,V as ea,S as la,U as ta,I as ra,Q as oa,J as na,W as sa,X as _a,Y as ia,Z as ca,_ as ua,__tla as ma}from"./index-286756b9.js";import{_ as pa,__tla as da}from"./index-ed6c67a8.js";import{_ as fa,__tla as ya}from"./DictTag-f72b04ca.js";import{_ as ha,__tla as xa}from"./ContentWrap-83998678.js";import{a as ga,D as Y,__tla as wa}from"./dict-82dca549.js";import{d as E,__tla as ba}from"./formatTime-83e416ef.js";import{d as va}from"./download-20922b56.js";import{d as Sa,e as ka,f as Ca,__tla as Va}from"./index-1e2d6e2b.js";import Da,{__tla as Ua}from"./Demo03StudentForm-197ed3b0.js";import{u as Ta,__tla as Ya}from"./useMessage-084b1e70.js";import{__tla as Ea}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-d3d5a654.js";import{__tla as za}from"./Dialog-4c2de357.js";import{__tla as Ma}from"./Editor-514f76f8.js";import{__tla as Na}from"./Demo03CourseForm-a0dbfcf2.js";import{__tla as Pa}from"./Demo03GradeForm-926645af.js";let R,Xa=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{R=ua(W({name:"Demo03Student",__name:"index",setup(Fa){const x=Ta(),{t:z}=Z(),g=c(!0),v=c([]),S=c(0),r=j({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),k=c(),w=c(!1),p=async()=>{g.value=!0;try{const s=await Sa(r);v.value=s.list,S.value=s.total}finally{g.value=!1}},b=()=>{r.pageNo=1,p()},M=()=>{k.value.resetFields(),b()},C=c(),V=(s,o)=>{C.value.open(s,o)},N=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 B(()=>{p()}),(s,o)=>{const P=aa,f=ea,X=la,F=ta,H=ra,y=oa,i=na,q=sa,D=ha,_=_a,A=fa,G=ia,I=pa,h=L("hasPermi"),J=ca;return n(),U(T,null,[a(D,null,{default:t(()=>[a(q,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:t(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[a(P,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:O(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[a(F,{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),U(T,null,$(e(ga)(e(Y).SYSTEM_USER_SEX),l=>(n(),u(X,{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(H,{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"}),m(" \u641C\u7D22")]),_:1}),a(i,{onClick:M},{default:t(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),m(" \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"}),m(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo03-student:create"]]]),d((n(),u(i,{type:"success",plain:"",onClick:N,loading:e(w)},{default:t(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo03-student:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(D,null,{default:t(()=>[d((n(),u(G,{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(A,{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(E),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(E),width:"180px"},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[d((n(),u(i,{link:"",type:"primary",onClick:K=>V("update",l.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:update"]]]),d((n(),u(i,{link:"",type:"danger",onClick:K=>(async Q=>{try{await x.delConfirm(),await ka(Q),x.success(z("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[J,e(g)]]),a(I,{total:e(S),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:p},null,8,["total","page","limit"])]),_:1}),a(Da,{ref_key:"formRef",ref:C,onSuccess:p},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/demo/demo03/normal/index.vue"]])});export{Xa as __tla,R as default};
|