index-2b00fc48.js 6.2 KB

1
  1. import{d as L,P as O,r as u,x as $,b as ee,a4 as ae,o as s,c as Y,f as e,A as t,a,a5 as te,F as E,R as le,C as m,D as c,k as p,a9 as re,V as oe,S as ne,U as se,I as _e,Q as ue,J as ie,W as me,X as ce,Y as de,aa as pe,ab as fe,Z as ye,_ as he,__tla as xe}from"./index-f6fb8e95.js";import{_ as ge,__tla as we}from"./index-58a94653.js";import{_ as be,__tla as ve}from"./DictTag-81730a57.js";import{_ as Ce,__tla as Se}from"./ContentWrap-96bb70ec.js";import{a as ke,D as R,__tla as Ve}from"./dict-c9a7f6a4.js";import{d as z,__tla as Ue}from"./formatTime-ddd96ac8.js";import{d as De}from"./download-20922b56.js";import{m as Te,n as Ye,o as Ee,__tla as Re}from"./index-08461d52.js";import ze,{__tla as Me}from"./Demo03StudentForm-7f52d82b.js";import Ne,{__tla as Pe}from"./Demo03CourseList-9bcd1662.js";import Xe,{__tla as Fe}from"./Demo03GradeList-83fb0055.js";import{u as He,__tla as Je}from"./useMessage-3b767a67.js";import{__tla as Ke}from"./index-07a2f7ed.js";import"./color-6e929987.js";import{__tla as qe}from"./el-card-8db16709.js";import{__tla as Ae}from"./Dialog-ac2b0e4e.js";import{__tla as Ge}from"./Editor-87b5f27a.js";import{__tla as Ie}from"./Demo03CourseForm-5b4ecc12.js";import{__tla as Qe}from"./Demo03GradeForm-51eb3ee7.js";let M,We=Promise.all([(()=>{try{return xe}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Qe}catch{}})()]).then(async()=>{M=he(L({name:"Demo03Student",__name:"index",setup(Ze){const x=He(),{t:N}=O(),g=u(!0),S=u([]),k=u(0),r=$({pageNo:1,pageSize:10,name:null,sex:null,description:null,createTime:[]}),V=u(),w=u(!1),d=async()=>{g.value=!0;try{const n=await Te(r);S.value=n.list,k.value=n.total}finally{g.value=!1}},b=()=>{r.pageNo=1,d()},P=()=>{V.value.resetFields(),b()},U=u(),D=(n,o)=>{U.value.open(n,o)},X=async()=>{try{await x.exportConfirm(),w.value=!0;const n=await Ee(r);De.excel(n,"\u5B66\u751F.xls")}catch{}finally{w.value=!1}},v=u({}),F=n=>{v.value=n};return ee(()=>{d()}),(n,o)=>{const H=re,f=oe,J=ne,K=se,q=_e,y=ue,i=ie,A=me,C=Ce,_=ce,G=be,I=de,Q=ge,T=pe,W=fe,h=ae("hasPermi"),Z=ye;return s(),Y(E,null,[e(C,null,{default:t(()=>[e(A,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:t(()=>[e(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[e(H,{modelValue:a(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:te(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[e(K,{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(()=>[(s(!0),Y(E,null,le(a(ke)(a(R).SYSTEM_USER_SEX),l=>(s(),m(J,{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:b},{default:t(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),e(i,{onClick:P},{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]=l=>D("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:X,loading:a(w)},{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(C,null,{default:t(()=>[p((s(),m(I,{data:a(S),stripe:!0,"show-overflow-tooltip":!0,"highlight-current-row":"",onCurrentChange:F},{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(G,{type:a(R).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=>[p((s(),m(i,{link:"",type:"primary",onClick:j=>D("update",l.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:update"]]]),p((s(),m(i,{link:"",type:"danger",onClick:j=>(async B=>{try{await x.delConfirm(),await Ye(B),x.success(N("common.delSuccess")),await d()}catch{}})(l.row.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo03-student:delete"]]])]),_:1})]),_:1},8,["data"])),[[Z,a(g)]]),e(Q,{total:a(k),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:d},null,8,["total","page","limit"])]),_:1}),e(ze,{ref_key:"formRef",ref:U,onSuccess:d},null,512),e(C,null,{default:t(()=>[e(W,{"model-value":"demo03Course"},{default:t(()=>[e(T,{label:"\u5B66\u751F\u8BFE\u7A0B",name:"demo03Course"},{default:t(()=>[e(Ne,{"student-id":a(v).id},null,8,["student-id"])]),_:1}),e(T,{label:"\u5B66\u751F\u73ED\u7EA7",name:"demo03Grade"},{default:t(()=>[e(Xe,{"student-id":a(v).id},null,8,["student-id"])]),_:1})]),_:1})]),_:1})],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/demo/demo03/erp/index.vue"]])});export{We as __tla,M as default};