|
|
@ -69,12 +69,17 @@ const message = function () { |
|
|
|
|
|
|
|
// 显示修改密码弹窗 |
|
|
|
const showPasswordDialog = ref(false) |
|
|
|
const pwdRef = ref() |
|
|
|
|
|
|
|
//打开修改密码弹窗 |
|
|
|
const openChangePassword = () => { |
|
|
|
showPasswordDialog.value = true |
|
|
|
} |
|
|
|
|
|
|
|
//关闭后清空密码表单 |
|
|
|
function onPwdDialogClosed () { |
|
|
|
// 调用子组件暴露的 resetFields |
|
|
|
pwdRef.value?.resetFields() |
|
|
|
} |
|
|
|
|
|
|
|
function logout() { |
|
|
|
const machineId = localStorage.getItem('machineId') |
|
|
@ -229,8 +234,12 @@ function logout() { |
|
|
|
v-model="showPasswordDialog" |
|
|
|
:center="true" |
|
|
|
width="470px" |
|
|
|
@closed="onPwdDialogClosed" |
|
|
|
> |
|
|
|
<ChangePassword @confirm="showPasswordDialog = false"/> |
|
|
|
<ChangePassword |
|
|
|
ref="pwdRef" |
|
|
|
@confirm="showPasswordDialog = false" |
|
|
|
/> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|