refactor: delete type

This commit is contained in:
Thanaphon Frappet 2024-11-08 11:57:08 +07:00
parent 0767f983a5
commit 9530c18e00

View file

@ -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>