|
|
|
|
@ -18,7 +18,8 @@
|
|
|
|
|
row-key="id"
|
|
|
|
|
bordered
|
|
|
|
|
>
|
|
|
|
|
<template #actions="{ record }">
|
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
|
<template v-if="column.key === 'actions'">
|
|
|
|
|
<a-space>
|
|
|
|
|
<a-button type="link" @click="openModal(record)">
|
|
|
|
|
Editar
|
|
|
|
|
@ -34,6 +35,7 @@
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</a-space>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table>
|
|
|
|
|
|
|
|
|
|
</a-card>
|
|
|
|
|
@ -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 () => {
|
|
|
|
|
|