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