จัดตำแหน่งข้อมูล

This commit is contained in:
Net 2024-07-24 11:02:50 +07:00
parent 6b8fd39213
commit 0a1ddc500e

View file

@ -382,7 +382,7 @@ onMounted(() => {
> >
<div class="column" style="border: #f0ecec 1px solid"> <div class="column" style="border: #f0ecec 1px solid">
<div <div
class="col row items-center" class="col row"
:class="{ 'bg-grey-3': i % 2 }" :class="{ 'bg-grey-3': i % 2 }"
v-for="(item, index, i) in currentlogData" v-for="(item, index, i) in currentlogData"
:key="index" :key="index"
@ -390,6 +390,10 @@ onMounted(() => {
> >
<div <div
class="col q-pl-sm" class="col q-pl-sm"
:class="{
'self-center': index !== 'dataDiff',
'q-pt-md': index === 'dataDiff',
}"
style="max-width: 150px; border-right: #f0ecec 1px solid" style="max-width: 150px; border-right: #f0ecec 1px solid"
> >
{{ {{
@ -407,17 +411,20 @@ onMounted(() => {
}} }}
</div> </div>
<div v-if="index === 'startTimeStamp' && typeof item === 'string'"> <div
class="self-center"
v-if="index === 'startTimeStamp' && typeof item === 'string'"
>
{{ date2Thai(new Date(item), false, true) }} {{ date2Thai(new Date(item), false, true) }}
</div> </div>
<div v-if="index === 'method'"> <div class="self-center" v-if="index === 'method'">
<q-badge text-color="blue" style="background-color: #f0ecec">{{ <q-badge text-color="blue" style="background-color: #f0ecec">{{
item ?? "-" item ?? "-"
}}</q-badge> }}</q-badge>
</div> </div>
<div v-else-if="index === 'logType'"> <div class="self-center" v-else-if="index === 'logType'">
<q-badge <q-badge
text-color="white" text-color="white"
:color=" :color="
@ -428,7 +435,7 @@ onMounted(() => {
</div> </div>
<div <div
class="col" class="col self-center"
v-if=" v-if="
index !== 'dataDiff' && index !== 'dataDiff' &&
index !== 'method' && index !== 'method' &&