工作流bug
This commit is contained in:
parent
73cd6e303d
commit
c545c3008f
@ -80,13 +80,13 @@ const open = async (type: string, id?: number) => {
|
|||||||
if (id) {
|
if (id) {
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
formData.value = await UserGroupApi.getUserGroup(id)
|
formData.value = await UserGroupApi.getUserGroupApi(id)
|
||||||
} finally {
|
} finally {
|
||||||
formLoading.value = false
|
formLoading.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 加载用户列表
|
// 加载用户列表
|
||||||
userList.value = await UserApi.getSimpleUserList()
|
userList.value = await UserApi.getListSimpleUsersApi()
|
||||||
}
|
}
|
||||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||||
|
|
||||||
@ -102,10 +102,10 @@ const submitForm = async () => {
|
|||||||
try {
|
try {
|
||||||
const data = formData.value as unknown as UserGroupApi.UserGroupVO
|
const data = formData.value as unknown as UserGroupApi.UserGroupVO
|
||||||
if (formType.value === 'create') {
|
if (formType.value === 'create') {
|
||||||
await UserGroupApi.createUserGroup(data)
|
await UserGroupApi.createUserGroupApi(data)
|
||||||
message.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
} else {
|
} else {
|
||||||
await UserGroupApi.updateUserGroup(data)
|
await UserGroupApi.updateUserGroupApi(data)
|
||||||
message.success(t('common.updateSuccess'))
|
message.success(t('common.updateSuccess'))
|
||||||
}
|
}
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
Loading…
Reference in New Issue
Block a user