refactor(evaluate): convert table headers to data cells
This commit is contained in:
parent
7da397a1fe
commit
1de7a11721
1 changed files with 5 additions and 3 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue