import{x as i,r as o,k as B,al as a,y as m,H as _,I as t,Q as n,u as r,A as d,z as h,P as L,a4 as q,E as N,M as R}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as A}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{a as V}from"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";import{u as j,a as z,D as S,_ as H}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{E as Q}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const T={class:"pt20 mt30"},Z=i({name:"collageManageDetail"}),G=i({...Z,setup(J){const p=o({xs:24,sm:22,md:20,lg:14,xl:23}),f=o({xs:24,sm:24,md:12,lg:12,xl:12}),g=o({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:x}=A();j();const s=o({}),u=z(),y=o(""),v=o([{key:"majorName",col:2,label:"\u4E13\u4E1A\u540D\u79F0"},{key:"majorId",col:2,label:"\u5B66\u9662\u540D\u79F0"},{key:"collegeId",col:2,label:"\u5B66\u9662\u540D\u79F0"}]),b=o({1:p,2:f,3:g}),k=async c=>{let e=await V(c);if(e.code!==0){Q.error(e.msg);return}e.data,s.value={...e.data}};B(()=>{u.query.id&&(y.value=u.query.id,s.value.id=u.query.id,k(u.query.id))});const C=()=>{x()};return(c,e)=>{const D=a("PaCol"),E=a("PaRow"),F=a("el-button"),P=a("el-form-item"),I=a("el-form"),w=a("PaIndexPage");return m(),_(w,null,{default:t(()=>[n(I,{model:r(s),ref:"ruleFormRef","label-width":"170px"},{default:t(()=>[e[1]||(e[1]=d("div",{class:"divider mt16 mb28"},"\u57FA\u672C\u4FE1\u606F",-1)),n(E,null,{default:t(()=>[(m(!0),h(L,null,q(r(v),(l,M)=>(m(),_(D,N({key:M},{ref_for:!0},r(b)[l.col]),{default:t(()=>[n(S,{label:l.label,value:r(s)[l.key],type:l.type,enum:l.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),n(P,null,{default:t(()=>[d("div",T,[n(F,{onClick:C},{default:t(()=>e[0]||(e[0]=[R("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1,__:[1]},8,["model"])]),_:1})}}});const $=H(G,[["__scopeId","data-v-634a7e46"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/collageManage/detail.vue"]]);export{$ as default};
