index-5ea78ebb.js 5.6 KB

1
  1. import{d as j,h as L,r as c,e as O,q as Q,M as W,o as n,c as T,f as e,w as l,a,N as Z,F as U,v as $,x as u,y as p,z as d,R as ee,C as ae,A as te,B as le,D as re,j as oe,G as ne,H as se,I as _e,J as ie,K as ce,_ as ue,__tla as pe}from"./index-8dc1e40a.js";import{_ as me,__tla as de}from"./index-64aeaa78.js";import{_ as fe,__tla as ye}from"./DictTag-85aade2b.js";import{_ as he,__tla as xe}from"./ContentWrap-0aca5216.js";import{a as we,D as Y,__tla as ge}from"./dict-f13a3c8f.js";import{d as z,__tla as ve}from"./formatTime-8a155b2e.js";import{d as be}from"./download-20922b56.js";import{d as ke,e as Se,f as Ce,__tla as Ve}from"./index-0c3afd68.js";import De,{__tla as Te}from"./Demo03StudentForm-31ab7349.js";import{u as Ue,__tla as Ye}from"./useMessage-7a27dd80.js";import{__tla as ze}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as Ee}from"./el-card-18df90f0.js";import{__tla as Re}from"./Dialog-41802231.js";import{__tla as He}from"./Editor-78efff00.js";import{__tla as Me}from"./Demo03CourseForm-898a9442.js";import{__tla as Ne}from"./Demo03GradeForm-c3b8e5d5.js";let E,Xe=Promise.all([(()=>{try{return pe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{E=ue(j({name:"Demo03Student",__name:"index",setup(Fe){const x=Ue(),{t:R}=L(),w=c(!0),b=c([]),k=c(0),r=O({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 ke(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 Ce(r);be.excel(s,"\u5B66\u751F.xls")}catch{}finally{g.value=!1}};return Q(()=>{m()}),(s,o)=>{const N=ee,f=ae,X=te,F=le,P=re,y=oe,i=ne,q=se,D=he,_=_e,G=fe,K=ie,A=me,h=W("hasPermi"),B=ce;return n(),T(U,null,[e(D,null,{default:l(()=>[e(q,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:l(()=>[e(f,{label:"\u540D\u5B57",prop:"name"},{default:l(()=>[e(N,{modelValue:a(r).name,"onUpdate:modelValue":o[0]||(o[0]=t=>a(r).name=t),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:Z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u6027\u522B",prop:"sex"},{default:l(()=>[e(F,{modelValue:a(r).sex,"onUpdate:modelValue":o[1]||(o[1]=t=>a(r).sex=t),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),T(U,null,$(a(we)(a(Y).SYSTEM_USER_SEX),t=>(n(),u(X,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[e(P,{modelValue:a(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=t=>a(r).createTime=t),"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}),e(f,null,{default:l(()=>[e(i,{onClick:v},{default:l(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22")]),_:1}),e(i,{onClick:H},{default:l(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E")]),_:1}),d((n(),u(i,{type:"primary",plain:"",onClick:o[3]||(o[3]=t=>V("create"))},{default:l(()=>[e(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:a(g)},{default:l(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),p(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo03-student:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(D,null,{default:l(()=>[d((n(),u(K,{data:a(b),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[e(_,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(_,{label:"\u540D\u5B57",align:"center",prop:"name"}),e(_,{label:"\u6027\u522B",align:"center",prop:"sex"},{default:l(t=>[e(G,{type:a(Y).SYSTEM_USER_SEX,value:t.row.sex},null,8,["type","value"])]),_:1}),e(_,{label:"\u51FA\u751F\u65E5\u671F",align:"center",prop:"birthday",formatter:a(z),width:"180px"},null,8,["formatter"]),e(_,{label:"\u7B80\u4ECB",align:"center",prop:"description"}),e(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(z),width:"180px"},null,8,["formatter"]),e(_,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[d((n(),u(i,{link:"",type:"primary",onClick:I=>V("update",t.row.id)},{default:l(()=>[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 Se(J),x.success(R("common.delSuccess")),await m()}catch{}})(t.row.id)},{default:l(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,a(w)]]),e(A,{total:a(k),page:a(r).pageNo,"onUpdate:page":o[4]||(o[4]=t=>a(r).pageNo=t),limit:a(r).pageSize,"onUpdate:limit":o[5]||(o[5]=t=>a(r).pageSize=t),onPagination:m},null,8,["total","page","limit"])]),_:1}),e(De,{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{Xe as __tla,E as default};