refs #6321 fix: split disabled
This commit is contained in:
parent
6804196dbb
commit
cf0454669a
|
@ -235,8 +235,11 @@ const columns = computed(() => [
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const emit = defineEmits([...useDialogPluginComponent.emits, 'selection']);
|
const emit = defineEmits([...useDialogPluginComponent.emits, 'selection']);
|
||||||
function rowsHasSelected({ keys }) {
|
function rowsHasSelected(selection) {
|
||||||
emit('selection', keys);
|
emit(
|
||||||
|
'selection',
|
||||||
|
selection.map(({ ticketFk }) => ticketFk)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const resultSplit = ref([]);
|
const resultSplit = ref([]);
|
||||||
|
@ -283,12 +286,13 @@ function getIcon(key, prop) {
|
||||||
>
|
>
|
||||||
<template #body="{ rows }">
|
<template #body="{ rows }">
|
||||||
<QTable
|
<QTable
|
||||||
|
ref="tableRef"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
row-key="ticketFk"
|
row-key="ticketFk"
|
||||||
selection="multiple"
|
selection="multiple"
|
||||||
v-model:selected="selectedRows"
|
v-model:selected="selectedRows"
|
||||||
@selection="rowsHasSelected"
|
@update:selected="rowsHasSelected"
|
||||||
:grid="$q.screen.lt.md"
|
:grid="$q.screen.lt.md"
|
||||||
hide-bottom
|
hide-bottom
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue