|
|
@ -87,6 +87,8 @@ const isImporting = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const importingTips = ref<Record<string, string>>({}) |
|
|
|
const importingTips = ref<Record<string, string>>({}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const checkAllRecord = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const uiTypeOptions = ref<Option[]>( |
|
|
|
const uiTypeOptions = ref<Option[]>( |
|
|
|
(Object.keys(UITypes) as (keyof typeof UITypes)[]) |
|
|
|
(Object.keys(UITypes) as (keyof typeof UITypes)[]) |
|
|
|
.filter( |
|
|
|
.filter( |
|
|
@ -615,6 +617,13 @@ function handleEditableTnChange(idx: number) { |
|
|
|
function isSelectDisabled(uidt: string, disableSelect = false) { |
|
|
|
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){ |
|
|
|
|
|
|
|
const isChecked = event.target.checked; |
|
|
|
|
|
|
|
for (const record of srcDestMapping.value[table_name]) { |
|
|
|
|
|
|
|
record.enabled = isChecked; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -671,6 +680,12 @@ function isSelectDisabled(uidt: string, disableSelect = false) { |
|
|
|
<span v-if="column.key === 'source_column' || column.key === 'destination_column'"> |
|
|
|
<span v-if="column.key === 'source_column' || column.key === 'destination_column'"> |
|
|
|
{{ column.name }} |
|
|
|
{{ column.name }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
<span v-if="column.key === 'action'"> |
|
|
|
|
|
|
|
<a-checkbox |
|
|
|
|
|
|
|
v-model:checked="checkAllRecord" |
|
|
|
|
|
|
|
@change="handleCheckAllRecord($event, table.table_name)" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #bodyCell="{ column, record }"> |
|
|
|
<template #bodyCell="{ column, record }"> |
|
|
|