import{M as v}from"./index.dfdc0704.js";import{F as C}from"./index.d8717905.js";import{p as D,q as A}from"./setting.644fa418.js";import{d as B,r as V,b as E,o as j,_ as y,c as a,e as q,f as x,h as e,i as l,g as i,m as d}from"./index.0308b213.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";const W=B({components:{MaterialSelect:v,FooterBtns:C},setup(){const t=V(null),o=E({name:"",web_favicon:"",web_logo:"",login_image:""}),F={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}]},m=()=>{D().then(u=>{console.log("res",u),o.name=u.name,o.web_favicon=u.web_favicon,o.web_logo=u.web_logo,o.login_image=u.login_image})},g=()=>{var u;(u=t.value)==null||u.validate(p=>{!p||(console.log("fasdfasd"),A({name:o.name,web_favicon:o.web_favicon,web_logo:o.web_logo,login_image:o.login_image}).then(n=>{console.log("res",n),m()}).catch(n=>{console.log("err",n)}))})};return j(()=>{m()}),{formData:o,rules:F,getWebsite:m,setWebsite:g,formRef:t}}}),k={class:"website-information"},U={class:"flex"},$=i("div",{class:"muted xs m-r-16"}," \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F ",-1),M=d("\u67E5\u770B\u793A\u4F8B"),N={class:"flex"},z=i("div",{class:"muted xs m-r-16"}," \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F ",-1),G=d("\u67E5\u770B\u793A\u4F8B"),O={class:"flex"},R=i("div",{class:"muted xs m-r-16"}," \u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F ",-1),S=d("\u67E5\u770B\u793A\u4F8B"),L=d("\u4FDD\u5B58");function T(t,o,F,m,g,u){const p=a("el-input"),n=a("el-form-item"),_=a("material-select"),f=a("el-image"),r=a("el-button"),c=a("el-popover"),b=a("el-form"),h=a("el-card"),w=a("footer-btns");return q(),x("div",k,[e(h,{shadow:"never",class:"m-t-15"},{default:l(()=>[e(b,{ref:"formRef",rules:t.rules,class:"ls-form",model:t.formData,"label-width":"150px",size:"small"},{default:l(()=>[e(n,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:l(()=>[e(p,{modelValue:t.formData.name,"onUpdate:modelValue":o[0]||(o[0]=s=>t.formData.name=s),placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"12","show-word-limit":""},null,8,["modelValue"])]),_:1}),e(n,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:l(()=>[e(_,{modelValue:t.formData.web_favicon,"onUpdate:modelValue":o[1]||(o[1]=s=>t.formData.web_favicon=s),limit:1,show_type:"all"},null,8,["modelValue"]),i("div",U,[$,e(c,{placement:"right",width:"200",trigger:"hover"},{default:l(()=>[e(f,{src:"https://img2.baidu.com/it/u=3357699356,1912406716&fm=26&fmt=auto&gp=0.jpg"}),e(r,{slot:"reference",type:"text"},{default:l(()=>[M]),_:1})]),_:1})])]),_:1}),e(n,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:l(()=>[e(_,{modelValue:t.formData.web_logo,"onUpdate:modelValue":o[2]||(o[2]=s=>t.formData.web_logo=s),limit:1,show_type:"all"},null,8,["modelValue"]),i("div",N,[z,e(c,{placement:"right",width:"200",trigger:"hover"},{default:l(()=>[e(f,{src:"https://img2.baidu.com/it/u=3357699356,1912406716&fm=26&fmt=auto&gp=0.jpg"}),e(r,{slot:"reference",type:"text"},{default:l(()=>[G]),_:1})]),_:1})])]),_:1}),e(n,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:l(()=>[e(_,{modelValue:t.formData.login_image,"onUpdate:modelValue":o[3]||(o[3]=s=>t.formData.login_image=s),limit:1,show_type:"all"},null,8,["modelValue"]),i("div",O,[R,e(c,{placement:"right",width:"200",trigger:"hover"},{default:l(()=>[e(f,{src:"https://img2.baidu.com/it/u=3357699356,1912406716&fm=26&fmt=auto&gp=0.jpg"}),e(r,{slot:"reference",type:"text"},{default:l(()=>[S]),_:1})]),_:1})])]),_:1})]),_:1},8,["rules","model"])]),_:1}),e(w,null,{default:l(()=>[e(r,{type:"primary",size:"small",onClick:t.setWebsite},{default:l(()=>[L]),_:1},8,["onClick"])]),_:1})])}const ee=y(W,[["render",T]]);export{ee as default};
