Logs: ดึงข้อมูลใหม่เมื่อกด clear เวลา
This commit is contained in:
parent
6e2603c734
commit
bdd8990e90
1 changed files with 58 additions and 45 deletions
|
|
@ -280,49 +280,52 @@ onMounted(() => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="bg-white">
|
<div class="bg-white">
|
||||||
<div class="row q-pa-md">
|
<div class="row q-pa-md no-wrap">
|
||||||
<datepicker
|
<div class="row col-7">
|
||||||
menu-class-name="modalfix"
|
<datepicker
|
||||||
v-model="date"
|
menu-class-name="modalfix"
|
||||||
:locale="'th'"
|
v-model="date"
|
||||||
autoApply
|
:locale="'th'"
|
||||||
range
|
autoApply
|
||||||
:class="$q.screen.gt.sm ? 'col-3' : 'col-5'"
|
range
|
||||||
:enableTimePicker="false"
|
class="col"
|
||||||
@update:modelValue="selectedDate"
|
style="max-width: 300px"
|
||||||
week-start="0"
|
:enableTimePicker="false"
|
||||||
>
|
@update:modelValue="selectedDate"
|
||||||
<template #year="{ year }">{{ year + 543 }}</template>
|
week-start="0"
|
||||||
<template #year-overlay-value="{ value }">{{
|
>
|
||||||
parseInt(value + 543)
|
<template #year="{ year }">{{ year + 543 }}</template>
|
||||||
}}</template>
|
<template #year-overlay-value="{ value }">{{
|
||||||
<template #trigger>
|
parseInt(value + 543)
|
||||||
<q-input
|
}}</template>
|
||||||
outlined
|
<template #trigger>
|
||||||
style="min-width: 250px"
|
<q-input
|
||||||
dense
|
outlined
|
||||||
:model-value="dateThaiRange(date)"
|
dense
|
||||||
hide-bottom-space
|
:model-value="dateThaiRange(date)"
|
||||||
>
|
hide-bottom-space
|
||||||
<template v-slot:prepend>
|
>
|
||||||
<q-icon name="event" class="cursor-pointer" color="primary">
|
<template v-slot:prepend>
|
||||||
</q-icon>
|
<q-icon name="event" class="cursor-pointer" color="primary">
|
||||||
</template>
|
</q-icon>
|
||||||
</q-input>
|
</template>
|
||||||
</template>
|
</q-input>
|
||||||
</datepicker>
|
</template>
|
||||||
<div class="q-pl-sm row">
|
</datepicker>
|
||||||
<div class="row items-center">
|
|
||||||
|
<div class="q-pl-sm row items-center">
|
||||||
ตั้งแต่
|
ตั้งแต่
|
||||||
<q-input
|
<q-input
|
||||||
v-model="startTime"
|
v-model="startTime"
|
||||||
outlined
|
outlined
|
||||||
clearable
|
clearable
|
||||||
|
@clear="selectedDate()"
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(v:string) => {
|
(v:string) =>{
|
||||||
replaceTimeInISOString(startDate,v,'start'),
|
if(v){
|
||||||
selectedDate()
|
replaceTimeInISOString(startDate,v,'start'),
|
||||||
}
|
selectedDate()
|
||||||
|
}}
|
||||||
"
|
"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
dense
|
dense
|
||||||
|
|
@ -336,21 +339,28 @@ onMounted(() => {
|
||||||
v-model="endTime"
|
v-model="endTime"
|
||||||
outlined
|
outlined
|
||||||
clearable
|
clearable
|
||||||
|
@clear="selectedDate()"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
@update:model-value="
|
@update:model-value="
|
||||||
(v:string) => {
|
(v:string) =>{
|
||||||
replaceTimeInISOString(endDate,v,'end'),
|
if(v){
|
||||||
selectedDate()
|
replaceTimeInISOString(endDate,v,'end'),
|
||||||
}
|
selectedDate()
|
||||||
|
}}
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
|
stack-label="test"
|
||||||
class="q-px-sm"
|
class="q-px-sm"
|
||||||
type="time"
|
type="time"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="items-center q-gutter-md" style="display: flex">
|
<div
|
||||||
|
class="items-center justify-end q-gutter-md col-5"
|
||||||
|
style="display: flex"
|
||||||
|
>
|
||||||
<!-- ค้นหาข้อความใน table -->
|
<!-- ค้นหาข้อความใน table -->
|
||||||
<q-input
|
<q-input
|
||||||
standout
|
standout
|
||||||
|
|
@ -567,8 +577,7 @@ onMounted(() => {
|
||||||
<div style="border: #f0ecec 1px solid; border-radius: 7px">
|
<div style="border: #f0ecec 1px solid; border-radius: 7px">
|
||||||
<template :key="key" v-for="(item, key, index) in currentlogData">
|
<template :key="key" v-for="(item, key, index) in currentlogData">
|
||||||
<div
|
<div
|
||||||
class="col row"
|
class="col row row-color"
|
||||||
:class="{ 'bg-grey-3': index % 2 }"
|
|
||||||
style="border-bottom: #f0ecec 1px solid"
|
style="border-bottom: #f0ecec 1px solid"
|
||||||
v-if="!!item"
|
v-if="!!item"
|
||||||
>
|
>
|
||||||
|
|
@ -721,4 +730,8 @@ onMounted(() => {
|
||||||
</DialogDataDiff>
|
</DialogDataDiff>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped>
|
||||||
|
.row-color:nth-child(2n + 1) {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue