refactor(worklist): formatDate colunm checkInTime checkOutTime
This commit is contained in:
parent
bf5979aa2d
commit
8a1fb4f9ed
3 changed files with 20 additions and 2 deletions
|
|
@ -267,7 +267,9 @@ watch(
|
|||
<div class="q-pa-md q-gutter-md">
|
||||
<div class="row">
|
||||
<div class="col text-grey-8">เวลาเข้างาน</div>
|
||||
<div class="col">{{ formData.checkInTime }}</div>
|
||||
<div class="col">
|
||||
{{ `${formData.checkInDate} ${formData.checkInTime} น.` }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-grey-8">สถานที่ทำงาน</div>
|
||||
|
|
@ -337,7 +339,11 @@ watch(
|
|||
<div class="q-pa-md q-gutter-md">
|
||||
<div class="row">
|
||||
<div class="col text-grey-8">เวลาออกงาน</div>
|
||||
<div class="col">{{ formData.checkOutTime }}</div>
|
||||
<div class="col">
|
||||
{{
|
||||
`${formData.checkOutDate} ${formData.checkOutTime} น.`
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-grey-8">สถานที่ทำงาน</div>
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ const columns = ref<QTableProps["columns"]>([
|
|||
field: "checkInTime",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return `${row.checkInDate} ${val} น.`;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "checkInLocation",
|
||||
|
|
@ -101,6 +104,9 @@ const columns = ref<QTableProps["columns"]>([
|
|||
field: "checkOutTime",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return `${row.checkOutDate} ${val} น.`;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "checkOutLocation",
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@ const columns = ref<QTableProps["columns"]>([
|
|||
field: "checkInTime",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return `${row.checkInDate} ${val} น.`;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "checkInLocation",
|
||||
|
|
@ -88,6 +91,9 @@ const columns = ref<QTableProps["columns"]>([
|
|||
field: "checkOutTime",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
format(val, row) {
|
||||
return `${row.checkOutDate} ${val} น.`;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "checkOutLocation",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue