1 |
- import{d as j,h as J,r as c,e as L,l as O,Q as W,o as n,c as T,f as e,w as t,a,R as Z,F as U,q as $,v as u,n as m,x as d,V as ee,A as ae,y as le,z as te,B as re,j as oe,C as ne,D as se,G as _e,H as ie,I as ce,_ as ue,__tla as me}from"./index-297c97b3.js";import{_ as pe,__tla as de}from"./index-eead3ef4.js";import{_ as fe,__tla as ye}from"./DictTag-c4e6f16f.js";import{_ as he,__tla as xe}from"./ContentWrap-2a772ce5.js";import{a as we,D as Y,__tla as ge}from"./dict-299f12fd.js";import{d as z,__tla as ve}from"./formatTime-43b819e0.js";import{d as be}from"./download-20922b56.js";import{d as Se,e as ke,f as Ce,__tla as Ve}from"./index-d79f179d.js";import De,{__tla as Te}from"./Demo03StudentForm-7191dba1.js";import{u as Ue,__tla as Ye}from"./useMessage-8a849e40.js";import{__tla as ze}from"./index-97931d72.js";import"./color-6e929987.js";import{__tla as Ee}from"./el-card-22a26825.js";import{__tla as Re}from"./Dialog-6d866407.js";import{__tla as He}from"./Editor-5eae0fc5.js";import{__tla as Me}from"./Demo03CourseForm-b68c1263.js";import{__tla as Ne}from"./Demo03GradeForm-28e61e91.js";let E,Fe=Promise.all([(()=>{try{return me}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(Pe){const x=Ue(),{t:R}=J(),w=c(!0),b=c([]),S=c(0),r=L({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),k=c(),g=c(!1),p=async()=>{w.value=!0;try{const s=await Se(r);b.value=s.list,S.value=s.total}finally{w.value=!1}},v=()=>{r.pageNo=1,p()},H=()=>{k.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 O(()=>{p()}),(s,o)=>{const N=ee,f=ae,F=le,P=te,q=re,y=oe,i=ne,G=se,D=he,_=_e,K=fe,X=ie,A=pe,h=W("hasPermi"),B=ce;return n(),T(U,null,[e(D,null,{default:t(()=>[e(G,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:t(()=>[e(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[e(N,{modelValue:a(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(r).name=l),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:t(()=>[e(P,{modelValue:a(r).sex,"onUpdate:modelValue":o[1]||(o[1]=l=>a(r).sex=l),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:t(()=>[(n(!0),T(U,null,$(a(we)(a(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}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(q,{modelValue:a(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=l=>a(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}),e(f,null,{default:t(()=>[e(i,{onClick:v},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),e(i,{onClick:H},{default:t(()=>[e(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(()=>[e(y,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo03-student:create"]]]),d((n(),u(i,{type:"success",plain:"",onClick:M,loading:a(g)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo03-student:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(D,null,{default:t(()=>[d((n(),u(X,{data:a(b),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[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:t(l=>[e(K,{type:a(Y).SYSTEM_USER_SEX,value:l.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:t(l=>[d((n(),u(i,{link:"",type:"primary",onClick:I=>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:I=>(async Q=>{try{await x.delConfirm(),await ke(Q),x.success(R("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"])),[[B,a(w)]]),e(A,{total:a(S),page:a(r).pageNo,"onUpdate:page":o[4]||(o[4]=l=>a(r).pageNo=l),limit:a(r).pageSize,"onUpdate:limit":o[5]||(o[5]=l=>a(r).pageSize=l),onPagination:p},null,8,["total","page","limit"])]),_:1}),e(De,{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{Fe as __tla,E as default};
|