import{x as i,r as o,k as B,al as a,y as m,H as c,I as t,Q as l,u as r,A as d,z as h,P as j,a4 as L,E as q,M as N}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as R}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{a as A}from"./majorManageApi-836cbfa2-1783405707921v=1.0.0.js";import{u as V,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:"majorManageDetail"}),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}=R();V();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 _=>{let e=await A(_);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 D=()=>{x()};return(_,e)=>{const E=a("PaCol"),F=a("PaRow"),P=a("el-button"),C=a("el-form-item"),I=a("el-form"),M=a("PaIndexPage");return m(),c(M,null,{default:t(()=>[l(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)),l(F,null,{default:t(()=>[(m(!0),h(j,null,L(r(v),(n,w)=>(m(),c(E,q({key:w},{ref_for:!0},r(b)[n.col]),{default:t(()=>[l(S,{label:n.label,value:r(s)[n.key],type:n.type,enum:n.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),l(C,null,{default:t(()=>[d("div",T,[l(P,{onClick:D},{default:t(()=>e[0]||(e[0]=[N("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1,__:[1]},8,["model"])]),_:1})}}});const $=H(G,[["__scopeId","data-v-8e52367e"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/majorManage/detail.vue"]]);export{$ as default};
