refactor: header value is null
This commit is contained in:
parent
3af10d2539
commit
9796dfae53
1 changed files with 35 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue