import{u as w}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{g as P}from"./liveSettingApi-cb976010-1782572373740v=1.0.0.js";import{b as T,a as I,D as R,_ as q}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as N}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as d,r as t,m as M,al as o,z as i,I as m,J as a,R as s,u as n,B as _,A as V,Q as H,a4 as U,F as Z,O as h}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const z={class:"pt20 mt30"},J=d({name:"liveSettingDetail"}),O=d({...J,setup(Q){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}),v=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:y}=w();T();const r=t({}),l=I(),F=t(""),b=t([{key:"coverUrl",col:2,label:"\u76F4\u64AD\u5C01\u9762"},{key:"liveName",col:2,label:"\u76F4\u64AD\u540D\u79F0"},{key:"liveUrl",col:2,label:"\u76F4\u64AD\u94FE\u63A5"},{key:"liveStartTime",col:2,label:"\u76F4\u64AD\u65F6\u95F4"},{key:"eventLiveStatus",col:2,label:"\u76F4\u64AD\u72B6\u6001"},{key:"createTime",col:2,label:"\u521B\u5EFA\u65F6\u95F4"}]),g=t({1:f,2:p,3:v}),x=async c=>{let e=await P(c);if(e.code!==0){N.error(e.msg);return}e.data,e.data.liveStartTime=[e.data.liveStartTimeStart,e.data.liveStartTimeEnd],r.value={...e.data}};M(()=>{l.query.id&&(F.value=l.query.id,r.value.id=l.query.id,x(l.query.id))});const k=()=>{y()};return(c,e)=>{const D=o("PaCol"),C=o("PaRow"),E=o("el-button"),S=o("el-form-item"),A=o("el-form"),L=o("HZPageLayout");return i(),m(L,{title:n(l).meta.title,isBack:!0},{default:a(()=>[s(A,{model:n(r),ref:"ruleFormRef","label-width":"170px"},{default:a(()=>[e[1]||(e[1]=_("div",{class:"divider mt16 mb28"},"\u57FA\u672C\u4FE1\u606F",-1)),s(C,null,{default:a(()=>[(i(!0),V(H,null,U(n(b),(u,B)=>(i(),m(D,Z({key:B},{ref_for:!0},n(g)[u.col]),{default:a(()=>[s(R,{label:u.label,value:n(r)[u.key],type:u.type,enum:u.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),s(S,null,{default:a(()=>[_("div",z,[s(E,{onClick:k},{default:a(()=>e[0]||(e[0]=[h("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1,__:[1]},8,["model"])]),_:1},8,["title"])}}});const $=q(O,[["__scopeId","data-v-1bc2a399"]]);export{$ as default};
