工作流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) {
formLoading.value = true
try {
formData.value = await UserGroupApi.getUserGroup(id)
formData.value = await UserGroupApi.getUserGroupApi(id)
} finally {
formLoading.value = false
}
}
//
userList.value = await UserApi.getSimpleUserList()
userList.value = await UserApi.getListSimpleUsersApi()
}
defineExpose({ open }) // open
@ -102,10 +102,10 @@ const submitForm = async () => {
try {
const data = formData.value as unknown as UserGroupApi.UserGroupVO
if (formType.value === 'create') {
await UserGroupApi.createUserGroup(data)
await UserGroupApi.createUserGroupApi(data)
message.success(t('common.createSuccess'))
} else {
await UserGroupApi.updateUserGroup(data)
await UserGroupApi.updateUserGroupApi(data)
message.success(t('common.updateSuccess'))
}
dialogVisible.value = false