import{g as w,e as y}from"./config-3b189d83.js";import{M as _,R as x,F as C,g as R,B as V,S as k,e as v,b as h}from"./ui-ba7aaa7e.js";import{e as B,l as F,r as M,P as S,a3 as U,a4 as o,f as t,H as d}from"./vue-bf422dc1.js";const j={name:"WebAgreement"},A=B({...j,setup(z){const a=F({site_wordfilter_status:"",site_wordfilter_danger:""});(async()=>{const{data:s}=await w({field:Object.keys(a)});for(const e in s)a[e]=s[e]})();const f={},n=M(),c=async()=>{const s=await n.value.validate();if(typeof s!="object"&&s){const e=await y({data:a});e.code===1?_.success("操作成功"):_.error(e.msg)}};return(s,e)=>{const m=x,l=C,u=R,i=V,p=k,g=v,b=h;return S(),U(b,{style:{"padding-top":"20px"},class:"basic-container",bordered:!1},{default:o(()=>[t(g,{ref_key:"formRef",ref:n,"label-align":"left",data:a,rules:f,"label-width":150,style:{width:"800px"}},{default:o(()=>[t(l,{label:"状态开关",name:"site_wordfilter_status",tips:"如果使用人工审核，请到商户管理-店铺管理中进一步审核用户的店铺申请"},{default:o(()=>[t(m,{modelValue:a.site_wordfilter_status,"onUpdate:modelValue":e[0]||(e[0]=r=>a.site_wordfilter_status=r),options:[{label:"启用",value:1},{label:"关闭",value:0}]},null,8,["modelValue"])]),_:1}),t(l,{label:"敏感词",name:"site_wordfilter_danger"},{default:o(()=>[t(u,{modelValue:a.site_wordfilter_danger,"onUpdate:modelValue":e[1]||(e[1]=r=>a.site_wordfilter_danger=r),clearable:"",placeholder:"请输入要禁用的敏感词",tips:"使用“|”分隔",autosize:{minRows:5,maxRows:10}},null,8,["modelValue"])]),_:1}),t(l,null,{default:o(()=>[t(p,{size:"small"},{default:o(()=>[t(i,{theme:"primary",onClick:c},{default:o(()=>[d("提交")]),_:1}),t(i,{theme:"default",variant:"base",type:"reset"},{default:o(()=>[d("重置")]),_:1})]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})}}});export{A as _};
