fix isEntry text-grey
This commit is contained in:
parent
36d0c61b25
commit
3c037634a8
12 changed files with 66 additions and 18 deletions
|
|
@ -496,7 +496,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -774,7 +774,12 @@ onMounted(async () => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div class="table_ellipsis">
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -568,7 +568,12 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div class="table_ellipsis">
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -588,7 +588,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -598,7 +598,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div v-if="col.name === 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -572,7 +572,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -362,7 +362,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -495,7 +495,11 @@ onMounted(async () => {
|
|||
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props">
|
||||
<q-td v-for="(col, index) in props.cols" :key="col.name">
|
||||
<q-td
|
||||
v-for="(col, index) in props.cols"
|
||||
:key="col.name"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div class="table_ellipsis">
|
||||
{{ col.value }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ async function fetchDataFather() {
|
|||
if (data) {
|
||||
fatherData.isLive = data.fatherLive;
|
||||
fatherData.citizenId = data.fatherCitizenId;
|
||||
fatherData.prefix = data.fatherPrefix;
|
||||
fatherData.prefix = data.fatherPrefix ? data.fatherPrefix : "";
|
||||
fatherData.firstName = data.fatherFirstName;
|
||||
fatherData.lastName = data.fatherLastName;
|
||||
fatherData.job = data.fatherCareer;
|
||||
|
|
@ -237,7 +237,7 @@ async function fetchDataMother() {
|
|||
if (data) {
|
||||
motherData.isLive = data.motherLive;
|
||||
motherData.citizenId = data.motherCitizenId;
|
||||
motherData.prefix = data.motherPrefix;
|
||||
motherData.prefix = data.motherPrefix ? data.motherPrefix : "";
|
||||
motherData.firstName = data.motherFirstName;
|
||||
motherData.lastName = data.motherLastName;
|
||||
motherData.job = data.motherCareer;
|
||||
|
|
@ -260,7 +260,7 @@ async function fetchDataCouple() {
|
|||
if (data) {
|
||||
coupleData.isLive = data.coupleLive;
|
||||
coupleData.citizenId = data.coupleCitizenId;
|
||||
coupleData.prefix = data.couplePrefix;
|
||||
coupleData.prefix = data.couplePrefix ? data.couplePrefix : "";
|
||||
coupleData.firstName = data.coupleFirstName;
|
||||
coupleData.lastName = data.coupleLastName;
|
||||
coupleData.job = data.coupleCareer;
|
||||
|
|
@ -828,10 +828,12 @@ onMounted(async () => {
|
|||
item.childrenPrefix ||
|
||||
item.childrenFirstName ||
|
||||
item.childrenLastName
|
||||
? item.childrenPrefix +
|
||||
item.childrenFirstName +
|
||||
" " +
|
||||
item.childrenLastName
|
||||
? item.childrenPrefix
|
||||
? item.childrenPrefix
|
||||
: "" +
|
||||
item.childrenFirstName +
|
||||
" " +
|
||||
item.childrenLastName
|
||||
: "-"
|
||||
}}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -735,7 +735,11 @@ onMounted(async () => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>
|
||||
{{ col.value === "" || col.value === null ? "-" : col.value }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -530,7 +530,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>{{ col.value ? col.value : "-" }}</div>
|
||||
</q-td>
|
||||
<q-td auto-width>
|
||||
|
|
|
|||
|
|
@ -461,7 +461,11 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.id"
|
||||
:class="props.row.isEntry ? 'text-grey' : ''"
|
||||
>
|
||||
<div>{{ col.value ? col.value : "-" }}</div>
|
||||
</q-td>
|
||||
<q-td auto-width>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue