| | |
| | | return { |
| | | row: {}, |
| | | password: "", |
| | | userName:'', |
| | | model: false, |
| | | }; |
| | | }, |
| | |
| | | if (!this.password) return this.$Message.error("请è¾å¯ç "); |
| | | if (this.password.length < 6) |
| | | return this.$Message.error("å¯ç é¿åº¦è³å°6ä½"); |
| | | let url = |
| | | "/api/user/modifyUserPwd?password=" + |
| | | this.password + |
| | | "&userName=" + |
| | | this.row.UserName; |
| | | this.http.post(url, {}, true).then((x) => { |
| | | let url = |
| | | "/api/User/modifyPwd?oldPwd=" + |
| | | this.row.user_Id+ |
| | | "&newPwd=" + |
| | | this.password; |
| | | this.http.get(url, {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message.error(x.message); |
| | | } |