|
|
@ -32,6 +32,7 @@ import { |
|
|
|
useTabs, |
|
|
|
useTabs, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
import { TabType } from '~/lib' |
|
|
|
import { TabType } from '~/lib' |
|
|
|
|
|
|
|
import type { CheckboxChangeEvent } from 'ant-design-vue/es/checkbox/interface' |
|
|
|
|
|
|
|
|
|
|
|
const { quickImportType, projectTemplate, importData, importColumns, importDataOnly, maxRowsToParse, baseId } = |
|
|
|
const { quickImportType, projectTemplate, importData, importColumns, importDataOnly, maxRowsToParse, baseId } = |
|
|
|
defineProps<Props>() |
|
|
|
defineProps<Props>() |
|
|
@ -618,9 +619,9 @@ function isSelectDisabled(uidt: string, disableSelect = false) { |
|
|
|
return (uidt === UITypes.SingleSelect || uidt === UITypes.MultiSelect) && disableSelect |
|
|
|
return (uidt === UITypes.SingleSelect || uidt === UITypes.MultiSelect) && disableSelect |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleCheckAllRecord(event, table_name) { |
|
|
|
function handleCheckAllRecord(event: CheckboxChangeEvent, tableName: string) { |
|
|
|
const isChecked = event.target.checked |
|
|
|
const isChecked = event.target.checked |
|
|
|
for (const record of srcDestMapping.value[table_name]) { |
|
|
|
for (const record of srcDestMapping.value[tableName]) { |
|
|
|
record.enabled = isChecked |
|
|
|
record.enabled = isChecked |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|