updated & fixing

This commit is contained in:
Warunee Tamkoo 2024-06-26 14:35:19 +07:00
parent a39a34b15f
commit 62af9f6a35
24 changed files with 392 additions and 352 deletions

View file

@ -145,7 +145,7 @@ function getList(id: string) {
http
.get(config.API.probationMain(id))
.then((res) => {
const data = res.data.data
const data = res.data.data;
rows.value = data;
})
.catch((e) => {})
@ -168,7 +168,6 @@ function onDetail(id: string) {
}
onMounted(async () => {
await getMain();
});
</script>
@ -292,7 +291,7 @@ onMounted(async () => {
dense
v-model="filter"
label="ค้นหา"
:style="mode ? `max-width: 200px`:`max-width: 150px`"
:style="mode ? `max-width: 200px` : `max-width: 150px`"
>
<template v-slot:append>
<q-icon
@ -355,7 +354,11 @@ onMounted(async () => {
<template v-if="$q.screen.gt.xs" v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td v-for="(col, index) in props.cols" :key="col.name" @click="onDetail(props.row.id)">
<q-td
v-for="(col, index) in props.cols"
:key="col.name"
@click="onDetail(props.row.id)"
>
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
@ -404,9 +407,9 @@ onMounted(async () => {
</template>
<template v-slot:no-data>
<div
class="full-width row flex-center bg-grey-3 q-pa-md rounded-borders text-body2 text-weight-medium"
class="full-width row flex-center q-pa-sm rounded-borders text-weight-medium"
>
<span> ไมพบขอมตำแหน/เงนเดอน </span>
<span> ไมพบขอม </span>
</div>
</template>
</d-table>