| | |
| | | /> |
| | | </div> |
| | | <template #footer> |
| | | <el-button |
| | | type="primary" |
| | | @click="savePwd()" |
| | | >ä¿®æ¹å¯ç </el-button |
| | | > |
| | | <el-button |
| | | @click="model = false" |
| | | >å
³é</el-button |
| | | > |
| | | <el-button type="primary" @click="savePwd()">ä¿®æ¹å¯ç </el-button> |
| | | <el-button @click="model = false">å
³é</el-button> |
| | | </template> |
| | | </vol-box> |
| | | </div> |
| | |
| | | import { defineComponent, defineAsyncComponent } from "vue"; |
| | | export default defineComponent({ |
| | | components: { |
| | | VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")) |
| | | VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")), |
| | | }, |
| | | data() { |
| | | return { |
| | | row: {}, |
| | | password: "", |
| | | newPwd:"", |
| | | newPwd: "", |
| | | model: false, |
| | | }; |
| | | }, |
| | |
| | | this.model = true; |
| | | }, |
| | | savePwd() { |
| | | if (!this.password||!this.newPwd) return this.$Message.error("请è¾å
¥å¯ç "); |
| | | if (this.password.length < 6||this.newPwd.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/ModifyPwd?oldPwd=" + |
| | | this.password + |
| | | "&newPwd=" + |
| | | this.newPwd+ |
| | | this.newPwd + |
| | | "&userName=" + |
| | | this.row.userName; |
| | | this.http.post(url, {}, true).then((x) => { |
| | |
| | | }, |
| | | }, |
| | | created() {}, |
| | | }) |
| | | }); |
| | | </script> |
| | | <style lang="less" scoped> |
| | | h3 { |