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