refactor: delete type
This commit is contained in:
parent
0767f983a5
commit
9530c18e00
1 changed files with 1 additions and 35 deletions
|
|
@ -264,12 +264,7 @@ const columns = [
|
|||
label: 'general.fullName',
|
||||
field: 'firstName',
|
||||
},
|
||||
{
|
||||
name: 'type',
|
||||
align: 'left',
|
||||
label: 'general.type',
|
||||
field: 'type',
|
||||
},
|
||||
|
||||
{
|
||||
name: 'telephoneNo',
|
||||
align: 'left',
|
||||
|
|
@ -1221,35 +1216,6 @@ watch(
|
|||
</div>
|
||||
</q-td>
|
||||
|
||||
<q-td v-if="fieldSelected.includes('type')">
|
||||
<span
|
||||
class="tags"
|
||||
:class="{
|
||||
[`tags__${
|
||||
{
|
||||
USER: 'cyan',
|
||||
MESSENGER: 'yellow',
|
||||
DELEGATE: 'red',
|
||||
AGENCY: 'magenta',
|
||||
}[props.row.userType as string] || 'pink'
|
||||
} }`]: true,
|
||||
}"
|
||||
>
|
||||
{{
|
||||
$t(
|
||||
`personnel.${
|
||||
{
|
||||
USER: 'USER',
|
||||
MESSENGER: 'MESSENGER',
|
||||
DELEGATE: 'DELEGATE',
|
||||
AGENCY: 'AGENCY',
|
||||
}[props.row.userType as string] || 'USER'
|
||||
}`,
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
</q-td>
|
||||
|
||||
<q-td v-if="fieldSelected.includes('telephoneNo')">
|
||||
{{ props.row.telephoneNo || '-' }}
|
||||
</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue