|
|
|
|
@ -18,21 +18,23 @@
|
|
|
|
|
row-key="id"
|
|
|
|
|
bordered
|
|
|
|
|
>
|
|
|
|
|
<template #actions="{ record }">
|
|
|
|
|
<a-space>
|
|
|
|
|
<a-button type="link" @click="openModal(record)">
|
|
|
|
|
Editar
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="¿Seguro de eliminar?"
|
|
|
|
|
@confirm="eliminar(record.id)"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="link" danger>
|
|
|
|
|
Eliminar
|
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
|
<template v-if="column.key === 'actions'">
|
|
|
|
|
<a-space>
|
|
|
|
|
<a-button type="link" @click="openModal(record)">
|
|
|
|
|
Editar
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</a-space>
|
|
|
|
|
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="¿Seguro de eliminar?"
|
|
|
|
|
@confirm="eliminar(record.id)"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="link" danger>
|
|
|
|
|
Eliminar
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</a-space>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table>
|
|
|
|
|
|
|
|
|
|
@ -92,12 +94,12 @@ const form = ref({
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
|
{ title: 'Nombre', dataIndex: 'nombre' },
|
|
|
|
|
{ title: 'Correcta', dataIndex: 'puntos_correcta' },
|
|
|
|
|
{ title: 'Incorrecta', dataIndex: 'puntos_incorrecta' },
|
|
|
|
|
{ title: 'Nula', dataIndex: 'puntos_nula' },
|
|
|
|
|
{ title: 'Máximo', dataIndex: 'puntaje_maximo' },
|
|
|
|
|
{ title: 'Acciones', key: 'actions', slots: { customRender: 'actions' } }
|
|
|
|
|
{ title: 'Nombre', dataIndex: 'nombre', key: 'nombre' },
|
|
|
|
|
{ title: 'Correcta', dataIndex: 'puntos_correcta', key: 'puntos_correcta' },
|
|
|
|
|
{ title: 'Incorrecta', dataIndex: 'puntos_incorrecta', key: 'puntos_incorrecta' },
|
|
|
|
|
{ title: 'Nula', dataIndex: 'puntos_nula', key: 'puntos_nula' },
|
|
|
|
|
{ title: 'Máximo', dataIndex: 'puntaje_maximo', key: 'puntaje_maximo' },
|
|
|
|
|
{ title: 'Acciones', key: 'actions' } // 👈 sin slots
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const cargar = async () => {
|
|
|
|
|
|