refactor: simplify status badge color mapping in request list
This commit is contained in:
parent
92c0545368
commit
5e3c04be8e
1 changed files with 7 additions and 9 deletions
|
|
@ -224,15 +224,13 @@ function getEmployeeName(
|
|||
hide-kebab-delete
|
||||
use-cancel
|
||||
:badge-color="
|
||||
props.row.requestDataStatus === RequestDataStatus.Pending
|
||||
? '--orange-5-hsl'
|
||||
: props.row.requestDataStatus === RequestDataStatus.Canceled
|
||||
? '--red-5-hsl'
|
||||
: props.row.requestDataStatus === RequestDataStatus.InProgress
|
||||
? '--blue-6-hsl'
|
||||
: props.row.requestDataStatus === RequestDataStatus.Completed
|
||||
? '--green-8-hsl'
|
||||
: '--orange-5-hsl'
|
||||
{
|
||||
[RequestDataStatus.Pending]: '--orange-5-hsl',
|
||||
[RequestDataStatus.Ready]: '--yellow-6-hsl',
|
||||
[RequestDataStatus.InProgress]: '--blue-6-hsl',
|
||||
[RequestDataStatus.Completed]: '--green-8-hsl',
|
||||
[RequestDataStatus.Canceled]: '--red-5-hsl',
|
||||
}[props.row.requestDataStatus]
|
||||
"
|
||||
:urgent="props.row.quotation.urgent"
|
||||
:code="props.row.code"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue