|
@@ -22,7 +22,7 @@
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
|
<cy-dialog ref="updatePwd" title="修改密码" :top="'20vh'" :append="true">
|
|
|
- <el-form ref="ruleForm" :key="key" :model="formData" :rules="rules" label-width="150px" label-position="top" class="rule-form-orange">
|
|
|
+ <el-form ref="ruleForm" :model="formData" :rules="rules" label-width="150px" label-position="top" class="rule-form-orange">
|
|
|
<el-form-item label="新密码:" prop="newPwd" style="width: 100%;">
|
|
|
<el-input v-model="formData.newPwd" maxlength="20" type="password" placeholder="请输入新密码" />
|
|
|
</el-form-item>
|
|
@@ -46,6 +46,9 @@ import md5 from 'js-md5'
|
|
|
// import Hamburger from '@/components/Hamburger'
|
|
|
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ // Hamburger
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
formData: {
|
|
@@ -63,9 +66,6 @@ export default {
|
|
|
showDialog: false
|
|
|
}
|
|
|
},
|
|
|
- components: {
|
|
|
- // Hamburger
|
|
|
- },
|
|
|
computed: {
|
|
|
...mapGetters([
|
|
|
'name',
|
|
@@ -90,13 +90,13 @@ export default {
|
|
|
},
|
|
|
confirmSubmit() {
|
|
|
this.$refs.ruleForm.validate(flag => {
|
|
|
- if(flag) {
|
|
|
+ if (flag) {
|
|
|
this.submitPwd()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
submitPwd() {
|
|
|
- if(this.formData.confirmPwd !== this.formData.newPwd) {
|
|
|
+ if (this.formData.confirmPwd !== this.formData.newPwd) {
|
|
|
this.$message.error('两次输入的密码不一致')
|
|
|
return
|
|
|
}
|
|
@@ -202,6 +202,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
</style>
|