parent
c2cd770fec
commit
4fc394fc8d
|
@ -11,7 +11,7 @@ import { createCodegenList, getSchemaTableList } from '@/api/infra/codegen'
|
||||||
|
|
||||||
const emit = defineEmits(['success', 'register'])
|
const emit = defineEmits(['success', 'register'])
|
||||||
|
|
||||||
const [registerTable, { getSelectRowKeys }] = useTable({
|
const [registerTable, { getSelectRowKeys, getForm }] = useTable({
|
||||||
api: getSchemaTableList,
|
api: getSchemaTableList,
|
||||||
columns: importTableColumns,
|
columns: importTableColumns,
|
||||||
formConfig: {
|
formConfig: {
|
||||||
|
@ -32,8 +32,8 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async () =>
|
||||||
|
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
const datas = await getSelectRowKeys()
|
const datas = await getSelectRowKeys()
|
||||||
console.info(datas)
|
const form = await getForm()
|
||||||
await createCodegenList({ dataSourceConfigId: 0, tableNames: datas })
|
await createCodegenList({ dataSourceConfigId: form.getFieldsValue().dataSourceConfigId, tableNames: datas })
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue