import{D as c,d as B,r as v,b as r,c as o,e as i,f as p,h as a,i as n,u as l,F as P,j as E,k as x,g as k,m as F,E as I,_ as V}from"./index.0308b213.js";const A=()=>c.get("merchant/shop.storeDiyPageSetting/getDiyPageList"),C=()=>c.get("merchant/shop.storeDiyPageSetting/getInfo"),L=_=>c.post("merchant/shop.storeDiyPageSetting/setInfo",_),S={class:"setting-form"},N={class:"operation-btn"},w=F("\u63D0\u4EA4"),j=B({setup(_){v("");const d=r({list:[]}),t=r({diypage_id:0}),g=()=>{C().then(e=>{console.log(e),e.data&&(t.diypage_id=e.data.diypage_id)})},m=()=>{L(t).then(e=>{console.log(e),I({message:"\u8BBE\u7F6E\u6210\u529F",type:"success"})})};return(()=>{A().then(e=>{console.log(e),d.list=e,g()})})(),(e,u)=>{const f=o("el-option"),y=o("el-select"),h=o("el-form-item"),b=o("el-form"),D=o("el-button");return i(),p("div",S,[a(b,{model:l(t),"label-width":"120px"},{default:n(()=>[a(h,{label:"\u6A21\u677F"},{default:n(()=>[a(y,{modelValue:l(t).diypage_id,"onUpdate:modelValue":u[0]||(u[0]=s=>l(t).diypage_id=s),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u7B97\u7C7B\u578B"},{default:n(()=>[(i(!0),p(P,null,E(l(d).list,(s,M)=>(i(),x(f,{label:s.name,value:s.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),k("div",N,[a(D,{type:"primary",onClick:m},{default:n(()=>[w]),_:1})])])}}});const U=V(j,[["__scopeId","data-v-6bb34ea0"]]);export{U as default};
