工作流bug

This commit is contained in:
周建 2023-06-20 15:51:45 +08:00
parent 73cd6e303d
commit c545c3008f

View File

@ -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