Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-7efbfe3a.01b3aaed.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
2.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7efbfe3a"],{"4bf1":function(e,a,t){"use strict";t.r(a);var s=function(){var e=this,a=e._self._c;return a("div",[a("el-card",{staticClass:"ibox"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("div",[e._v("修改密码")])]),a("div",{staticClass:"card-body"},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:e.$t("changeStaffPwd.oldPassword")}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("changeStaffPwd.oldPasswordPlaceholder"),"show-password":""},model:{value:e.changeStaffPwdInfo.oldPwd,callback:function(a){e.$set(e.changeStaffPwdInfo,"oldPwd",a)},expression:"changeStaffPwdInfo.oldPwd"}})],1),a("el-form-item",{attrs:{label:e.$t("changeStaffPwd.newPassword")}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("changeStaffPwd.newPasswordPlaceholder"),"show-password":""},model:{value:e.changeStaffPwdInfo.newPwd,callback:function(a){e.$set(e.changeStaffPwdInfo,"newPwd",a)},expression:"changeStaffPwdInfo.newPwd"}})],1),a("el-form-item",{attrs:{label:e.$t("changeStaffPwd.confirmPassword")}},[a("el-input",{attrs:{type:"password",placeholder:e.$t("changeStaffPwd.confirmPasswordPlaceholder"),"show-password":""},model:{value:e.changeStaffPwdInfo.reNewPwd,callback:function(a){e.$set(e.changeStaffPwdInfo,"reNewPwd",a)},expression:"changeStaffPwdInfo.reNewPwd"}})],1)],1)],1)]),a("div",{staticClass:"text-right"},[a("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:e.handleChangePwd}},[e._v(" "+e._s(e.$t("changeStaffPwd.confirmChange"))+" ")])],1)],1)},d=[],n=t("b775");function f(e){return new Promise((a,t)=>{Object(n["a"])({url:"/user.changeStaffPwd",method:"post",data:e,emulateJSON:!0}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}var o={name:"ChangeStaffPwd",data(){return{changeStaffPwdInfo:{oldPwd:"",newPwd:"",reNewPwd:""}}},methods:{validateForm(){return this.changeStaffPwdInfo.oldPwd?this.changeStaffPwdInfo.newPwd?this.changeStaffPwdInfo.reNewPwd?this.changeStaffPwdInfo.newPwd===this.changeStaffPwdInfo.reNewPwd||(this.$message.error(this.$t("changeStaffPwd.passwordNotMatch")),!1):(this.$message.error(this.$t("changeStaffPwd.confirmPasswordRequired")),!1):(this.$message.error(this.$t("changeStaffPwd.newPasswordRequired")),!1):(this.$message.error(this.$t("changeStaffPwd.oldPasswordRequired")),!1)},async handleChangePwd(){if(this.validateForm())try{const e=await f(this.changeStaffPwdInfo);0===e.code?(this.$message.success(this.$t("changeStaffPwd.changeSuccess")),this.changeStaffPwdInfo={oldPwd:"",newPwd:"",reNewPwd:""},this.$router.push("/views/frame/login")):this.$message.error(e.msg)}catch(e){this.$message.error(e.message)}}}},r=o,w=(t("6b25"),t("2877")),c=Object(w["a"])(r,s,d,!1,null,"19cd34ea",null);a["default"]=c.exports},"6b25":function(e,a,t){"use strict";t("ac11")},ac11:function(e,a,t){}}]);
//# sourceMappingURL=chunk-7efbfe3a.01b3aaed.js.map