import{a as C,r as h,w,aj as m,J as c,o as a,K as s,b as t,c as V,a9 as B,R as I,S as N,P as p,Q as f}from"./vue.YrNK8sx4.js";const j="/assets/classroom.CzJrR7Xg.png",g="/assets/special.Cqn9lQ01.png",J={style:{"margin-bottom":"16px"}},Q={style:{display:"flex","justify-content":"space-around",margin:"20px 0"}},R=["onClick"],S=["src"],D=C({__name:"index",props:{visible:{type:Boolean}},emits:["update:visible","select"],setup(b,{emit:v}){const d=b,n=v,i=h(d.visible);w(()=>d.visible,l=>i.value=l);function _(l){switch(l){case 1:return j;case 2:return g;default:return g}}const x=[{value:1,label:"课堂借用"},{value:2,label:"特殊借用"}];function y(l){n("select",l),n("update:visible",!1)}function u(){n("update:visible",!1)}return(l,o)=>{const r=m("el-button"),k=m("el-dialog");return a(),c(k,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),title:"选择借用性质",width:"40%","close-on-click-modal":!1,onClose:u},{footer:s(()=>[N(r,{onClick:u},{default:s(()=>o[2]||(o[2]=[p("关闭")])),_:1})]),default:s(()=>[t("div",J,[o[1]||(o[1]=t("ol",{style:{padding:"10px 30px","margin-bottom":"20px",border:"1px solid #409eff","border-radius":"5px",background:"#e6f7ff"}},[t("li",null,"1、课堂借用：课堂教学活动、实验操作、课程项目等教学时段的正式使用"),t("li",null,"2、特殊借用：突发紧急情况、非常规教学需求或特殊事件下的临时性借用。")],-1)),t("div",Q,[(a(),V(I,null,B(x,e=>t("div",{key:e.value,onClick:q=>y(e.value),style:{cursor:"pointer","text-align":"center"}},[t("img",{src:_(e.value),style:{width:"80px",height:"80px"}},null,8,S),e.label!=="特殊借用"?(a(),c(r,{key:0,type:"primary",style:{"margin-top":"8px","font-weight":"bold"}},{default:s(()=>[p(f(e.label),1)]),_:2},1024)):(a(),c(r,{key:1,type:"danger",plain:"",style:{"margin-top":"8px","font-weight":"bold"}},{default:s(()=>[p(f(e.label),1)]),_:2},1024))],8,R)),64))])])]),_:1},8,["modelValue"])}}});export{D as _};
