1 |
- import{d as O,h as Z,r as u,e as $,l as ee,Q as ae,o as s,c as U,f as e,w as t,a,R as te,F as z,q as le,v as m,n as c,x as p,V as re,A as oe,y as ne,z as se,B as _e,j as ue,C as ie,D as me,G as ce,H as de,W as pe,X as fe,I as ye,_ as he,__tla as xe}from"./index-e3afde76.js";import{_ as ge,__tla as we}from"./index-51c17e69.js";import{_ as ve,__tla as be}from"./DictTag-715a7ef1.js";import{_ as Ce,__tla as Se}from"./ContentWrap-5f2f4872.js";import{a as ke,D as R,__tla as Ve}from"./dict-a141296d.js";import{d as Y,__tla as De}from"./formatTime-cee700cd.js";import{d as Ee}from"./download-20922b56.js";import{m as Te,n as Ue,o as ze,__tla as Re}from"./index-9a8475d2.js";import Ye,{__tla as He}from"./Demo03StudentForm-da045f7e.js";import Me,{__tla as Ne}from"./Demo03CourseList-5c7ec9c8.js";import Pe,{__tla as Fe}from"./Demo03GradeList-f994e821.js";import{u as Ge,__tla as Xe}from"./useMessage-0b1b25bd.js";import{__tla as qe}from"./index-2d20a7ff.js";import"./color-6e929987.js";import{__tla as We}from"./el-card-6198c22a.js";import{__tla as Ae}from"./Dialog-c20523c4.js";import{__tla as Be}from"./Editor-9c92736f.js";import{__tla as Ie}from"./Demo03CourseForm-4bc5fc50.js";import{__tla as Ke}from"./Demo03GradeForm-7385da35.js";let H,Qe=Promise.all([(()=>{try{return xe}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Ke}catch{}})()]).then(async()=>{H=he(O({name:"Demo03Student",__name:"index",setup(je){const x=Ge(),{t:M}=Z(),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}},v=()=>{r.pageNo=1,d()},N=()=>{V.value.resetFields(),v()},D=u(),E=(n,o)=>{D.value.open(n,o)},P=async()=>{try{await x.exportConfirm(),w.value=!0;const n=await ze(r);Ee.excel(n,"\u5B66\u751F.xls")}catch{}finally{w.value=!1}},b=u({}),F=n=>{b.value=n};return ee(()=>{d()}),(n,o)=>{const G=re,f=oe,X=ne,q=se,W=_e,y=ue,i=ie,A=me,C=Ce,_=ce,B=ve,I=de,K=ge,T=pe,Q=fe,h=ae("hasPermi"),j=ye;return s(),U(z,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(G,{modelValue:a(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:te(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[e(q,{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),U(z,null,le(a(ke)(a(R).SYSTEM_USER_SEX),l=>(s(),m(X,{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(W,{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"}),c(" \u641C\u7D22")]),_:1}),e(i,{onClick:N},{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=>E("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:P,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(B,{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(Y),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(Y),width:"180px"},null,8,["formatter"]),e(_,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[p((s(),m(i,{link:"",type:"primary",onClick:J=>E("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 L=>{try{await x.delConfirm(),await Ue(L),x.success(M("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"])),[[j,a(g)]]),e(K,{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(Ye,{ref_key:"formRef",ref:D,onSuccess:d},null,512),e(C,null,{default:t(()=>[e(Q,{"model-value":"demo03Course"},{default:t(()=>[e(T,{label:"\u5B66\u751F\u8BFE\u7A0B",name:"demo03Course"},{default:t(()=>[e(Me,{"student-id":a(b).id},null,8,["student-id"])]),_:1}),e(T,{label:"\u5B66\u751F\u73ED\u7EA7",name:"demo03Grade"},{default:t(()=>[e(Pe,{"student-id":a(b).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{Qe as __tla,H as default};
|