bugfix:用户管理界面无法分配 / 查看角色

This commit is contained in:
Qing Liang 2025-11-07 22:50:01 +08:00 committed by GitHub
parent 057ad2eeeb
commit 27fb85f630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 13 deletions

View File

@ -174,7 +174,7 @@
</div>
</template>
</el-dialog>
<el-drawer
v-model="addUserDialog"
:size="appStore.drawerSize"
@ -356,6 +356,12 @@
}
)
const authOptions = ref([])
const setOptions = (authData) => {
authOptions.value = []
setAuthorityOptions(authData, authOptions.value)
}
const initPage = async () => {
getTableData()
const res = await getAuthorityList()
@ -373,7 +379,7 @@
nickName: '',
password: ''
})
//
const generateRandomPassword = () => {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*'
@ -395,7 +401,7 @@
})
})
}
//
const resetPasswordFunc = (row) => {
resetPwdInfo.value.ID = row.ID
@ -404,7 +410,7 @@
resetPwdInfo.value.password = ''
resetPwdDialog.value = true
}
//
const confirmResetPassword = async () => {
if (!resetPwdInfo.value.password) {
@ -414,12 +420,12 @@
})
return
}
const res = await resetPassword({
ID: resetPwdInfo.value.ID,
password: resetPwdInfo.value.password
})
if (res.code === 0) {
ElMessage({
type: 'success',
@ -433,7 +439,7 @@
})
}
}
//
const closeResetPwdDialog = () => {
resetPwdInfo.value.password = ''
@ -450,12 +456,6 @@
})
}
const authOptions = ref([])
const setOptions = (authData) => {
authOptions.value = []
setAuthorityOptions(authData, authOptions.value)
}
const deleteUserFunc = async (row) => {
ElMessageBox.confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',