refactor(evaluate): convert table headers to data cells

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-09 09:09:01 +07:00
parent 7da397a1fe
commit 1de7a11721

View file

@ -213,7 +213,9 @@ function handleDelete(meetingId: string) {
dialogRemove($q, async () => {
showLoader();
try {
await http.delete(config.API.evaluationMain() + `/del-meeting/${id.value}/${meetingId}`);
await http.delete(
config.API.evaluationMain() + `/del-meeting/${id.value}/${meetingId}`
);
await props.fetchData();
await success($q, "ลบสำเร็จ");
} catch (error) {
@ -289,7 +291,7 @@ watch(
</template>
<template v-slot:body="props">
<q-tr :props="props">
<q-th auto-width>
<q-td auto-width>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
flat
@ -301,7 +303,7 @@ watch(
>
<q-tooltip>ลบ</q-tooltip>
</q-btn>
</q-th>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}