import{u as P}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{g as R}from"./offCampusGradeApi-ea6b84ca-1782729249161v=1.0.0.js";import{b as q,a as A,D as M,_ as O}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as S}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
