refactor: visible columns
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
febfbf4828
commit
0efe78a37a
1 changed files with 6 additions and 3 deletions
|
|
@ -170,21 +170,24 @@ function getEmployeeName(
|
|||
{{ getEmployeeName(props.row, { locale: $i18n.locale }) || '-' }}
|
||||
</q-td>
|
||||
|
||||
<q-td class="text-left">
|
||||
<q-td
|
||||
v-if="visibleColumns.includes('employeePassport')"
|
||||
class="text-left"
|
||||
>
|
||||
{{
|
||||
props.row.employee.employeePassport.length !== 0
|
||||
? props.row.employee.employeePassport[0].number
|
||||
: '-'
|
||||
}}
|
||||
</q-td>
|
||||
<q-td class="text-left">
|
||||
<q-td v-if="visibleColumns.includes('dataOffice')" class="text-left">
|
||||
{{
|
||||
$i18n.locale === 'eng'
|
||||
? props.row.dataOffice.nameEN
|
||||
: props.row.dataOffice.name
|
||||
}}
|
||||
</q-td>
|
||||
<q-td class="text-left">
|
||||
<q-td v-if="visibleColumns.includes('createdAt')" class="text-left">
|
||||
{{ dateFormatJS({ date: props.row.createdAt }) }}
|
||||
</q-td>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue