refactor: user manage
This commit is contained in:
parent
e85aee434c
commit
8e89658b04
@ -255,22 +255,23 @@ function editUser(row: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createUser() {
|
function createUser() {
|
||||||
common.asyncGetValid(ValidType.User, ValidCount.User, loading).then(async (res: any) => {
|
|
||||||
if (res?.data) {
|
|
||||||
title.value = t('views.userManage.createUser')
|
title.value = t('views.userManage.createUser')
|
||||||
UserDrawerRef.value.open()
|
UserDrawerRef.value.open()
|
||||||
} else if (res?.code === 400) {
|
// common.asyncGetValid(ValidType.User, ValidCount.User, loading).then(async (res: any) => {
|
||||||
MsgConfirm(t('common.tip'), t('views.userManage.tip.professionalMessage'), {
|
// if (res?.data) {
|
||||||
cancelButtonText: t('common.confirm'),
|
// title.value = t('views.userManage.createUser')
|
||||||
confirmButtonText: t('common.professional'),
|
// UserDrawerRef.value.open()
|
||||||
})
|
// } else if (res?.code === 400) {
|
||||||
.then(() => {
|
// MsgConfirm(t('common.tip'), t('views.userManage.tip.professionalMessage'), {
|
||||||
window.open('https://maxkb.cn/pricing.html', '_blank')
|
// cancelButtonText: t('common.confirm'),
|
||||||
})
|
// confirmButtonText: t('common.professional'),
|
||||||
.catch(() => {
|
// })
|
||||||
})
|
// .then(() => {
|
||||||
}
|
// window.open('https://maxkb.cn/pricing.html', '_blank')
|
||||||
})
|
// })
|
||||||
|
// .catch(() => {})
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteUserManage(row: any) {
|
function deleteUserManage(row: any) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user