refactor: header value is null

This commit is contained in:
Net 2024-08-21 16:44:27 +07:00
parent 3af10d2539
commit 9796dfae53

View file

@ -1027,23 +1027,53 @@ const emptyCreateDialog = ref(false);
</div>
</q-td>
<q-td v-if="fieldSelected.includes('businessTypePure')">
{{ props.row.branch?.[0].businessType || '-' }}
{{
props.row.branch.length !== 0
? props.row.branch[0].businessType !== null
? props.row.branch[0].businessType
: ''
: '-'
}}
</q-td>
<q-td v-if="fieldSelected.includes('address')">
{{ props.row.branch?.[0].address || '-' }}
{{
props.row.branch.length !== 0
? props.row.branch[0].address !== null
? props.row.branch[0].address
: ''
: '-'
}}
</q-td>
<q-td v-if="fieldSelected.includes('workPlace')">
{{ props.row.branch?.[0].workplace || '-' }}
{{
props.row.branch.length !== 0
? props.row.branch[0].workplace !== null
? props.row.branch[0].workplace
: ''
: '-'
}}
</q-td>
<q-td v-if="fieldSelected.includes('contactName')">
{{ props.row.branch?.[0].contactName || '-' }}
{{
props.row.branch.length !== 0
? props.row.branch[0].contactName !== null
? props.row.branch[0].contactName
: ''
: '-'
}}
</q-td>
<q-td v-if="fieldSelected.includes('contactPhone')">
{{ props.row.branch?.[0].telephoneNo || '-' }}
{{
props.row.branch.length !== 0
? props.row.branch[0].telephoneNo !== null
? props.row.branch[0].telephoneNo
: ''
: '-'
}}
</q-td>
<q-td>