From c545c3008f5ded6898e4cd52533e868cbf931e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=BB=BA?= <1348660141@qq.com> Date: Tue, 20 Jun 2023 15:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/group/UserGroupForm.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/bpm/group/UserGroupForm.vue b/src/views/bpm/group/UserGroupForm.vue index 5a3ca804..8f4892c6 100644 --- a/src/views/bpm/group/UserGroupForm.vue +++ b/src/views/bpm/group/UserGroupForm.vue @@ -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