1 |
- import{d as L,h as J,r as u,e as O,l as Z,Q as $,o as s,c as T,f as e,w as t,a as l,R as ee,F as U,q as ae,v as m,n as c,x as p,V as te,A as le,y as re,z as oe,B as ne,j as se,C as _e,D as ie,W as ue,X as me,G as ce,H as de,I as pe,_ as fe,__tla as ye}from"./index-0dd32ce1.js";import{_ as he,__tla as xe}from"./index-b2a63207.js";import{_ as we,__tla as ge}from"./DictTag-48bb974b.js";import{_ as be,__tla as ve}from"./ContentWrap-85ada6a4.js";import{a as Se,D as z,__tla as ke}from"./dict-e91c89bf.js";import{d as Y,__tla as Ce}from"./formatTime-92f7de44.js";import{d as Ve}from"./download-20922b56.js";import{d as De,e as Ee,f as Te,__tla as Ue}from"./index-d9079ba3.js";import ze,{__tla as Ye}from"./Demo03StudentForm-4c72a225.js";import Re,{__tla as He}from"./Demo03CourseList-6875d692.js";import Me,{__tla as Ne}from"./Demo03GradeList-3c10be3a.js";import{u as Fe,__tla as Ge}from"./useMessage-7197f350.js";import{__tla as Pe}from"./index-f1474603.js";import"./color-6e929987.js";import{__tla as Xe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-e24854f8.js";import{__tla as qe}from"./el-card-b6168b42.js";import{__tla as Qe}from"./Dialog-9aadfae2.js";import{__tla as We}from"./Editor-380116fc.js";import{__tla as je}from"./Demo03CourseForm-d7d4c11f.js";import{__tla as Ae}from"./Demo03GradeForm-6f847f55.js";let R,Be=Promise.all([(()=>{try{return ye}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ae}catch{}})()]).then(async()=>{R=fe(L({name:"Demo03Student",__name:"index",setup(Ie){const x=Fe(),{t:H}=J(),w=u(!0),v=u([]),S=u(0),r=O({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),k=u(),g=u(!1),d=async()=>{w.value=!0;try{const _=await De(r);v.value=_.list,S.value=_.total}finally{w.value=!1}},b=()=>{r.pageNo=1,d()},M=()=>{k.value.resetFields(),b()},C=u(),V=(_,o)=>{C.value.open(_,o)},N=async()=>{try{await x.exportConfirm(),g.value=!0;const _=await Te(r);Ve.excel(_,"\u5B66\u751F.xls")}catch{}finally{g.value=!1}};return Z(()=>{d()}),(_,o)=>{const F=te,f=le,G=re,P=oe,X=ne,y=se,i=_e,q=ie,D=be,E=ue,Q=me,n=ce,W=we,j=de,A=he,h=$("hasPermi"),B=pe;return s(),T(U,null,[e(D,null,{default:t(()=>[e(q,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:t(()=>[e(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[e(F,{modelValue:l(r).name,"onUpdate:modelValue":o[0]||(o[0]=a=>l(r).name=a),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:ee(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[e(P,{modelValue:l(r).sex,"onUpdate:modelValue":o[1]||(o[1]=a=>l(r).sex=a),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),T(U,null,ae(l(Se)(l(z).SYSTEM_USER_SEX),a=>(s(),m(G,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(X,{modelValue:l(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=a=>l(r).createTime=a),"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:b},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),e(i,{onClick:M},{default:t(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),p((s(),m(i,{type:"primary",plain:"",onClick:o[3]||(o[3]=a=>V("create"))},{default:t(()=>[e(y,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo03-student:create"]]]),p((s(),m(i,{type:"success",plain:"",onClick:N,loading:l(g)},{default:t(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo03-student:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(D,null,{default:t(()=>[p((s(),m(j,{data:l(v),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(n,{type:"expand"},{default:t(a=>[e(Q,{"model-value":"demo03Course"},{default:t(()=>[e(E,{label:"\u5B66\u751F\u8BFE\u7A0B",name:"demo03Course"},{default:t(()=>[e(Re,{"student-id":a.row.id},null,8,["student-id"])]),_:2},1024),e(E,{label:"\u5B66\u751F\u73ED\u7EA7",name:"demo03Grade"},{default:t(()=>[e(Me,{"student-id":a.row.id},null,8,["student-id"])]),_:2},1024)]),_:2},1024)]),_:1}),e(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u540D\u5B57",align:"center",prop:"name"}),e(n,{label:"\u6027\u522B",align:"center",prop:"sex"},{default:t(a=>[e(W,{type:l(z).SYSTEM_USER_SEX,value:a.row.sex},null,8,["type","value"])]),_:1}),e(n,{label:"\u51FA\u751F\u65E5\u671F",align:"center",prop:"birthday",formatter:l(Y),width:"180px"},null,8,["formatter"]),e(n,{label:"\u7B80\u4ECB",align:"center",prop:"description"}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(Y),width:"180px"},null,8,["formatter"]),e(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[p((s(),m(i,{link:"",type:"primary",onClick:I=>V("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:update"]]]),p((s(),m(i,{link:"",type:"danger",onClick:I=>(async K=>{try{await x.delConfirm(),await Ee(K),x.success(H("common.delSuccess")),await d()}catch{}})(a.row.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,l(w)]]),e(A,{total:l(S),page:l(r).pageNo,"onUpdate:page":o[4]||(o[4]=a=>l(r).pageNo=a),limit:l(r).pageSize,"onUpdate:limit":o[5]||(o[5]=a=>l(r).pageSize=a),onPagination:d},null,8,["total","page","limit"])]),_:1}),e(ze,{ref_key:"formRef",ref:C,onSuccess:d},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/demo/demo03/inner/index.vue"]])});export{Be as __tla,R as default};
|