| | |
| | | </el-alert> |
| | | <div> |
| | | <el-input |
| | | placeholder="请è¾å
¥å¯ç " |
| | | placeholder="请è¾å
¥æ§å¯ç " |
| | | v-model="password" |
| | | type="password" |
| | | size="large" |
| | | style="width: 100%; margin-top: 15px" |
| | | /> |
| | | </div> |
| | | <div> |
| | | <el-input |
| | | placeholder="请è¾å
¥æ°å¯ç " |
| | | v-model="newPwd" |
| | | type="password" |
| | | size="large" |
| | | style="width: 100%; margin-top: 15px" |
| | | /> |
| | |
| | | return { |
| | | row: {}, |
| | | password: "", |
| | | newPwd:"", |
| | | model: false, |
| | | }; |
| | | }, |
| | | methods: { |
| | | open(row) { |
| | | this.password = ""; |
| | | this.newPwd = ""; |
| | | this.row = row; |
| | | this.model = true; |
| | | }, |
| | | savePwd() { |
| | | if (!this.password) return this.$Message.error("请è¾å¯ç "); |
| | | if (this.password.length < 6) |
| | | if (!this.password||!this.newPwd) return this.$Message.error("请è¾å
¥å¯ç "); |
| | | if (this.password.length < 6||this.newPwd.length<6) |
| | | return this.$Message.error("å¯ç é¿åº¦è³å°6ä½"); |
| | | let url = |
| | | "/api/user/modifyUserPwd?password=" + |
| | | "/api/user/ModifyPwd?oldPwd=" + |
| | | this.password + |
| | | "&newPwd=" + |
| | | this.newPwd+ |
| | | "&userName=" + |
| | | this.row.UserName; |
| | | this.row.userName; |
| | | this.http.post(url, {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message.error(x.message); |