import{v as V,_ as y,r as h,R as w,a as R,b as m,o as k,s as S,e as n,d as l,g as o,H as _,S as U,p as q,l as C,f as p}from"./index.699f1124.js";function I(r){return V({url:"/app/message",method:"POST",data:r})}const B=r=>(q("data-v-068b085f"),r=r(),C(),r),N=B(()=>p("div",{style:{"margin-bottom":"15px"}},[p("span",{class:"x_bg_blue",style:{display:"inline-block",width:"5px",height:"5px",margin:"0 5px","vertical-align":"middle"}}),_(" \u8054\u7CFB\u6211 ")],-1)),F=_("\u63D0\u4EA4"),M={__name:"index",setup(r){const c=h({form:{},rules:{content:[{required:!0,message:"\u9700\u6C42\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],name:[{required:!0,message:"\u59D3\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],company:[{required:!0,message:"\u5355\u4F4D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],mobile:[{required:!0,message:"\u8054\u7CFB\u7535\u8BDD\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",trigger:"blur"}]}}),{form:e,rules:f}=w(c);function b(){e.value={content:void 0,name:void 0,company:void 0,mobile:void 0,email:void 0},d.value&&d.value.resetFields()}const d=R();function g(){d.value.validate(i=>{i&&I(e.value).then(t=>{U.success("\u53D1\u9001\u6210\u529F"),b()})})}return(i,t)=>{const u=m("el-input"),s=m("el-form-item"),v=m("el-button"),x=m("el-form");return k(),S(x,{"label-position":"top",ref_key:"formRef",ref:d,model:o(e),rules:o(f),"label-width":"100px"},{default:n(()=>[N,l(s,{label:"",prop:"content"},{default:n(()=>[l(u,{modelValue:o(e).content,"onUpdate:modelValue":t[0]||(t[0]=a=>o(e).content=a),type:"textarea",autosize:{minRows:4,maxRows:6},placeholder:"\u8BF7\u8F93\u5165\u9700\u6C42"},null,8,["modelValue"])]),_:1}),l(s,{label:"\u59D3\u540D",prop:"name"},{default:n(()=>[l(u,{modelValue:o(e).name,"onUpdate:modelValue":t[1]||(t[1]=a=>o(e).name=a),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),l(s,{label:"\u5355\u4F4D",prop:"company"},{default:n(()=>[l(u,{modelValue:o(e).company,"onUpdate:modelValue":t[2]||(t[2]=a=>o(e).company=a),placeholder:"\u8BF7\u8F93\u5165\u6240\u5728\u5355\u4F4D"},null,8,["modelValue"])]),_:1}),l(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"mobile"},{default:n(()=>[l(u,{modelValue:o(e).mobile,"onUpdate:modelValue":t[3]||(t[3]=a=>o(e).mobile=a),maxlength:"11",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"},null,8,["modelValue"])]),_:1}),l(s,{label:"\u90AE\u7BB1"},{default:n(()=>[l(u,{modelValue:o(e).email,"onUpdate:modelValue":t[4]||(t[4]=a=>o(e).email=a),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["modelValue"])]),_:1}),l(s,null,{default:n(()=>[l(v,{class:"x_btns",onClick:g},{default:n(()=>[F]),_:1})]),_:1})]),_:1},8,["model","rules"])}}};var z=y(M,[["__scopeId","data-v-068b085f"]]);export{z as w};
