From 4fc394fc8df7b80bbad792f51a743e6dab41cbd1 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Mon, 24 Apr 2023 11:02:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(view):=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E5=9D=97=20=E6=95=B0=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closed #I6YAIF --- src/views/infra/codegen/components/ImportTableModal.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/infra/codegen/components/ImportTableModal.vue b/src/views/infra/codegen/components/ImportTableModal.vue index 166bd891..9c86d7c2 100644 --- a/src/views/infra/codegen/components/ImportTableModal.vue +++ b/src/views/infra/codegen/components/ImportTableModal.vue @@ -11,7 +11,7 @@ import { createCodegenList, getSchemaTableList } from '@/api/infra/codegen' const emit = defineEmits(['success', 'register']) -const [registerTable, { getSelectRowKeys }] = useTable({ +const [registerTable, { getSelectRowKeys, getForm }] = useTable({ api: getSchemaTableList, columns: importTableColumns, formConfig: { @@ -32,8 +32,8 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async () => async function handleSubmit() { const datas = await getSelectRowKeys() - console.info(datas) - await createCodegenList({ dataSourceConfigId: 0, tableNames: datas }) + const form = await getForm() + await createCodegenList({ dataSourceConfigId: form.getFieldsValue().dataSourceConfigId, tableNames: datas }) closeModal() emit('success') }