mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
Add edit password
This commit is contained in:
@@ -73,8 +73,14 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
</div>
|
||||
<el-dialog v-model="visible" width="50%" title="修改密码">
|
||||
<edit-passwd></edit-passwd>
|
||||
<el-dialog
|
||||
v-model="visible"
|
||||
width="50%"
|
||||
title="修改密码"
|
||||
:show-close="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<edit-passwd @updatePasswd="updatePasswd" @cancelPasswd="cancelPasswd"></edit-passwd>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -195,6 +201,13 @@ export default {
|
||||
},
|
||||
resetForm() {
|
||||
this.form = _.cloneDeep(this.staff)
|
||||
},
|
||||
updatePasswd(passwdForm) {
|
||||
console.log(passwdForm)
|
||||
this.visible = false
|
||||
},
|
||||
cancelPasswd() {
|
||||
this.visible = false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -167,7 +167,6 @@ export default {
|
||||
})
|
||||
},
|
||||
setDialogVisible(dialogVisible) {
|
||||
console.log(dialogVisible)
|
||||
this.addVisible = dialogVisible
|
||||
this.editVisible = dialogVisible
|
||||
this.getTableData()
|
||||
|
||||
Reference in New Issue
Block a user