import{d as c,a6 as w,b as i,c as n,e as F,f as B,h as u,i as a,u as t,m as C,E as o,a7 as D,a8 as E,a9 as A,_ as V}from"./index.0308b213.js";const b={class:"formData"},v=C("\u63D0\u4EA4"),g=c({setup(h){const{OpPlatform:d}=w(),e=i({newpassword:"",password:"",re_password:""}),_=()=>{if(!e.password)return o.error("\u5F53\u524D\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");if(!e.re_password)return o.error("\u91CD\u590D\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");if(!e.newpassword)return o.error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A");if(e.newpassword!==e.re_password)return o.error("\u5BC6\u7801\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165");console.log(d.value,"OpPlatform.value"),d.value==="shangpu"?D(e).then(()=>{o.success("\u4FEE\u6539\u5BC6\u7801\u6210\u529F")}):d.value==="agent"?E(e).then(()=>{o.success("\u4FEE\u6539\u5BC6\u7801\u6210\u529F")}):A(e).then(()=>{o.success("\u4FEE\u6539\u5BC6\u7801\u6210\u529F")}),e.password="",e.re_password="",e.newpassword=""};return(x,s)=>{const p=n("el-input"),l=n("el-form-item"),m=n("el-button"),f=n("el-form");return F(),B("div",b,[u(f,{"label-width":"120px"},{default:a(()=>[u(l,{label:"\u5F53\u524D\u5BC6\u7801:"},{default:a(()=>[u(p,{modelValue:t(e).password,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).password=r),placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5BC6\u7801",type:"password",autocomplete:"off"},null,8,["modelValue"])]),_:1}),u(l,{label:"\u65B0\u5BC6\u7801:"},{default:a(()=>[u(p,{modelValue:t(e).newpassword,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).newpassword=r),placeholder:"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801",type:"password",autocomplete:"off"},null,8,["modelValue"])]),_:1}),u(l,{label:"\u91CD\u590D\u5BC6\u7801:"},{default:a(()=>[u(p,{modelValue:t(e).re_password,"onUpdate:modelValue":s[2]||(s[2]=r=>t(e).re_password=r),placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",type:"password",autocomplete:"off"},null,8,["modelValue"])]),_:1}),u(l,null,{default:a(()=>[u(m,{onClick:_,type:"primary"},{default:a(()=>[v]),_:1})]),_:1})]),_:1})])}}});const P=V(g,[["__scopeId","data-v-b194ed66"]]);export{P as default};
