import{u as P}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{g as R}from"./offCampusGradeApi-a03fdc28-1782572373740v=1.0.0.js";import{b as q,a as A,D as M,_ as O}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as S}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as i,r as t,m as T,al as o,z as m,I as d,J as a,R as n,u,B as _,A as V,Q as h,a4 as G,F as H,O as Z}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const j={class:"pt20 mt30"},z=i({name:"offCampusGradeDetail"}),J=i({...z,setup(K){const f=t({xs:24,sm:22,md:20,lg:14,xl:23}),p=t({xs:24,sm:24,md:12,lg:12,xl:12}),y=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:g}=P(),b=q(),r=t({}),l=A(),B=t(""),E=t([{key:"gradeDemandType",col:1,label:"\u8D5B\u4E8B\u7C7B\u578B",enum:b.getEnumObjByKey("gradeDemandType")},{key:"eventName",col:1,label:"\u8D5B\u4E8B\u540D\u79F0"},{key:"sportsIds",col:1,label:"\u8FD0\u52A8\u9879\u76EE"},{key:"schoolYearId",col:1,label:"\u5B66\u5E74"},{key:"gradeRecordNum",col:NaN,label:"\u8D5B\u4E8B\u6210\u7EE9"}]),x=t({1:f,2:p,3:y}),v=async c=>{let e=await R(c);if(e.code!==0){S.error(e.msg);return}e.data,r.value={...e.data}};T(()=>{l.query.id&&(B.value=l.query.id,r.value.id=l.query.id,v(l.query.id))});const D=()=>{g()};return(c,e)=>{const k=o("PaCol"),C=o("PaRow"),F=o("el-button"),w=o("el-form-item"),I=o("el-form"),L=o("HZPageLayout");return m(),d(L,{title:u(l).meta.title,isBack:!0},{default:a(()=>[n(I,{model:u(r),ref:"ruleFormRef","label-width":"170px"},{default:a(()=>[e[1]||(e[1]=_("div",{class:"divider mt16 mb28"},"\u57FA\u672C\u4FE1\u606F",-1)),n(C,null,{default:a(()=>[(m(!0),V(h,null,G(u(E),(s,N)=>(m(),d(k,H({key:N},{ref_for:!0},u(x)[s.col]),{default:a(()=>[n(M,{label:s.label,value:u(r)[s.key],type:s.type,enum:s.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),n(w,null,{default:a(()=>[_("div",j,[n(F,{onClick:D},{default:a(()=>e[0]||(e[0]=[Z("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1,__:[1]},8,["model"])]),_:1},8,["title"])}}});const ee=O(J,[["__scopeId","data-v-21f57e4b"]]);export{ee as default};
