|
|
@ -87,7 +87,7 @@ const isImporting = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const importingTips = ref<Record<string, string>>({}) |
|
|
|
const importingTips = ref<Record<string, string>>({}) |
|
|
|
|
|
|
|
|
|
|
|
const checkAllRecord = ref(false) |
|
|
|
const checkAllRecord = ref<boolean[]>([]) |
|
|
|
|
|
|
|
|
|
|
|
const uiTypeOptions = ref<Option[]>( |
|
|
|
const uiTypeOptions = ref<Option[]>( |
|
|
|
(Object.keys(UITypes) as (keyof typeof UITypes)[]) |
|
|
|
(Object.keys(UITypes) as (keyof typeof UITypes)[]) |
|
|
@ -619,9 +619,9 @@ function isSelectDisabled(uidt: string, disableSelect = false) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleCheckAllRecord(event, table_name) { |
|
|
|
function handleCheckAllRecord(event, table_name) { |
|
|
|
const isChecked = event.target.checked; |
|
|
|
const isChecked = event.target.checked |
|
|
|
for (const record of srcDestMapping.value[table_name]) { |
|
|
|
for (const record of srcDestMapping.value[table_name]) { |
|
|
|
record.enabled = isChecked; |
|
|
|
record.enabled = isChecked |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -682,7 +682,7 @@ function handleCheckAllRecord(event, table_name){ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span v-if="column.key === 'action'"> |
|
|
|
<span v-if="column.key === 'action'"> |
|
|
|
<a-checkbox |
|
|
|
<a-checkbox |
|
|
|
v-model:checked="checkAllRecord" |
|
|
|
v-model:checked="checkAllRecord[table.table_name]" |
|
|
|
@change="handleCheckAllRecord($event, table.table_name)" |
|
|
|
@change="handleCheckAllRecord($event, table.table_name)" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|