#7323 workerList #719
|
@ -472,6 +472,7 @@ function handleOnDataSaved(_) {
|
|||
auto-width
|
||||
class="no-margin q-px-xs"
|
||||
:class="[getColAlign(col), col.columnClass]"
|
||||
:style="col.style"
|
||||
v-if="col.visible ?? true"
|
||||
@click.ctrl="
|
||||
($event) =>
|
||||
|
@ -500,6 +501,7 @@ function handleOnDataSaved(_) {
|
|||
:class="getColAlign(col)"
|
||||
|
||||
class="sticky no-padding"
|
||||
@click="stopEventPropagation($event)"
|
||||
:style="col.style"
|
||||
>
|
||||
<QBtn
|
||||
v-for="(btn, index) of col.actions"
|
||||
|
|
|
@ -57,9 +57,21 @@ const columns = computed(() => [
|
|||
field: 'concept',
|
||||
cardVisible: true,
|
||||
},
|
||||
{
|
||||
align: 'right',
|
||||
name: 'tableActions',
|
||||
style: 'max-width: 20px; text-align: initial;',
|
||||
actions: [
|
||||
{
|
||||
title: t('delete'),
|
||||
icon: 'delete',
|
||||
action: async (row) => await tableRef.value.CrudModelRef.remove([row]),
|
||||
jorgep marked this conversation as resolved
jsegarra
commented
Duda: Eliminamos sin confirmar? Duda: Eliminamos sin confirmar?
jorgep
commented
no no
|
||||
isPrimary: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VnTable
|
||||
ref="tableRef"
|
||||
|
@ -69,8 +81,8 @@ const columns = computed(() => [
|
|||
save-url="WorkerIncomes/crud"
|
||||
:create="{
|
||||
urlCreate: 'workerIncomes',
|
||||
title: t('Create workerBalance'),
|
||||
onDataSaved: () => tableRef.reload(),
|
||||
title: t('Create balance'),
|
||||
onDataSaved: () => $refs.tableRef.reload(),
|
||||
jorgep marked this conversation as resolved
Outdated
jsegarra
commented
porque usas $refs si ya tienes tableRef como varaiable porque usas $refs si ya tienes tableRef como varaiable
|
||||
formInitialData: {
|
||||
workerFk: entityId,
|
||||
},
|
||||
|
@ -81,10 +93,10 @@ const columns = computed(() => [
|
|||
:right-search="false"
|
||||
:is-editable="true"
|
||||
:use-model="true"
|
||||
:default-remove="false"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<i18n>
|
||||
es:
|
||||
Create workerBalance: Crear balance
|
||||
Create balance: Crear balance
|
||||
</i18n>
|
||||
|
|
|
@ -96,10 +96,23 @@ const columns = computed(() => [
|
|||
label: t('worker.formation.tableVisibleColumns.hasDiploma'),
|
||||
create: true,
|
||||
},
|
||||
{
|
||||
align: 'right',
|
||||
name: 'tableActions',
|
||||
actions: [
|
||||
{
|
||||
title: t('delete'),
|
||||
icon: 'delete',
|
||||
action: async (row) => await tableRef.value.CrudModelRef.remove([row]),
|
||||
isPrimary: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
<template>
|
||||
<VnTable
|
||||
class="worker-formation"
|
||||
ref="tableRef"
|
||||
data-key="WorkerFormation"
|
||||
:url="`Workers/${entityId}/trainingCourse`"
|
||||
|
@ -120,8 +133,15 @@ const columns = computed(() => [
|
|||
:right-search="false"
|
||||
:is-editable="true"
|
||||
:use-model="true"
|
||||
:default-remove="false"
|
||||
/>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
:global(.worker-formation thead > tr > th:nth-child(7)),
|
||||
:global(.worker-formation thead > tr > th:nth-child(8)) {
|
||||
max-width: 50px;
|
||||
}
|
||||
</style>
|
||||
<i18n>
|
||||
es:
|
||||
Create training course: Crear curso de formación
|
||||
|
|
|
@ -65,6 +65,18 @@ const columns = [
|
|||
create: true,
|
||||
component: 'input',
|
||||
},
|
||||
{
|
||||
align: 'right',
|
||||
name: 'tableActions',
|
||||
actions: [
|
||||
{
|
||||
title: t('delete'),
|
||||
icon: 'delete',
|
||||
action: async (row) => await tableRef.value.CrudModelRef.remove([row]),
|
||||
jorgep marked this conversation as resolved
jorgep
commented
Si que pregunta. Si que pregunta.
jsegarra
commented
Si si, lo he comprobado despues del primer mensaje. Si si, lo he comprobado despues del primer mensaje.
Desconocia que habiamos añadido esta funcionalidad
|
||||
isPrimary: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
|
@ -87,5 +99,6 @@ const columns = [
|
|||
:right-search="false"
|
||||
:is-editable="true"
|
||||
:use-model="true"
|
||||
:default-remove="false"
|
||||
/>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue
y v-bind="col"???